1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- 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
This commit is contained in:
Pawel Pekala 2014-07-10 15:18:22 +00:00
parent 69133e3ab5
commit 3aadbea79a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361462
2 changed files with 10 additions and 6 deletions

View File

@ -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>

View File

@ -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/