pkgsrc/security/p11-kit/Makefile
wiz 84225f5138 p11-kit: add readlink to tools
From Claes Nästén in PR 56697
2022-02-07 08:05:05 +00:00

54 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.26 2022/02/07 08:05:05 wiz Exp $
DISTNAME= p11-kit-0.24.1
CATEGORIES= security
#MASTER_SITES= http://p11-glue.freedesktop.org/releases/
MASTER_SITES+= ${MASTER_SITE_GITHUB:=p11-glue/}
GITHUB_RELEASE= ${PKGVERSION_NOREV}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://p11-glue.freedesktop.org/p11-kit.html
COMMENT= PKCS\#11 module manager
LICENSE= modified-bsd
DEPENDS+= mozilla-rootcerts>=1.0.20150804nb1:../../security/mozilla-rootcerts
CONFIGURE_ARGS+= --with-trust-paths=${PREFIX}/share/mozilla-rootcerts/cacert.pem
GNU_CONFIGURE= yes
USE_LANGUAGES= c99
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config readlink
TEST_TARGET= check
# dirfd(3)
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
# reallocarray(3)
CFLAGS.NetBSD+= -D_OPENBSD_SOURCE
CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
LDFLAGS.SunOS+= -lsocket -lnsl
DLEXT.dylib= dylib
DLEXT= ${DLEXT.${SHLIB_TYPE}:Uso}
PLIST_SUBST+= DLEXT=${DLEXT:Q}
PKGCONFIG_OVERRIDE+= p11-kit/p11-kit-1.pc.in
PKG_SYSCONFSUBDIR= pkcs11
CONF_FILES+= share/examples/p11-kit/pkcs11.conf.example \
${PKG_SYSCONFDIR}/pkcs11.conf
INSTALLATION_DIRS+= share/examples/p11-kit
post-install:
mv ${DESTDIR}${PREFIX}/etc/pkcs11/pkcs11.conf.example \
${DESTDIR}${PREFIX}/share/examples/p11-kit
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../security/libtasn1/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"