aboutsummaryrefslogtreecommitdiffstats
path: root/security/libp11/Makefile
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2008-08-27 16:30:38 +0800
committerale <ale@FreeBSD.org>2008-08-27 16:30:38 +0800
commit9cb43dcfd7de7075f6763a2d803106e1f6c94985 (patch)
tree6822127f4f18137318d19c5306312a57bf03b475 /security/libp11/Makefile
parent886c19e3bb426c53ef2f9981e49063fcacf63452 (diff)
downloadfreebsd-ports-gnome-9cb43dcfd7de7075f6763a2d803106e1f6c94985.tar.gz
freebsd-ports-gnome-9cb43dcfd7de7075f6763a2d803106e1f6c94985.tar.zst
freebsd-ports-gnome-9cb43dcfd7de7075f6763a2d803106e1f6c94985.zip
Update to 0.2.4 release.
Diffstat (limited to 'security/libp11/Makefile')
-rw-r--r--security/libp11/Makefile34
1 files changed, 21 insertions, 13 deletions
diff --git a/security/libp11/Makefile b/security/libp11/Makefile
index 01d0a7da7ecb..3f0feb2548cc 100644
--- a/security/libp11/Makefile
+++ b/security/libp11/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= libp11
-PORTVERSION= 0.2.3
+PORTVERSION= 0.2.4
CATEGORIES= security devel
MASTER_SITES= http://www.opensc-project.org/files/${PORTNAME}/
@@ -16,27 +16,35 @@ COMMENT= A small layer on top of PKCS\#11 API
USE_AUTOTOOLS= libltdl:15
USE_OPENSSL= yes
GNU_CONFIGURE= yes
-USE_GNOME= gnomehack pkgconfig
+USE_GNOME= pkgconfig
USE_LDCONFIG= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
- LDFLAGS="${LDFLAGS}" \
+CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \
+ LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl"
-DOC_FILES= README *.sh *.xsl *.css *.html api
-
PORTDOCS= *
+.ifndef(NOPORTDOCS)
+CONFIGURE_ARGS+=--enable-doc
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
+ ${WRKSRC}/configure
+.ifndef(NOPORTDOCS)
+ @${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am: install-dist_docDATA|' \
+ ${WRKSRC}/doc/Makefile.in
+.else
+ @${REINPLACE_CMD} 's|install-data-am: install-dist_docDATA|install-data-am:|' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am:|' \
+ ${WRKSRC}/doc/Makefile.in
+.endif
+
post-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
-.ifndef(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @(cd ${WRKSRC}/doc && ${CP} -R ${DOC_FILES} ${DOCSDIR})
-.endif
.include <bsd.port.mk>