Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2021 01:23:01 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568535 - head/games/lwjgl
Message-ID:  <202103160123.12G1N1mO029125@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Mar 16 01:23:01 2021
New Revision: 568535
URL: https://svnweb.freebsd.org/changeset/ports/568535

Log:
  games/lwjgl: port to powerpc64le
  
  Approved by:	tier 2 blanket

Modified:
  head/games/lwjgl/Makefile

Modified: head/games/lwjgl/Makefile
==============================================================================
--- head/games/lwjgl/Makefile	Tue Mar 16 01:08:15 2021	(r568534)
+++ head/games/lwjgl/Makefile	Tue Mar 16 01:23:01 2021	(r568535)
@@ -10,7 +10,7 @@ COMMENT=	Lightweight Java Game Library
 
 LICENSE=	BSD3CLAUSE
 
-ONLY_FOR_ARCHS=	amd64 i386 powerpc64
+ONLY_FOR_ARCHS=	amd64 i386 powerpc64 powerpc64le
 
 BUILD_DEPENDS=	${JAVAJARDIR}/jutils/jutils.jar:games/jutils \
 		${JAVAJARDIR}/jinput/jinput.jar:games/jinput
@@ -42,11 +42,11 @@ PLIST_DIRS=	${JAVAJARDIR}/${PORTNAME} \
 PLIST_FILES+=	lib/${PORTNAME}/lib${PORTNAME}.so
 .endif
 
-.if ${ARCH} == amd64 || ${ARCH} == powerpc64
+.if ${ARCH} == amd64 || ${ARCH:Mpowerpc64*}
 PLIST_FILES+=	lib/${PORTNAME}/lib${PORTNAME}64.so
 .endif
 
-.if ${ARCH} == powerpc64
+.if ${ARCH:Mpowerpc64*}
 MAKE_ARGS+=	-Dbuild.64bit.only=1
 .endif
 
@@ -57,6 +57,9 @@ post-patch:
 .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:
@@ -70,7 +73,7 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \
 		${STAGEDIR}${PREFIX}/lib/${PORTNAME}
 .endif
-.if ${ARCH} == amd64 || ${ARCH} == powerpc64
+.if ${ARCH} == amd64 || ${ARCH:Mpowerpc64*}
 	${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \
 		${STAGEDIR}${PREFIX}/lib/${PORTNAME}
 .endif



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