pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/p11-kit



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Mar  5 22:26:18 UTC 2025

Modified Files:
        pkgsrc/security/p11-kit: Makefile
Added Files:
        pkgsrc/security/p11-kit: options.mk

Log Message:
p11-kit: Don't build tests by default. Require pthreads.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 pkgsrc/security/p11-kit/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/security/p11-kit/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/security/p11-kit/Makefile
diff -u pkgsrc/security/p11-kit/Makefile:1.37 pkgsrc/security/p11-kit/Makefile:1.38
--- pkgsrc/security/p11-kit/Makefile:1.37       Fri Jul  5 07:56:18 2024
+++ pkgsrc/security/p11-kit/Makefile    Wed Mar  5 22:26:18 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2024/07/05 07:56:18 adam Exp $
+# $NetBSD: Makefile,v 1.38 2025/03/05 22:26:18 nia Exp $
 
 DISTNAME=      p11-kit-0.25.5
 CATEGORIES=    security
@@ -17,7 +17,6 @@ DEPENDS+=     mozilla-rootcerts>=1.0.2015080
 
 MESON_ARGS+=   -Dtrust_paths=${PREFIX}/share/mozilla-rootcerts/cacert.pem
 
-USE_CC_FEATURES=       c99
 USE_FEATURES+=         strndup strnlen
 USE_LANGUAGES=         c
 USE_TOOLS+=            msgfmt pkg-config readlink
@@ -44,10 +43,16 @@ CONF_FILES+=                share/examples/p11-kit/pkc
 
 INSTALLATION_DIRS+=    share/examples/p11-kit
 
+PTHREAD_OPTS=          require
+PTHREAD_AUTO_VARS=     yes
+
+.include "../../mk/pthread.buildlink3.mk"
+
 post-install:
        ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/pkcs11/pkcs11.conf.example \
                ${DESTDIR}${PREFIX}/share/examples/p11-kit
 
+.include "options.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../devel/libffi/buildlink3.mk"
 .include "../../devel/meson/build.mk"

Added files:

Index: pkgsrc/security/p11-kit/options.mk
diff -u /dev/null pkgsrc/security/p11-kit/options.mk:1.1
--- /dev/null   Wed Mar  5 22:26:18 2025
+++ pkgsrc/security/p11-kit/options.mk  Wed Mar  5 22:26:18 2025
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2025/03/05 22:26:18 nia Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.p11-kit
+PKG_SUPPORTED_OPTIONS=         tests
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtests)
+MESON_ARGS+=           -Dtest=true
+.else
+MESON_ARGS+=           -Dtest=false
+.endif



Home | Main Index | Thread Index | Old Index