Bug 175631 - support WITHOUT_GCC in games/lwjgl
support WITHOUT_GCC in games/lwjgl
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: FreeBSD ports mailing list
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-27 15:30 UTC by ukaszg
Modified: 2013-02-17 19:40 UTC (History)
0 users

See Also:


Attachments
file.diff (443 bytes, patch)
2013-01-27 15:30 UTC, ukaszg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ukaszg 2013-01-27 15:30:00 UTC
I compiled base using WITHOUT_GCC and WITH_CLANG_IS_CC

there is no gcc on my system, and games/lwjgl's build.xml files has gcc hardcoded.

Fix: apply attached patch

Patch attached with submission follows:
How-To-Repeat: get rid of gcc and try to build games/lwjgl
Comment 1 dfilter freebsd_committer 2013-02-17 19:35:57 UTC
Author: pawel
Date: Sun Feb 17 19:35:43 2013
New Revision: 312439
URL: http://svnweb.freebsd.org/changeset/ports/312439

Log:
  - Respect CC [1]
  - Make BUILD,RUN_DEPENDS much shorter
  - Trim Makefile header
  
  PR:		ports/175631 [1]
  Submitted by:	Lukasz Gruner <ukaszg@gmail.com> [1]

Modified:
  head/games/lwjgl/Makefile

Modified: head/games/lwjgl/Makefile
==============================================================================
--- head/games/lwjgl/Makefile	Sun Feb 17 19:31:21 2013	(r312438)
+++ head/games/lwjgl/Makefile	Sun Feb 17 19:35:43 2013	(r312439)
@@ -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}${PORTVERSI
 .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}/ ..."
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Pawel Pekala freebsd_committer 2013-02-17 19:36:17 UTC
State Changed
From-To: open->closed

Committed. Thanks!