pkgsrc-Users archive

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

xmlsec1 --with-nss



Hi, I am trying to get xmlsec1 compiled with nss support which in
turn is needed to compile libgeier (http://www.taxbird.de/).
I tried to modify the Makefile (see below), but the configure script
does not accept separate values for nss-includes and nss-libs. Only
a --with-nss option is allowed. In addition it does not seem to
honor CPPFLAGS during configure.
Any ideas how to compile in nss support?

Thanks,
Johannes

diff -r fde6d37f6fad security/xmlsec1/Makefile
--- a/security/xmlsec1/Makefile Sat Feb 03 01:52:55 2007 +0000
+++ b/security/xmlsec1/Makefile Sat Feb 03 19:40:47 2007 +0100
@@ -1,8 +1,7 @@
 # $NetBSD: Makefile,v 1.11 2006/07/07 15:49:33 jlam Exp $
 #
 
-DISTNAME=              xmlsec1-1.2.6
-PKGREVISION=           3
+DISTNAME=              xmlsec1-1.2.8
 CATEGORIES=            security
 MASTER_SITES=          http://www.aleksey.com/xmlsec/download/
 
@@ -14,16 +13,27 @@ USE_PKGLOCALEDIR=   yes
 USE_PKGLOCALEDIR=      yes
 USE_LIBTOOL=           yes
 #PKGCONFIG_OVERRIDE+=  ${WRKSRC}/xmlsec-gnutls.pc.in
-#PKGCONFIG_OVERRIDE+=  ${WRKSRC}/xmlsec-nss.pc.in
+PKGCONFIG_OVERRIDE+=   ${WRKSRC}/xmlsec-nss.pc.in
 PKGCONFIG_OVERRIDE+=   ${WRKSRC}/xmlsec-openssl.pc.in
 PKGCONFIG_OVERRIDE+=   ${WRKSRC}/xmlsec.pc.in
 GNU_CONFIGURE=         yes
 #CONFIGURE_ARGS+=      --without-openssl
 CONFIGURE_ARGS+=       --with-openssl=${BUILDLINK_PREFIX.openssl}
+CONFIGURE_ARGS+=       --with-nss=${BUILDLINK_PREFIX.nss}
 CONFIGURE_ARGS+=       --without-gnutls
+
+
+CPPFLAGS+=              -I${BUILDLINK_PREFIX.nss}/include/nss/nss
+CPPFLAGS+=
-I${BUILDLINK_PREFIX.nspr}/include/nspr/nspr
+
+LDFLAGS+=
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.nss}/lib/nss
+LDFLAGS+=
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.nspr}/lib/nspr
 
 .include "../../security/openssl/buildlink3.mk"
 #.include "../../security/gnutls/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../textproc/libxslt/buildlink3.mk"
+.include "../../devel/nspr/buildlink3.mk"
+.include "../../devel/nss/buildlink3.mk"
+
 .include "../../mk/bsd.pkg.mk"




Home | Main Index | Thread Index | Old Index