svn commit: r361462 - head/security/openpgpsdk
Pawel Pekala
pawel at FreeBSD.org
Thu Jul 10 15:18:23 UTC 2014
Author: pawel
Date: Thu Jul 10 15:18:22 2014
New Revision: 361462
URL: http://svnweb.freebsd.org/changeset/ports/361462
QAT: https://qat.redports.org/buildarchive/r361462/
Log:
- 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
Modified:
head/security/openpgpsdk/Makefile
head/security/openpgpsdk/pkg-descr
Modified: head/security/openpgpsdk/Makefile
==============================================================================
--- head/security/openpgpsdk/Makefile Thu Jul 10 15:14:28 2014 (r361461)
+++ head/security/openpgpsdk/Makefile Thu Jul 10 15:18:22 2014 (r361462)
@@ -7,11 +7,11 @@ CATEGORIES= security
MASTER_SITES= http://openpgp.nominet.org.uk/downloads/
EXTRACT_SUFX= .tgz
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= ports at 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-cu
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>
Modified: head/security/openpgpsdk/pkg-descr
==============================================================================
--- head/security/openpgpsdk/pkg-descr Thu Jul 10 15:14:28 2014 (r361461)
+++ head/security/openpgpsdk/pkg-descr Thu Jul 10 15:18:22 2014 (r361462)
@@ -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/
More information about the svn-ports-head
mailing list