PORTNAME= xmlsec1 DISTVERSION= 1.3.6 CATEGORIES= security MASTER_SITES= https://github.com/lsh123/xmlsec/releases/download/xmlsec_${DISTVERSION:S,.,_,g}/ \ https://www.aleksey.com/xmlsec/download/ MAINTAINER= hrs@FreeBSD.org COMMENT= XML Security Library WWW= https://www.aleksey.com/xmlsec/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/Copyright LIB_DEPENDS= libltdl.so:devel/libltdl USES= gmake gnome libtool localbase pathfix pkgconfig USE_GNOME= libxml2 libxslt USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-static INSTALL_TARGET= install-strip PORTDOCS= * PLIST_SUB= DISTVERSION=${DISTVERSION} OPTIONS_DEFINE= DOCS OPTIONS_MULTI= SSL OPTIONS_MULTI_SSL= GNUTLS NSS OPENSSL OPTIONS_DEFAULT= OPENSSL NSS OPTIONS_SUB= yes GNUTLS_LIB_DEPENDS= libgcrypt.so:security/libgcrypt \ libgnutls.so:security/gnutls GNUTLS_CONFIGURE_WITH= gcrypt gnutls NSS_LIB_DEPENDS= libnspr4.so:devel/nspr \ libnss3.so:security/nss NSS_CONFIGURE_WITH= nspr nss OPENSSL_USES= ssl OPENSSL_CONFIGURE_OFF= --without-openssl OPENSSL_CONFIGURE_ON= --with-openssl="${OPENSSLBASE}" post-patch: cd ${PATCH_WRKSRC} && ${REINPLACE_CMD} \ -e 's/(CP) -ru/(CP) -r/' \ -e 's/(CP) -u/(CP)/' \ docs/Makefile.am \ docs/Makefile.in \ docs/api/Makefile.am \ docs/api/Makefile.in \ man/Makefile.am \ man/Makefile.in post-patch-GNUTLS-on: # Don't rely on broken autodetection ${REINPLACE_CMD} -e '/^GNUTLS_FOUND/s/no/yes/' \ -e '/^GNUTLS_LIBS=/s,"","-L${LOCALBASE}/lib -lgnutls",' \ ${PATCH_WRKSRC}/${CONFIGURE_SCRIPT} post-patch-NSS-on: ${REINPLACE_CMD} -e 's/mozilla-nss/nss/' \ -e 's/mozilla-nspr/nspr/' ${PATCH_WRKSRC}/${CONFIGURE_SCRIPT} ${REINPLACE_CMD} -e 's,^\(xmlsec1_LDADD = \)\\$$,\1 -L${LOCALBASE}/lib -lpthread\\,' \ ${PATCH_WRKSRC}/apps/Makefile.in post-install: ${RMDIR} ${STAGEDIR}${DOCSDIR}/css .include