aboutsummaryrefslogtreecommitdiff
path: root/games/lwjgl
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-02-17 19:35:43 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-02-17 19:35:43 +0000
commitc47e0be3e660484cb54a9ce0afea0b0cc8a2cd48 (patch)
tree8f299b0bd145d8122f2498b150e431689dcd7b3c /games/lwjgl
parent366119e6694fa8a63ea34dc489a7084cae9d7704 (diff)
downloadports-c47e0be3e660484cb54a9ce0afea0b0cc8a2cd48.tar.gz
ports-c47e0be3e660484cb54a9ce0afea0b0cc8a2cd48.zip
Notes
Diffstat (limited to 'games/lwjgl')
-rw-r--r--games/lwjgl/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/games/lwjgl/Makefile b/games/lwjgl/Makefile
index 8f37ba03d3e5..73b1e7d58166 100644
--- a/games/lwjgl/Makefile
+++ b/games/lwjgl/Makefile
@@ -15,15 +15,8 @@ LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/${DISTNAME}/doc/LICENSE
BUILD_DEPENDS= ${JAVALIBDIR}/jutils/jutils.jar:${PORTSDIR}/games/jutils \
- ${JAVALIBDIR}/jinput/jinput.jar:${PORTSDIR}/games/jinput \
- ${LOCALBASE}/include/X11/extensions/xf86vmode.h:${PORTSDIR}/x11/libXxf86vm \
- ${LOCALBASE}/include/X11/extensions/Xrandr.h:${PORTSDIR}/x11/libXrandr \
- ${LOCALBASE}/include/X11/Xcursor/Xcursor.h:${PORTSDIR}/x11/libXcursor
-RUN_DEPENDS= ${JAVALIBDIR}/jutils/jutils.jar:${PORTSDIR}/games/jutils \
- ${JAVALIBDIR}/jinput/jinput.jar:${PORTSDIR}/games/jinput \
- ${LOCALBASE}/include/X11/extensions/xf86vmode.h:${PORTSDIR}/x11/libXxf86vm \
- ${LOCALBASE}/include/X11/extensions/Xrandr.h:${PORTSDIR}/x11/libXrandr \
- ${LOCALBASE}/include/X11/Xcursor/Xcursor.h:${PORTSDIR}/x11/libXcursor
+ ${JAVALIBDIR}/jinput/jinput.jar:${PORTSDIR}/games/jinput
+RUN_DEPENDS:= ${BUILD_DEPENDS}
ONLY_FOR_ARCHS= i386 amd64
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
@@ -38,6 +31,7 @@ JAVA_VERSION= 1.6+
JAVA_OS= native
JAVA_VENDOR= openjdk
USE_ANT= yes
+USE_XORG= xcursor xrandr xxf86vm
MAKE_ENV+= CLASSPATH=${JAVALIBDIR}/jutils/jutils.jar:${JAVALIBDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/
ALL_TARGET= jars compile_native
@@ -59,7 +53,9 @@ PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}64.so
.endif
post-patch:
- ${REINPLACE_CMD} -e 's,PREFIX,${PREFIX},g' ${WRKSRC}/platform_build/linux_ant/build.xml
+ @${REINPLACE_CMD} -e 's,PREFIX,${PREFIX},g' \
+ -e '/executable/s/gcc/${CC}/g' \
+ ${WRKSRC}/platform_build/linux_ant/build.xml
do-install:
@${ECHO_MSG} -n ">> Install JAR files in ${JAVAJARDIR}/${PORTNAME}/ ..."