diff options
Diffstat (limited to 'security/xmlsec1/Makefile')
-rw-r--r-- | security/xmlsec1/Makefile | 40 |
1 files changed, 9 insertions, 31 deletions
diff --git a/security/xmlsec1/Makefile b/security/xmlsec1/Makefile index b2b5f767e408..c758c3315b0f 100644 --- a/security/xmlsec1/Makefile +++ b/security/xmlsec1/Makefile @@ -40,10 +40,14 @@ OPTIONS_SUB= yes DOCS_MAKE_ENV= DOCS=docs GNUTLS_DESC= Enable GNUTLS support -GNUTLS_CONFIGURE_WITH= gnutls="${LOCALBASE}" +GNUTLS_CONFIGURE_ON= --with-gnutls="${LOCALBASE}" +GNUTLS_CONFIGURE_OFF= --without-gnutls GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls NSS_DESC= Enable Mozilla's NSS support -NSS_CONFIGURE_WITH= nss="${LOCALBASE}" nspr="${LOCALBASE}" +NSS_CONFIGURE_ON= --with-nss="${LOCALBASE}" \ + --with-nspr="${LOCALBASE}" +NSS_CONFIGURE_OFF= --without-nss \ + --without-nspr NSS_LIB_DEPENDS= libnss3.so:security/nss \ libnspr4.so:devel/nspr \ libplds4.so:devel/nspr \ @@ -53,42 +57,16 @@ NSS_LIB_DEPENDS= libnss3.so:security/nss \ MAKE_ARGS+= -EABS_BUILDDIR .endif -.include <bsd.port.options.mk> - -# avoid --without-opt=PATH constructs -CONFIGURE_ARGS:=${CONFIGURE_ARGS:C/without-([a-z]*)=.*/without-\1/} - -post-patch: - @${REINPLACE_CMD} -e 's|src apps man docs|src apps man \$${DOCS}|g' \ - -e 's|^confexecdir =.*$$|confexecdir = \$$(sysconfdir)|g' \ - -e 's|/tmp/\*\.log|${WRKSRC}/*.log|g' \ - ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} \ - -e '/^XMLSEC_SHLIBSFX="/s|"[^"]*"|".so"|' \ - -e 's|openssl_exlibs=-ldl|openssl_exlibs=|' \ - -e 's|-ldl"|"|' \ - -e 's,with_nss/include,with_nss/include/nss/nss,' \ - -e 's,with_nss/lib,with_nss/lib/nss,g' \ - -e 's,\(CPPFLAGS="\$$NSS_CFLAGS\),\1 $$NSPR_CFLAGS,' \ - -e '/XMLSEC_CRYPTO_LIST=.*openssl/s,$$,\; CPPFLAGS="$$CPPFLAGS $$OPENSSL_CFLAGS",' \ - -e 's,\(-lplc4\)",\1 -lpthread",' \ - -e '/ test /s, == , = ,' \ - ${WRKSRC}/${CONFIGURE_SCRIPT} - @${REINPLACE_CMD} \ - -e 's,total_time.*/ 1000),total_time*1000/CLOCKS_PER_SEC,' \ - ${WRKSRC}/apps/xmlsec.c - @${REINPLACE_CMD} -e 's,\\\\\\,\\,g' ${WRKSRC}/*.pc.in -.if ${PORT_OPTIONS:MGNUTLS} +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",' \ ${WRKSRC}/${CONFIGURE_SCRIPT} -.endif -.if ${PORT_OPTIONS:MNSS} + +post-patch-NSS-on: # Makeing the xmlsec1 executable multi-threaded to let load -lnss, # when needed. @${REINPLACE_CMD} -e 's,^\(xmlsec1_LDADD = \)\\$$,\1 -L${LOCALBASE}/lib -lpthread\\,' \ ${WRKSRC}/apps/Makefile.in -.endif .include <bsd.port.mk> |