Date: Fri, 7 Dec 2018 16:18:53 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r486870 - head/games/lwjgl Message-ID: <201812071618.wB7GIr1i067252@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon Date: Fri Dec 7 16:18:53 2018 New Revision: 486870 URL: https://svnweb.freebsd.org/changeset/ports/486870 Log: This port can be built on powerpc64 with s/amd64/ppc64/g in build.xml and MAKE_ARGS+=-Dbuild.64bit.only=1. While here, pet portlint. PR: 233832 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) Modified: head/games/lwjgl/Makefile Modified: head/games/lwjgl/Makefile ============================================================================== --- head/games/lwjgl/Makefile Fri Dec 7 16:05:57 2018 (r486869) +++ head/games/lwjgl/Makefile Fri Dec 7 16:18:53 2018 (r486870) @@ -13,11 +13,12 @@ COMMENT= Lightweight Java Game Library LICENSE= BSD3CLAUSE +ONLY_FOR_ARCHS= amd64 i386 powerpc64 + BUILD_DEPENDS= ${JAVALIBDIR}/jutils/jutils.jar:games/jutils \ ${JAVALIBDIR}/jinput/jinput.jar:games/jinput RUN_DEPENDS:= ${BUILD_DEPENDS} -ONLY_FOR_ARCHS= i386 amd64 WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} EXTRACT_AFTER_ARGS= -d ${WRKSRC} @@ -46,14 +47,22 @@ PLIST_DIRS= %%JAVAJARDIR%%/${PORTNAME} \ PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}.so .endif -.if ${ARCH} == amd64 +.if ${ARCH} == amd64 || ${ARCH} == powerpc64 PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}64.so .endif +.if ${ARCH} == powerpc64 +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 +.endif do-install: @${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME} @@ -66,7 +75,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \ ${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} .endif -.if ${ARCH} == amd64 +.if ${ARCH} == amd64 || ${ARCH} == powerpc64 ${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \ ${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812071618.wB7GIr1i067252>