git: dae9e94dee9b - main - games/lwjgl3: bootstrap from games/lwjgl
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 14 Mar 2024 17:22:32 UTC
The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=dae9e94dee9b0b5da30557653107b7419e260ca0 commit dae9e94dee9b0b5da30557653107b7419e260ca0 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2024-03-14 17:11:14 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-03-14 17:21:38 +0000 games/lwjgl3: bootstrap from games/lwjgl Copy games/lwjgl unchanged PR: 275279 269879 269900 Approved by: arrowd (mentor) --- games/lwjgl3/Makefile | 79 ++++++++++++++++++++++ games/lwjgl3/distinfo | 3 + games/lwjgl3/files/patch-build.xml | 10 +++ .../files/patch-platform_build__bsd_ant__build.xml | 22 ++++++ games/lwjgl3/pkg-descr | 1 + 5 files changed, 115 insertions(+) diff --git a/games/lwjgl3/Makefile b/games/lwjgl3/Makefile new file mode 100644 index 000000000000..0ca10c803db1 --- /dev/null +++ b/games/lwjgl3/Makefile @@ -0,0 +1,79 @@ +PORTNAME= lwjgl +DISTVERSION= 2.9.4.20161208 +CATEGORIES= games java + +MAINTAINER= freebsd@skinc.ru +COMMENT= Lightweight Java Game Library +WWW= https://legacy.lwjgl.org + +LICENSE= BSD3CLAUSE + +ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le + +BUILD_DEPENDS= ${JAVAJARDIR}/jutils/jutils.jar:games/jutils \ + ${JAVAJARDIR}/jinput/jinput.jar:games/jinput +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USES= dos2unix xorg +USE_GITHUB= yes +GH_ACCOUNT= LWJGL +GH_TAGNAME= 2df01dd + +DOS2UNIX_REGEX= .*.[^jp][^an][^rg]$ +USE_JAVA= yes +USE_LDCONFIG= yes +USE_ANT= yes +USE_XORG= xcursor xrandr xxf86vm +MAKE_ENV+= CLASSPATH=${JAVAJARDIR}/jutils/jutils.jar:${JAVAJARDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/ +ALL_TARGET= jars compile_native + +PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}/${PORTNAME}.jar \ + ${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_test.jar \ + ${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util.jar \ + ${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util_applet.jar +PLIST_DIRS= ${JAVAJARDIR}/${PORTNAME} \ + lib/${PORTNAME} + +.include <bsd.port.pre.mk> + +.if ${ARCH} == i386 +PLIST_FILES+= lib/${PORTNAME}/lib${PORTNAME}.so +.endif + +.if ${ARCH} == amd64 || ${ARCH:Mpowerpc64*} +PLIST_FILES+= lib/${PORTNAME}/lib${PORTNAME}64.so +.endif + +.if ${ARCH:Mpowerpc64*} +MAKE_ARGS+= -Dbuild.64bit.only=1 +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' \ + -e '/executable/s/cc/${CC}/g' \ + ${WRKSRC}/platform_build/bsd_ant/build.xml +.if ${ARCH} == powerpc64 + @${REINPLACE_CMD} -e 's|amd64|ppc64|g' \ + ${WRKSRC}/platform_build/bsd_ant/build.xml +.elif ${ARCH} == powerpc64le + @${REINPLACE_CMD} -e 's|amd64|ppc64le|g' \ + ${WRKSRC}/platform_build/bsd_ant/build.xml +.endif + +do-install: + @${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME} +.for _jar in ${PLIST_FILES:M*.jar} + ${INSTALL_DATA} ${WRKSRC}/libs/${_jar:T} \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME} +.endfor + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} +.if ${ARCH} == i386 + ${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \ + ${STAGEDIR}${PREFIX}/lib/${PORTNAME} +.endif +.if ${ARCH} == amd64 || ${ARCH:Mpowerpc64*} + ${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \ + ${STAGEDIR}${PREFIX}/lib/${PORTNAME} +.endif + +.include <bsd.port.post.mk> diff --git a/games/lwjgl3/distinfo b/games/lwjgl3/distinfo new file mode 100644 index 000000000000..62990c1abb77 --- /dev/null +++ b/games/lwjgl3/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1576013211 +SHA256 (LWJGL-lwjgl-2.9.4.20161208-2df01dd_GH0.tar.gz) = a4d03e9244a9e253abcfe7ee75d4413bd3db1fd8c38e67eedbd0c6c313c4e504 +SIZE (LWJGL-lwjgl-2.9.4.20161208-2df01dd_GH0.tar.gz) = 15052370 diff --git a/games/lwjgl3/files/patch-build.xml b/games/lwjgl3/files/patch-build.xml new file mode 100644 index 000000000000..3ed34b1ff2fd --- /dev/null +++ b/games/lwjgl3/files/patch-build.xml @@ -0,0 +1,10 @@ +--- build.xml.orig 2014-04-04 16:45:10 UTC ++++ 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"/> + + <!-- ================================================================== --> + <!-- Everything below this line is targets. --> diff --git a/games/lwjgl3/files/patch-platform_build__bsd_ant__build.xml b/games/lwjgl3/files/patch-platform_build__bsd_ant__build.xml new file mode 100644 index 000000000000..f700a84daf83 --- /dev/null +++ b/games/lwjgl3/files/patch-platform_build__bsd_ant__build.xml @@ -0,0 +1,22 @@ +--- platform_build/bsd_ant/build.xml.orig 2019-12-10 20:24:26 ++++ platform_build/bsd_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/local/lib -lm -lX11 -lXext -lXcursor -lXrandr -pthread -L${java.home}/lib/i386 -ljawt" /> +- <property name="libs64" value="-L/usr/X11R6/lib -L/usr/local/lib -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -pthread -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"> +@@ -39,7 +39,7 @@ + <os name="SunOS" /> + </condition> + +- <property name="linker_flags32" value="${version_script_flags32} -shared -O2 -Wall -o ${libname32} ${libs32} ${xf86vm_lib}"/> ++ <property name="linker_flags32" value="${version_script_flags32} -shared -O2 -Wall -z notext -o ${libname32} ${libs32} ${xf86vm_lib}"/> + <property name="linker_flags64" value="${version_script_flags64} -shared -O2 -Wall -o ${libname64} ${libs64} ${xf86vm_lib}"/> + + <condition property="build.32bit.only"> diff --git a/games/lwjgl3/pkg-descr b/games/lwjgl3/pkg-descr new file mode 100644 index 000000000000..26f7d6ba117f --- /dev/null +++ b/games/lwjgl3/pkg-descr @@ -0,0 +1 @@ +The Lightweight Java Game Library