summaryrefslogtreecommitdiff
path: root/security/gsasl/Makefile
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2014-01-11 10:08:25 +0000
committerJohan van Selst <johans@FreeBSD.org>2014-01-11 10:08:25 +0000
commitca77c229f6e844abfa84e5c91cea32b4ea2b82c3 (patch)
treee56b510c21fa51f3af02638164de7f3d88db8329 /security/gsasl/Makefile
parentSupport stagedir. (diff)
Enable stage support
Notes
Notes: svn path=/head/; revision=339415
Diffstat (limited to 'security/gsasl/Makefile')
-rw-r--r--security/gsasl/Makefile47
1 files changed, 19 insertions, 28 deletions
diff --git a/security/gsasl/Makefile b/security/gsasl/Makefile
index edd7700730f2..3d0aa0400d15 100644
--- a/security/gsasl/Makefile
+++ b/security/gsasl/Makefile
@@ -11,48 +11,39 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= johans@FreeBSD.org
COMMENT= GNU SASL Library
-LIB_DEPENDS= idn.17:${PORTSDIR}/dns/libidn \
- gcrypt:${PORTSDIR}/security/libgcrypt \
- gnutls.26:${PORTSDIR}/security/gnutls \
- ntlm.0:${PORTSDIR}/security/libntlm
+LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn \
+ libgcrypt.so:${PORTSDIR}/security/libgcrypt \
+ libgnutls.so:${PORTSDIR}/security/gnutls \
+ libntlm.so:${PORTSDIR}/security/libntlm
USES= charsetfix pathfix perl5 pkgconfig
USE_PERL5= build
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-INFO= gsasl
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+INFO= gsasl
CPPFLAGS+= -nostdinc -I/usr/include -I${LOCALBASE}/include
LDFLAGS+= -L/usr/lib -L${LOCALBASE}/lib
post-patch:
-.for file in \
- lib/po/LINGUAS \
- po/LINGUAS
- @${REINPLACE_CMD} -e '/^en@/d' ${WRKSRC}/${file}
-.endfor
+ @${REINPLACE_CMD} -e '/^en@/d' \
+ ${WRKSRC}/lib/po/LINGUAS ${WRKSRC}/po/LINGUAS
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
- @${MKDIR} ${DOCSDIR}/reference
- ${INSTALL_DATA} ${WRKSRC}/doc/reference/html/* ${DOCSDIR}/reference
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgsasl.so
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/reference
+ @${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/reference/html/* \
+ ${STAGEDIR}${DOCSDIR}/reference
.endif
-.include "Makefile.man"
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>