summaryrefslogtreecommitdiffstats
path: root/security/openpgpsdk
diff options
context:
space:
mode:
Diffstat (limited to 'security/openpgpsdk')
-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