summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-07-10 15:18:22 +0000
committerpawel <pawel@FreeBSD.org>2014-07-10 15:18:22 +0000
commit0f57a8280fb9fd252c74922263bd704f0f9a19a1 (patch)
tree337bef802a05c80f33e8c5f48536ed49f73d46d3
parent1ea30ba2b2b5b1c31c518b82d3297fabd338f969 (diff)
downloadFreeBSD-ports-0f57a8280fb9fd252c74922263bd704f0f9a19a1.zip
FreeBSD-ports-0f57a8280fb9fd252c74922263bd704f0f9a19a1.tar.gz
- Fix build with clang (overzealous -Werror)
- Add staging support - Respect CFLAGS, LDFLAGS - Convert to new LIB_DEPENDS format - Fix WWW line in pkg-descr MFH: 2014Q3
-rw-r--r--security/openpgpsdk/Makefile14
-rw-r--r--security/openpgpsdk/pkg-descr2
2 files changed, 10 insertions, 6 deletions
diff --git a/security/openpgpsdk/Makefile b/security/openpgpsdk/Makefile
index bc823ba..03efff5 100644
--- a/security/openpgpsdk/Makefile
+++ b/security/openpgpsdk/Makefile
@@ -7,11 +7,11 @@ CATEGORIES= security
MASTER_SITES= http://openpgp.nominet.org.uk/downloads/
EXTRACT_SUFX= .tgz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= OpenPGP SDK
BUILD_DEPENDS= gpg2:${PORTSDIR}/security/gnupg
-LIB_DEPENDS= cunit.1:${PORTSDIR}/devel/cunit
+LIB_DEPENDS= libcunit.so:${PORTSDIR}/devel/cunit
USES= perl5
HAS_CONFIGURE= yes
@@ -19,9 +19,13 @@ CONFIGURE_ARGS= --without-idea --with-cunit=${LOCALBASE}
PLIST_FILES= bin/openpgp lib/libops.a
-NO_STAGE= yes
+post-patch:
+ @${REINPLACE_CMD} 's|-Werror -W -g|${CFLAGS}|' ${WRKSRC}/configure
+ @${FIND} ${WRKSRC} -name Makefile.template -exec ${REINPLACE_CMD} \
+ 's|-Werror -g|${CFLAGS}|; /^LDFLAGS/ s|-g|${LDFLAGS}|' {} \;
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/openpgp ${PREFIX}/bin/
- ${INSTALL_DATA} ${WRKSRC}/lib/libops.a ${PREFIX}/lib/
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/openpgp ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/lib/libops.a ${STAGEDIR}${PREFIX}/lib
.include <bsd.port.mk>
diff --git a/security/openpgpsdk/pkg-descr b/security/openpgpsdk/pkg-descr
index 6b51404..73b78a4 100644
--- a/security/openpgpsdk/pkg-descr
+++ b/security/openpgpsdk/pkg-descr
@@ -1,4 +1,4 @@
The OpenPGP SDK project provides an open source library, written in C,
which implements the OpenPGP specification.
-WWW: http://openpgp.nominet.org.uk/
+WWW: http://openpgp.nominet.org.uk/
OpenPOWER on IntegriCloud