pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

0ad: test directory conditional.



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Thu May 4 08:53:45 2023 +0200
Changeset:	821653104cba272268d708bd97a8848446c8c01c

Modified Files:
	0ad/Makefile

Log Message:
0ad: test directory conditional.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=821653104cba272268d708bd97a8848446c8c01c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 0ad/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diffs:
diff --git a/0ad/Makefile b/0ad/Makefile
index 1d3b8bec41..e7032947c8 100644
--- a/0ad/Makefile
+++ b/0ad/Makefile
@@ -82,7 +82,7 @@ do-configure:
 
 do-build:
 	${RUN} cd ${WRKSRC} && \
-		${GMAKE} config=release verbose=1 -j ${_MAKE_JOBS_N} \
+		${GMAKE} config=release verbose=1 -j ${_MAKE_JOBS_N:U1} \
 		-C build/workspaces/gcc
 
 do-install:
@@ -102,9 +102,12 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/build/resources/0ad.desktop ${DESTDIR}${PREFIX}/share/applications
 	${INSTALL_DATA} ${WRKSRC}/build/resources/0ad.png ${DESTDIR}${PREFIX}/share/pixmaps
 	# if atlas?: + tools
-.for d in config l10n tests
+.for d in config l10n
 	cd ${WRKSRC}/binaries/data && ${PAX} -rw ${d} ${DESTDIR}${DATADIR}
 .endfor
+.if ${PKG_OPTIONS:Mtests}
+	cd ${WRKSRC}/binaries/data && ${PAX} -rw tests ${DESTDIR}${DATADIR}
+.endif
 	${TAR} xf ${WRKSRC}/binaries/data/mods/public/public.zip -C ${DESTDIR}${DATADIR}/mods/public --no-same-permissions
 	${TAR} xf ${WRKSRC}/binaries/data/mods/mod/mod.zip -C ${DESTDIR}${DATADIR}/mods/mod --no-same-permissions
 


Home | Main Index | Thread Index | Old Index