e8bd7982c5
This should fix the build on platforms that do not use GNU ld such as MacOSX.
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.23 2021/08/24 15:07:28 manu Exp $
|
|
|
|
DISTNAME= p11-kit-0.24.0
|
|
PKGREVISION= 3
|
|
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
|
|
|
|
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
|
|
|
|
.include "../../devel/libffi/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../security/libtasn1/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|