summaryrefslogtreecommitdiffstats
path: root/games/lwjgl3/Makefile
blob: 03edb20c1d476e9258d1e322f5951eb2bbd734c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Created by: Cameron Katri <me@cameronkatri.com>

PORTNAME=	lwjgl3
DISTVERSION=	3.2.2
DISTVERSIONSUFFIX=	-full
CATEGORIES=	games java
MASTER_SITES=	https://github.com/CRKatri/lwjgl3/releases/download/${DISTVERSION}-freebsd-3/

MAINTAINER=	me@cameronkatri.com
COMMENT=	Lightweight Java Game Library 3

LICENSE=	BSD3CLAUSE

BUILD_DEPENDS=	${LOCALBASE}/lib/libdyncall_s.a:devel/dyncall
LIB_DEPENDS=	libglfw.so:graphics/glfw \
							libopenal.so:audio/openal-soft \
							libopus.so:audio/opus \
							libOpenCL.so:devel/ocl-icd \
							libatk-bridge-2.0.so:accessibility/at-spi2-atk \
							libatspi.so:accessibility/at-spi2-core \
							libdbus-1.so:devel/dbus \
							libepoll-shim.so:devel/libepoll-shim \
							libepoxy.so:graphics/libepoxy \
							libexpat.so:textproc/expat2 \
							libffi.so:devel/libffi \
							libfontconfig.so:x11-fonts/fontconfig \
							libfreetype.so:print/freetype2 \
							libfribidi.so:converters/fribidi \
							libgraphite2.so:graphics/graphite2 \
							libharfbuzz.so:print/harfbuzz \
							libpcre.so:devel/pcre \
							libpng16.so:graphics/png \
							libwayland-client.so:graphics/wayland \
							libwayland-cursor.so:graphics/wayland \
							libwayland-egl.so:graphics/wayland \
							libxkbcommon.so:x11/libxkbcommon

USES=		gl gnome xorg pkgconfig iconv
USE_ANT=	yes
USE_GL=	gl egl glesv2
USE_GNOME=	gtk30 glib20 cairo gdkpixbuf2
USE_JAVA=	yes
USE_XORG=	x11 pixman xau xcb xcomposite xcursor xdamage xdmcp xext xfixes xi xinerama xrandr xrender

MAKE_ENV+=	LWJGL_BUILD_OFFLINE=true
ALL_TARGET=	all release

do-install:
	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
.for x in ${WRKSRC}/bin/RELEASE/lwjgl*/*.jar
	${INSTALL_DATA} ${WRKSRC}${x} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/
.endfor
.for x in ${WRKSRC}/bin/RELEASE/lwjgl*/*license.txt
	${INSTALL_DATA} ${WRKSRC}${x} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/
.endfor
.for x in ${WRKSRC}/bin/libs/*.so
	${INSTALL_LIB} ${WRKSRC}${x} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/
.endfor

.include <bsd.port.mk>