pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/uriparser
Module Name: pkgsrc
Committed By: nia
Date: Tue Jul 11 05:55:10 UTC 2023
Modified Files:
pkgsrc/textproc/uriparser: Makefile
Added Files:
pkgsrc/textproc/uriparser: options.mk
Log Message:
uriparser: Option-ify building tests, which are not installed anyway.
Should help building this on systems with older compilers.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/textproc/uriparser/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/uriparser/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/textproc/uriparser/Makefile
diff -u pkgsrc/textproc/uriparser/Makefile:1.16 pkgsrc/textproc/uriparser/Makefile:1.17
--- pkgsrc/textproc/uriparser/Makefile:1.16 Fri Jan 7 12:40:08 2022
+++ pkgsrc/textproc/uriparser/Makefile Tue Jul 11 05:55:10 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2022/01/07 12:40:08 nros Exp $
+# $NetBSD: Makefile,v 1.17 2023/07/11 05:55:10 nia Exp $
DISTNAME= uriparser-0.9.6
CATEGORIES= textproc
@@ -13,9 +13,7 @@ LICENSE= modified-bsd
USE_CMAKE= yes
USE_FEATURES= snprintf
-USE_LANGUAGES= c c++
PKGCONFIG_OVERRIDE+= liburiparser.pc.in
-TEST_TARGET= test
CMAKE_ARGS+= -DURIPARSER_BUILD_DOCS=OFF
@@ -24,5 +22,5 @@ CFLAGS.NetBSD+= -D_OPENBSD_SOURCE
LDFLAGS.SunOS+= -lsocket -lnsl
-.include "../../devel/googletest/buildlink3.mk"
+.include "options.mk"
.include "../../mk/bsd.pkg.mk"
Added files:
Index: pkgsrc/textproc/uriparser/options.mk
diff -u /dev/null pkgsrc/textproc/uriparser/options.mk:1.1
--- /dev/null Tue Jul 11 05:55:10 2023
+++ pkgsrc/textproc/uriparser/options.mk Tue Jul 11 05:55:10 2023
@@ -0,0 +1,24 @@
+# $NetBSD: options.mk,v 1.1 2023/07/11 05:55:10 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.uriparser
+
+PKG_SUPPORTED_OPTIONS= tests
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtests)
+#
+# Note that uriparser itself is only written in C.
+# Minumum C++14 is required for gtest.
+#
+# Tests are default-off in order to help building this on systems
+# with older C++ compilers.
+#
+TEST_TARGET= test
+CMAKE_ARGS+= -DURIPARSER_BUILD_TESTS=ON
+USE_LANGUAGES= c c++14
+GCC_REQD+= 5
+. include "../../devel/googletest/buildlink3.mk"
+.else
+CMAKE_ARGS+= -DURIPARSER_BUILD_TESTS=OFF
+.endif
Home |
Main Index |
Thread Index |
Old Index