summaryrefslogtreecommitdiff
path: root/security/libgcrypt/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-10 00:13:24 +0000
committerjlam <jlam>2004-02-10 00:13:24 +0000
commit764e1785418df9e55b6a02bbbbd671c6be5db6d4 (patch)
treed22bd850d6abaec38ffa69639255f40c473dc969 /security/libgcrypt/Makefile
parent0ef17764833da359153bd3e992e4754ceb9a83d2 (diff)
downloadpkgsrc-764e1785418df9e55b6a02bbbbd671c6be5db6d4.tar.gz
bl3ify and remove libiconv and gettext-lib buildlink files. This package
really only needs gettext-lib through libgpg-error, and doesn't need libiconv at all unless it uses the pkgsrc gettext-lib. The gettext-lib buildlink3.mk file combined with the buildlink3 framework is considerably better at detecting this than the buildlink2.mk, which broke in a lot of instances.
Diffstat (limited to 'security/libgcrypt/Makefile')
-rw-r--r--security/libgcrypt/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/security/libgcrypt/Makefile b/security/libgcrypt/Makefile
index 39d0e0cd6e3..e614f0081c7 100644
--- a/security/libgcrypt/Makefile
+++ b/security/libgcrypt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2004/02/05 00:09:51 grant Exp $
+# $NetBSD: Makefile,v 1.12 2004/02/10 00:13:24 jlam Exp $
#
DISTNAME= libgcrypt-1.1.90
@@ -11,7 +11,7 @@ MAINTAINER= tron@NetBSD.org
HOMEPAGE= http://www.gnu.org/directory/security/libgcrypt.html
COMMENT= GNU cryptographic library
-USE_BUILDLINK2= YES
+USE_BUILDLINK3= YES
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
@@ -25,18 +25,17 @@ INFO_FILES= gcrypt.info
# Our "libtool" doesn't like the crafted ".lo" files with the assembly
# implementations. So we use the bundled "libtool" for NetBSD-i386 ELF
# and ours otherwise.
-.if ${MACHINE_GNU_PLATFORM} != i386--netbsdelf && ${MACHINE_GNU_PLATFORM} != alpha--netbsd
+#
+.if empty(MACHINE_PLATFORM:MNetBSD-*-i386) && \
+ empty(MACHINE_PLATFORM:MNetBSD-*-alpha)
CONFIGURE_ARGS+= --disable-asm
LIBTOOL_OVERRIDE+= ${WRKSRC}/libtool
.endif
-.if exists(/usr/include/pthread.h)
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "native")
CONFIGURE_ARGS+= --without-pth
.endif
-.include "../../converters/libiconv/buildlink2.mk"
-.include "../../devel/gettext-lib/buildlink2.mk"
-.include "../../security/libgpg-error/buildlink2.mk"
-
-.include "../../mk/pthread.buildlink2.mk"
+.include "../../security/libgpg-error/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"