pkgsrc-WIP-changes archive

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

0ad: options: tests (off by default)



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Thu May 4 08:30:39 2023 +0200
Changeset:	91b3068732ae5496dda683123f76906b0da49730

Modified Files:
	0ad/Makefile
Added Files:
	0ad/options.mk

Log Message:
0ad: options: tests (off by default)

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

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

diffstat:
 0ad/Makefile   | 13 ++++++++++---
 0ad/options.mk | 10 ++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)

diffs:
diff --git a/0ad/Makefile b/0ad/Makefile
index 58252fe4b4..22cc1528cf 100644
--- a/0ad/Makefile
+++ b/0ad/Makefile
@@ -54,6 +54,8 @@ INSTALLATION_DIRS+=	${DATADIR}
 INSTALLATION_DIRS+=	${DATADIR}/mods/public
 INSTALLATION_DIRS+=	${DATADIR}/mods/mod
 
+.include "options.mk"
+
 do-configure:
 	${RUN} cd ${WRKSRC}/build/workspaces && ./clean-workspaces.sh
 	${RUN} cd ${WRKSRC}/build/workspaces && ./update-workspaces.sh \
@@ -62,11 +64,16 @@ do-configure:
 		--libdir=${PREFIX}/lib/${PKGBASE} \
 		--with-system-premake5 \
 		--with-system-mozjs \
-		--with-system-nvtt \
 		--without-pch \
-		--disable-atlas
+		--disable-atlas \
+		${CONFIGURE_TESTS}
 
 # TODO: needs "wx"
+# nvtt, notes from gentoo:
+# Build bundled NVTT
+# nvtt is abandoned upstream and 0ad has forked it and added fixes.
+# Use their copy. bug #768930
+# --with-system-nvtt \
 # options:
 # tests:
 # --without-tests
@@ -111,7 +118,7 @@ do-install:
 .include "../../devel/nspr/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/MesaLib/buildlink3.mk"
-.include "../../graphics/nvidia-texture-tools/buildlink3.mk"
+#.include "../../graphics/nvidia-texture-tools/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../lang/mozjs78/buildlink3.mk"
 .include "../../lang/python/tool.mk"
diff --git a/0ad/options.mk b/0ad/options.mk
new file mode 100644
index 0000000000..6d0fc7c3bd
--- /dev/null
+++ b/0ad/options.mk
@@ -0,0 +1,10 @@
+PKG_OPTIONS_VAR=	PKG_OPTIONS.0ad
+PKG_SUPPORTED_OPTIONS+=	tests
+
+.include "../../mk/bsd.options.mk"
+
+.if ${PKG_OPTIONS:Mtests}
+CONFIGURE_TESTS?=		--with-tests
+.else
+CONFIGURE_TESTS?=		--without-tests
+.endif


Home | Main Index | Thread Index | Old Index