pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/binaryen
Module Name: pkgsrc
Committed By: nia
Date: Thu Nov 16 09:57:43 UTC 2023
Modified Files:
pkgsrc/devel/binaryen: Makefile
Added Files:
pkgsrc/devel/binaryen: options.mk
Log Message:
binaryen: Optionize googletest dependency
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/binaryen/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/binaryen/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/binaryen/Makefile
diff -u pkgsrc/devel/binaryen/Makefile:1.21 pkgsrc/devel/binaryen/Makefile:1.22
--- pkgsrc/devel/binaryen/Makefile:1.21 Mon Nov 6 22:04:25 2023
+++ pkgsrc/devel/binaryen/Makefile Thu Nov 16 09:57:43 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2023/11/06 22:04:25 fcambus Exp $
+# $NetBSD: Makefile,v 1.22 2023/11/16 09:57:43 nia Exp $
VERSION= 116
DISTNAME= binaryen-${VERSION}
@@ -19,7 +19,7 @@ CMAKE_ARGS+= -DENABLE_WERROR=OFF
PYTHON_FOR_BUILD_ONLY= yes
+.include "options.mk"
.include "../../devel/cmake/build.mk"
-.include "../../devel/googletest/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
Added files:
Index: pkgsrc/devel/binaryen/options.mk
diff -u /dev/null pkgsrc/devel/binaryen/options.mk:1.1
--- /dev/null Thu Nov 16 09:57:43 2023
+++ pkgsrc/devel/binaryen/options.mk Thu Nov 16 09:57:43 2023
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2023/11/16 09:57:43 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.binaryen
+
+PKG_SUPPORTED_OPTIONS= tests
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtests)
+CMAKE_ARGS+= -DBUILD_TESTS=ON
+. include "../../devel/googletest/buildlink3.mk"
+.else
+CMAKE_ARGS+= -DBUILD_TESTS=OFF
+.endif
Home |
Main Index |
Thread Index |
Old Index