summaryrefslogtreecommitdiff
path: root/security/libassuan/Makefile
diff options
context:
space:
mode:
authorbjs <bjs>2008-09-07 02:40:53 +0000
committerbjs <bjs>2008-09-07 02:40:53 +0000
commit218f62b9dfb817283c8b147e16f90929aea747b0 (patch)
tree83734bffc8fd6e7f97bb4765e78e5511aebb1882 /security/libassuan/Makefile
parente334a932f832979dc81ffb623e5c1c24245a611c (diff)
downloadpkgsrc-218f62b9dfb817283c8b147e16f90929aea747b0.tar.gz
Update to libassuan-1.0.5. As shipped, it builds with -fPIC on linux.
This is not acceptable for us. Instead, we patch to use libtool. The included test passes. Changes since 1.0.3: * Minor fixes. * Build library for GNU/Linux as PIC [**but we use libtool**] * New hook feature to enhance the internal I/O functions.
Diffstat (limited to 'security/libassuan/Makefile')
-rw-r--r--security/libassuan/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/security/libassuan/Makefile b/security/libassuan/Makefile
index 0713a141c8f..a753c6203d2 100644
--- a/security/libassuan/Makefile
+++ b/security/libassuan/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.15 2008/07/14 12:56:11 joerg Exp $
+# $NetBSD: Makefile,v 1.16 2008/09/07 02:40:53 bjs Exp $
#
-DISTNAME= libassuan-1.0.3
+DISTNAME= libassuan-1.0.5
CATEGORIES= security
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/libassuan/
EXTRACT_SUFX= .tar.bz2
@@ -15,8 +15,21 @@ PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
INFO_FILES= yes
+USE_TOOLS+= autoconf autoreconf automake
+USE_LIBTOOL= yes
+###
+### XXX By default, this package will build with -fPIC on linux.
+### Instead, let's patch it to use libtool and use --with-pic
+### to build position-independent code when possible.
+CONFIGURE_ARGS+= --with-pic
+TEST_TARGET= check
BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.0.0
+pre-configure:
+ cd ${WRKSRC} && \
+ ${SETENV} ${CONFIGURE_ENV} ${CONFIG_SHELL} autogen.sh && \
+ ${TOUCH} ${TOUCH_FLAGS} libtool
+
.include "../../security/libgpg-error/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"