summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2011-11-13 08:11:28 +0000
committersbd <sbd@pkgsrc.org>2011-11-13 08:11:28 +0000
commit5fc2937e01c15c6effaa68cc59546c8ef51881ce (patch)
tree69f67293619670fc36df87b7d07144e33dca080c
parent9173e6deb53f130ec3d628206af445cf4c4e105b (diff)
downloadpkgsrc-5fc2937e01c15c6effaa68cc59546c8ef51881ce.tar.gz
Don't include dependence buildlink3 if using the builtin library.
Patch by obache@
-rw-r--r--archivers/libarchive/buildlink3.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/archivers/libarchive/buildlink3.mk b/archivers/libarchive/buildlink3.mk
index 52c5978a67b..7f8545b2f4e 100644
--- a/archivers/libarchive/buildlink3.mk
+++ b/archivers/libarchive/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.5 2011/11/01 06:50:28 sbd Exp $
+# $NetBSD: buildlink3.mk,v 1.6 2011/11/13 08:11:28 sbd Exp $
BUILDLINK_TREE+= libarchive
@@ -9,9 +9,16 @@ BUILDLINK_API_DEPENDS.libarchive+= libarchive>=2.2
BUILDLINK_ABI_DEPENDS.libarchive?= libarchive>=2.8.4nb1
BUILDLINK_PKGSRCDIR.libarchive?= ../../archivers/libarchive
+CHECK_BUILTIN.libarchive:= yes
+.include "../../archivers/libarchive/builtin.mk"
+CHECK_BUILTIN.libarchive:= no
+
+# A built-in libarchive is always using built-in zlib, bzip2, and xz.
+.if empty(USE_BUILTIN.libarchive:M[yY][eE][sS])
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
+.endif
.endif # LIBARCHIVE_BUILDLINK3_MK
BUILDLINK_TREE+= -libarchive