summaryrefslogtreecommitdiff
path: root/media-libs/raylib/raylib-4.0.0.ebuild
blob: 03fa457fee3f22cb3c09a224287f15b41e6c107e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DESCRIPTION="simple and easy-to-use library to enjoy videogames programming"

HOMEPAGE="http://www.raylib.com/"

SRC_URI="https://github.com/raysan5/raylib/archive/refs/tags/4.0.0.tar.gz"

S="${WORKDIR}/${P}/src"

LICENSE="zlib"

SLOT="0"

KEYWORDS="~amd64"

# TODO: add static-libs USE flag
IUSE=""

src_compile() {
	emake PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED
}

src_install() {
	emake install RAYLIB_LIBTYPE=SHARED RAYLIB_INSTALL_PATH=${D}/usr/lib64 RAYLIB_H_INSTALL_PATH=${D}/usr/include
}