aboutsummaryrefslogtreecommitdiff
path: root/security/opencdk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-03-06 15:27:04 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-03-06 15:27:04 +0000
commita04309fa7647fc437464df44981c6d220fca5504 (patch)
treee9e81e6fd5bef987db46c33c18adaa48bf0b532b /security/opencdk
parent281d18c3bf41721ff6bde75ed247f3ed35b26d96 (diff)
downloadports-a04309fa7647fc437464df44981c6d220fca5504.tar.gz
ports-a04309fa7647fc437464df44981c6d220fca5504.zip
USES=libtools fixes overlinking but reveals when upstream fails at properly
define libraries to link against. Properly link tests binaries with libgcrypt, this fixed builds on 10 and HEAD as well as with ports binutils (ld(1) is not recursive in those case) Reported by: novel, pkg-fallout
Notes
Notes: svn path=/head/; revision=347258
Diffstat (limited to 'security/opencdk')
-rw-r--r--security/opencdk/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/opencdk/Makefile b/security/opencdk/Makefile
index c472e6495e11..79dd67ac102b 100644
--- a/security/opencdk/Makefile
+++ b/security/opencdk/Makefile
@@ -24,6 +24,9 @@ CONFIGURE_ARGS= --with-libgcrypt-prefix=${LOCALBASE}
DOCS= AUTHORS NEWS README THANKS doc/opencdk-api.html
+post-patch:
+ @${REINPLACE_CMD} -e '/^LDADD/ s/$$/ $$(LIBGCRYPT_LIBS)/' ${WRKSRC}/tests/Makefile.in
+
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/tests/*.c ${STAGEDIR}${EXAMPLESDIR}