pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/libgcrypt bl3ify and remove libiconv and gett...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f482a6652250
branches: trunk
changeset: 468040:f482a6652250
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Feb 10 00:13:24 2004 +0000
description:
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:
security/libgcrypt/Makefile | 17 ++++++++---------
security/libgcrypt/buildlink3.mk | 18 ++++++++++++++++++
2 files changed, 26 insertions(+), 9 deletions(-)
diffs (65 lines):
diff -r 1976acef4240 -r f482a6652250 security/libgcrypt/Makefile
--- a/security/libgcrypt/Makefile Mon Feb 09 23:56:32 2004 +0000
+++ b/security/libgcrypt/Makefile Tue Feb 10 00:13:24 2004 +0000
@@ -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 @@
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 @@
# 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"
diff -r 1976acef4240 -r f482a6652250 security/libgcrypt/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libgcrypt/buildlink3.mk Tue Feb 10 00:13:24 2004 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/02/10 00:13:24 jlam Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBGCRYPT_BUILDLINK3_MK:= ${LIBGCRYPT_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= libgcrypt
+.endif
+
+.if !empty(LIBGCRYPT_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+= libgcrypt
+BUILDLINK_DEPENDS.libgcrypt+= libgcrypt>=1.1.90
+BUILDLINK_PKGSRCDIR.libgcrypt?= ../../security/libgcrypt
+
+. include "../../security/libgpg-error/buildlink3.mk"
+.endif # LIBGCRYPT_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
Home |
Main Index |
Thread Index |
Old Index