From 9cb43dcfd7de7075f6763a2d803106e1f6c94985 Mon Sep 17 00:00:00 2001 From: ale Date: Wed, 27 Aug 2008 08:30:38 +0000 Subject: Update to 0.2.4 release. --- security/libp11/Makefile | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'security/libp11/Makefile') 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 -- cgit