diff options
author | edwin <edwin@FreeBSD.org> | 2003-06-04 10:39:26 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-06-04 10:39:26 +0000 |
commit | b9978f40f587caf215e7534e5900b6f7f872023b (patch) | |
tree | e5a2f25e8f829c31e7d11a41cd6afbbf6aa517ef /security/xmlsec1/Makefile | |
parent | 77da1f2c7642dc4e95773654c0580200b7c048ab (diff) | |
download | FreeBSD-ports-b9978f40f587caf215e7534e5900b6f7f872023b.zip FreeBSD-ports-b9978f40f587caf215e7534e5900b6f7f872023b.tar.gz |
Update: security/xmlsec1
Changes/update for myself
- Bring GNUTLS as optional flavor
Changes/update from KATO Tsuguru <tkato@prontomail.com> (thanks!)
- Do not install useless .la file
- Install .pc file to correct place
PR: ports/52769
Submitted by: Jim Geovedi <jim@corebsd.or.id>
Diffstat (limited to 'security/xmlsec1/Makefile')
-rw-r--r-- | security/xmlsec1/Makefile | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/security/xmlsec1/Makefile b/security/xmlsec1/Makefile index a21f783..054e61d 100644 --- a/security/xmlsec1/Makefile +++ b/security/xmlsec1/Makefile @@ -7,6 +7,7 @@ PORTNAME= xmlsec1 PORTVERSION= 1.0.1 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.aleksey.com/xmlsec/download/ \ ftp://ftp.aleksey.com/pub/xmlsec/releases/ \ @@ -16,24 +17,41 @@ MASTER_SITES= http://www.aleksey.com/xmlsec/download/ \ MAINTAINER= jim@corebsd.or.id COMMENT= XML Security Library -LIB_DEPENDS= xslt:${PORTSDIR}/textproc/libxslt \ - gnutls.8:${PORTSDIR}/security/gnutls +RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig +BUILD_DEPENDS= ${RUN_DEPENDS} -USE_LIBTOOL= yes USE_OPENSSL= yes +USE_GNOME= gnomehack libxslt USE_REINPLACE= yes +USE_LIBTOOL= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} INSTALLS_SHLIB= yes -GNU_CONFIGURE= yes - -CONFIGURE_TARGET= -build=${ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ARGS+= --with-gnutls="${LOCALBASE}" MAN1= xmlsec1.1 xmlsec1-config.1 -post-configure: -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e "s:src apps man docs:src apps man:g" \ - ${WRKSRC}/Makefile +.if defined(WITH_GNUTLS) +CONFIGURE_ARGS+= --with-gnutls="${LOCALBASE}" +LIB_DEPENDS+= gnutls.8:${PORTSDIR}/security/gnutls +PLIST_SUB+= GNUTLS="" +.else +CONFIGURE_ARGS+= --without-gnutls +PLIST_SUB+= GNUTLS="@comment " +.endif + +.if !defined(NOPORTDOCS) +MAKE_ENV= DOCS=docs .endif +pre-everything:: + @${ECHO} "" + @${ECHO} "You may use the following build options:" + @${ECHO} "" + @${ECHO} " WITH_GNUTLS=yes Enable GNUTLS support" + @${ECHO} "" + +post-patch: + @${REINPLACE_CMD} -e 's|src apps man docs|src apps man \$${DOCS}|g ; \ + s|^confexecdir =.*$$|confexecdir = \$$(sysconfdir)|g' \ + ${WRKSRC}/Makefile.in + .include <bsd.port.mk> |