Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2012 12:12:56 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307777 - in head/games/lwjgl: . files
Message-ID:  <201211261212.qAQCCurG080570@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Mon Nov 26 12:12:55 2012
New Revision: 307777
URL: http://svnweb.freebsd.org/changeset/ports/307777

Log:
  Update to 2.8.5
  
  PR:		ports/173839
  Submitted by:	4721
  
  Reset maintainership
  
  Approved by:	loader (maintainer)
  
  Feature safe:	yes

Deleted:
  head/games/lwjgl/files/patch-platform_build__build-applet.xml
  head/games/lwjgl/files/patch-src__java__org__lwjgl__MacOSXSysImplementation.java
  head/games/lwjgl/files/patch-src__java__org__lwjgl__opengl__MacOSXDisplay.java
Modified:
  head/games/lwjgl/Makefile
  head/games/lwjgl/distinfo
  head/games/lwjgl/files/patch-build.xml
  head/games/lwjgl/files/patch-platform_build__linux_ant__build.xml

Modified: head/games/lwjgl/Makefile
==============================================================================
--- head/games/lwjgl/Makefile	Mon Nov 26 12:03:14 2012	(r307776)
+++ head/games/lwjgl/Makefile	Mon Nov 26 12:12:55 2012	(r307777)
@@ -1,19 +1,19 @@
-# New ports collection makefile for:   jinput
-# Date created:                        Mar 25 2012
-# Whom:                                loader <loader@freebsdmall.com>
-#
+# Created by: loader <loader@freebsdmall.com>
 # $FreeBSD$
-#
 
 PORTNAME=	lwjgl
-DISTVERSION=	2.7.1
+DISTVERSION=	2.8.5
 CATEGORIES=	games java
 MASTER_SITES=	SF/java-game-lib/Official%20Releases/${PORTNAME:U}%20${PORTVERSION}/
-DISTNAME=	${PORTNAME}-source-${DISTVERSION}
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
+		${PORTNAME}-source-${DISTVERSION}${EXTRACT_SUFX}
 
-MAINTAINER=	loader@freebsdmall.com
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	The Lightweight Java Game Library
 
+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 \
@@ -33,11 +33,12 @@ USE_ZIP=	yes
 USE_JAVA=	yes
 USE_LDCONFIG=	yes
 USE_DOS2UNIX=	yes
+DOS2UNIX_REGEX=	.*.[^j][^a][^r]$
 JAVA_VERSION=	1.6+
 JAVA_OS=	native
 JAVA_VENDOR=	openjdk
 USE_ANT=	yes
-MAKE_ENV+=	CLASSPATH=${JAVALIBDIR}/jutils/jutils.jar:${JAVALIBDIR}/jinput/jinput.jar
+MAKE_ENV+=	CLASSPATH=${JAVALIBDIR}/jutils/jutils.jar:${JAVALIBDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/
 ALL_TARGET=	jars compile_native
 
 PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}.jar \
@@ -49,14 +50,17 @@ PLIST_DIRS=	%%JAVAJARDIR%%/${PORTNAME} \
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "i386"
+.if ${ARCH} == i386
 PLIST_FILES+=	lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}.so
 .endif
 
-.if ${ARCH} == "amd64"
+.if ${ARCH} == amd64
 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
+
 do-install:
 	@${ECHO_MSG} -n ">> Install JAR files in ${JAVAJARDIR}/${PORTNAME}/ ..."
 	@${MKDIR} ${JAVAJARDIR}/${PORTNAME}
@@ -65,10 +69,10 @@ do-install:
 .endfor
 	@${ECHO_MSG} " [ DONE ]"
 	@${MKDIR} ${PREFIX}/lib/${PORTNAME}${PORTVERSION}
-.if ${ARCH} == "i386"
+.if ${ARCH} == i386
 	@${INSTALL_DATA} ${WRKSRC}/libs/linux/lib${PORTNAME}.so ${PREFIX}/lib/${PORTNAME}${PORTVERSION}
 .endif
-.if ${ARCH} == "amd64"
+.if ${ARCH} == amd64
 	@${INSTALL_DATA} ${WRKSRC}/libs/linux/lib${PORTNAME}64.so ${PREFIX}/lib/${PORTNAME}${PORTVERSION}
 .endif
 

Modified: head/games/lwjgl/distinfo
==============================================================================
--- head/games/lwjgl/distinfo	Mon Nov 26 12:03:14 2012	(r307776)
+++ head/games/lwjgl/distinfo	Mon Nov 26 12:12:55 2012	(r307777)
@@ -1,2 +1,4 @@
-SHA256 (lwjgl-source-2.7.1.zip) = f6805e7ec4f00198b772063d0df5e2063f44ce839f615677b9bc68ad037644b6
-SIZE (lwjgl-source-2.7.1.zip) = 2149031
+SHA256 (lwjgl-2.8.5.zip) = 680e4c9f84ca89fad844820019a9134c4643a00a44e3d6a02defb3d38700492c
+SIZE (lwjgl-2.8.5.zip) = 5550071
+SHA256 (lwjgl-source-2.8.5.zip) = b52f8885fb5a2cb9cd2528a9492164fccdf63031fbafb2ac96fd0f271fcbb130
+SIZE (lwjgl-source-2.8.5.zip) = 2969449

Modified: head/games/lwjgl/files/patch-build.xml
==============================================================================
--- head/games/lwjgl/files/patch-build.xml	Mon Nov 26 12:03:14 2012	(r307776)
+++ head/games/lwjgl/files/patch-build.xml	Mon Nov 26 12:12:55 2012	(r307777)
@@ -1,59 +1,14 @@
-Obtained from http://foo.poildetroll.net/minecraft/lwjgl-2.7.1-freebsd.diff
-
-
---- ./build.xml.orig	2011-02-06 19:23:40.000000000 +0000
-+++ ./build.xml	2012-03-26 18:14:03.079373854 +0000
-@@ -246,7 +246,7 @@
- 			<class name="org.lwjgl.opengl.WindowsContextImplementation" />
- 		</javah>
+--- build.xml.orig
++++ build.xml
+@@ -7,7 +7,6 @@
+ 	<import file="platform_build/build-applet.xml"/>
+ 	<import file="platform_build/build-webstart.xml"/>
+ 	<import file="platform_build/build-maven.xml"/>
+-	<import file="eclipse-update/org.lwjgl.build/build-updatesite.xml"/>
  
--		<javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/macosx" force="yes">
-+		<!-- <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/macosx" force="yes">
- 			<class name="org.lwjgl.MacOSXSysImplementation" />
- 			<class name="org.lwjgl.opengl.MacOSXMouseEventQueue" />
- 			<class name="org.lwjgl.opengl.MacOSXCanvasPeerInfo" />
-@@ -254,7 +254,7 @@
- 			<class name="org.lwjgl.opengl.MacOSXPbufferPeerInfo" />
- 			<class name="org.lwjgl.opengl.MacOSXDisplay" />
- 			<class name="org.lwjgl.opengl.MacOSXContextImplementation" />
--		</javah>
-+		</javah> -->
- 
- 		<javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}" force="yes">
- 			<class name="org.lwjgl.opengl.AWTSurfaceLock" />
-@@ -293,13 +293,13 @@
- 				</tokenfilter>
- 			</filterchain>
- 		</loadfile>
--		<loadfile srcfile="${lwjgl.src}/java/org/lwjgl/MacOSXSysImplementation.java" property="lwjgl.java.macosx.version">
-+		<!-- <loadfile srcfile="${lwjgl.src}/java/org/lwjgl/MacOSXSysImplementation.java" property="lwjgl.java.macosx.version">
- 			<filterchain>
- 				<tokenfilter>
- 	    		<containsstring contains="JNI_VERSION ="/>
- 				</tokenfilter>
- 			</filterchain>
--		</loadfile>
-+		</loadfile> -->
- 		<loadfile srcfile="${lwjgl.src.native}/windows/org_lwjgl_WindowsSysImplementation.h" property="lwjgl.native.windows.version">
- 			<filterchain>
- 				<tokenfilter>
-@@ -314,13 +314,13 @@
- 				</tokenfilter>
- 			</filterchain>
- 		</loadfile>
--		<loadfile srcfile="${lwjgl.src.native}/macosx/org_lwjgl_MacOSXSysImplementation.h" property="lwjgl.native.macosx.version">
-+		<!-- <loadfile srcfile="${lwjgl.src.native}/macosx/org_lwjgl_MacOSXSysImplementation.h" property="lwjgl.native.macosx.version">
- 			<filterchain>
- 				<tokenfilter>
- 	    		<containsstring contains="#define org_lwjgl_MacOSXSysImplementation_JNI_VERSION"/>
- 				</tokenfilter>
- 			</filterchain>
--		</loadfile>
-+		</loadfile> -->
- 		<echo>
- 			lwjgl.java.windows.version = ${lwjgl.java.windows.version}
- 			lwjgl.native.windows.version = ${lwjgl.native.windows.version}
-@@ -380,7 +380,10 @@
+ 	<!-- ================================================================== -->
+ 	<!-- Everything below this line is targets.								-->
+@@ -463,7 +462,10 @@
  		<antcall target="-compile_native_win32" />
  
  		<condition property="lwjgl.platform.linux">
@@ -65,7 +20,7 @@ Obtained from http://foo.poildetroll.net
  		</condition>
  		<antcall target="-compile_native_linux" />
  
-@@ -493,6 +496,7 @@
+@@ -604,6 +606,7 @@
  		<condition property="native_path" value="libs/linux">
  			<or>
  				<os name="Linux" />

Modified: head/games/lwjgl/files/patch-platform_build__linux_ant__build.xml
==============================================================================
--- head/games/lwjgl/files/patch-platform_build__linux_ant__build.xml	Mon Nov 26 12:03:14 2012	(r307776)
+++ head/games/lwjgl/files/patch-platform_build__linux_ant__build.xml	Mon Nov 26 12:12:55 2012	(r307777)
@@ -1,16 +1,13 @@
-Obtained from http://foo.poildetroll.net/minecraft/lwjgl-2.7.1-freebsd.diff
-
-
---- ./platform_build/linux_ant/build.xml.orig	2011-02-06 19:22:44.000000000 +0000
-+++ ./platform_build/linux_ant/build.xml	2012-03-26 18:14:03.120371531 +0000
+--- platform_build/linux_ant/build.xml.orig
++++ platform_build/linux_ant/build.xml
 @@ -4,8 +4,8 @@
  	<property name="native" location="../../src/native"/>
  	<property name="libname32" value="liblwjgl.so"/>
  	<property name="libname64" value="liblwjgl64.so"/>
 -	<property name="libs32" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXext -lXcursor -lXrandr -lpthread -L${java.home}/lib/i386 -ljawt" />
 -	<property name="libs64" value="-L/usr/X11R6/lib64 -L/usr/X11/lib64 -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -lpthread -L${java.home}/lib/amd64 -ljawt" />
-+	<property name="libs32" value="-L/usr/lib -L/usr/local/lib -lm -lX11 -lXext -lXcursor -lXrandr -lpthread -L${java.home}/lib/i386 -ljawt" />
-+	<property name="libs64" value="-L/usr/lib -L/usr/local/lib -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -lpthread -L${java.home}/lib/amd64 -ljawt" />
++	<property name="libs32" value="-LPREFIX/lib -lm -lX11 -lXext -lXcursor -lXrandr -pthread -L${java.home}/lib/i386 -ljawt" />
++	<property name="libs64" value="-LPREFIX/lib -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -pthread -L${java.home}/lib/amd64 -ljawt" />
  	<property name="cflags32" value="-O2 -Wall -c -fPIC -std=c99 -Wunused"/>
  
  	<target name="clean">
@@ -43,33 +40,29 @@ Obtained from http://foo.poildetroll.net
      	</condition>
  
      	<antcall target="compile32"/>
-@@ -69,11 +76,14 @@
- 			<arg line="${cflags32} ${cflags_pthread}"/>
- 			<arg value="-I${java.home}/include"/>
- 			<arg value="-I${java.home}/include/linux"/>
-+			<arg value="-I${java.home}/include/freebsd"/>
+@@ -72,10 +79,12 @@
  			<arg value="-I${java.home}/../include"/>
  			<arg value="-I${java.home}/../include/linux"/>
  			<arg value="-I${java.home}/../include/solaris"/>
 +			<arg value="-I${java.home}/../include/freebsd"/>
  			<arg value="-I${native}/common"/>
+ 		    <arg value="-I${native}/common/opengl"/>
  			<arg value="-I${native}/linux"/>
-+			<arg value="-I/usr/local/include"/>
+ 		    <arg value="-I${native}/linux/opengl"/>
++		    <arg value="-IPREFIX/include"/>
  			<mapper type="glob" from="*.c" to="*.o"/>
- 			<fileset dir="${native}/linux" includes="*.c"/>
- 			<fileset dir="${native}/generated" includes="*.c"/>
-@@ -95,11 +105,14 @@
- 			<arg line="${cflags64} ${cflags_pthread}"/>
- 			<arg value="-I${java.home}/include"/>
- 			<arg value="-I${java.home}/include/linux"/>
-+			<arg value="-I${java.home}/include/freebsd"/>
+ 		    <fileset dir="${native}/common" includes="*.c"/>
+ 		    <fileset dir="${native}/common/opengl" includes="*.c"/>
+@@ -104,10 +113,12 @@
  			<arg value="-I${java.home}/../include"/>
  			<arg value="-I${java.home}/../include/linux"/>
  			<arg value="-I${java.home}/../include/solaris"/>
 +			<arg value="-I${java.home}/../include/freebsd"/>
  			<arg value="-I${native}/common"/>
+ 		    <arg value="-I${native}/common/opengl"/>
  			<arg value="-I${native}/linux"/>
-+			<arg value="-I/usr/local/include"/>
+ 		    <arg value="-I${native}/linux/opengl"/>
++		    <arg value="-IPREFIX/include"/>
  			<mapper type="glob" from="*.c" to="*.o"/>
- 			<fileset dir="${native}/linux" includes="*.c"/>
- 			<fileset dir="${native}/generated" includes="*.c"/>
+ 		    <fileset dir="${native}/common" includes="*.c"/>
+ 		    <fileset dir="${native}/common/opengl" includes="*.c"/>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211261212.qAQCCurG080570>