summaryrefslogtreecommitdiff
path: root/archivers/bzip2
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-08-07 06:10:32 +0000
committerjlam <jlam@pkgsrc.org>2002-08-07 06:10:32 +0000
commitd88554c247240ad981076db018e6e07253ea2b56 (patch)
tree6a4bcdaefbca611c5858b32f72cc017cc3ad3a52 /archivers/bzip2
parentb23b831acc5f3fa3af35dbe13d151170186b78b3 (diff)
downloadpkgsrc-d88554c247240ad981076db018e6e07253ea2b56.tar.gz
Create new variables INCOMPAT_ZLIB, INCOMPAT_BZIP2, INCOMPAT_READLINE,
INCOMPAT_GETTEXT that are analogous to INCOMPAT_ICONV and contain lists of shell wildcards intended to match against ${MACHINE_PLATFORM}. These variables are used to note those platforms that have the named packages in the base system but are incompatible in some way from the pkgsrc version of the same package. Change INCOMPAT_CURSES to have the same sematics as above. These variables allow much greater precision in specifying which platforms have broken (for the purposes of pkgsrc) versions of software in the base system that must be ignored. The buildlink.mk files for these packages define private _INCOMPAT_* versions of these variables, and they contain the default lists of platforms that are known to have incompatible software bits. This addresses pkg/17775 submitted by Julien T. Letessier <julien.letessier at sun dot com>.
Diffstat (limited to 'archivers/bzip2')
-rw-r--r--archivers/bzip2/buildlink.mk26
1 files changed, 17 insertions, 9 deletions
diff --git a/archivers/bzip2/buildlink.mk b/archivers/bzip2/buildlink.mk
index 0440bdee18c..4c7e3b8820c 100644
--- a/archivers/bzip2/buildlink.mk
+++ b/archivers/bzip2/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.6 2002/06/09 02:55:06 yyamano Exp $
+# $NetBSD: buildlink.mk,v 1.7 2002/08/07 06:10:32 jlam Exp $
#
# This Makefile fragment is included by packages that use bzip2.
#
@@ -19,21 +19,29 @@ BZIP2_BUILDLINK_MK= # defined
BUILDLINK_DEPENDS.bzip2?= bzip2>=1.0.1
-.include "../../mk/bsd.prefs.mk"
-
-.if exists(/usr/include/bzlib.h)
+.if defined(USE_BZIP2)
+_NEED_BZIP2= YES
+.else
+. if exists(/usr/include/bzlib.h)
#
# Recent versions of the libbz2 API prefix all functions with "BZ2_".
#
_BUILTIN_BZIP2!= ${EGREP} -c "BZ2_" /usr/include/bzlib.h || ${TRUE}
-.else
+. else
_BUILTIN_BZIP2= 0
-.endif
-
-.if ${_BUILTIN_BZIP2} == "0"
+. endif
+. if ${_BUILTIN_BZIP2} == "0"
_NEED_BZIP2= YES
-.else
+. else
_NEED_BZIP2= NO
+. endif
+_INCOMPAT_BZIP2?= # should be set from defs.${OPSYS}.mk
+INCOMPAT_BZIP2?= # empty
+. for _pattern_ in ${_INCOMPAT_BZIP2} ${INCOMPAT_BZIP2}
+. if !empty(MACHINE_PLATFORM:M${_pattern_})
+_NEED_BZIP2= YES
+. endif
+. endfor
.endif
.if ${_NEED_BZIP2} == "YES"