diff options
Diffstat (limited to 'archivers/bzip2/buildlink3.mk')
-rw-r--r-- | archivers/bzip2/buildlink3.mk | 74 |
1 files changed, 7 insertions, 67 deletions
diff --git a/archivers/bzip2/buildlink3.mk b/archivers/bzip2/buildlink3.mk index 818bb26f489..a11040d0d99 100644 --- a/archivers/bzip2/buildlink3.mk +++ b/archivers/bzip2/buildlink3.mk @@ -1,78 +1,18 @@ -# $NetBSD: buildlink3.mk,v 1.14 2004/02/18 16:35:27 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.15 2004/03/10 17:57:14 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ BZIP2_BUILDLINK3_MK:= ${BZIP2_BUILDLINK3_MK}+ -.include "../../mk/bsd.prefs.mk" +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= bzip2 +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nbzip2} +BUILDLINK_PACKAGES+= bzip2 .if !empty(BZIP2_BUILDLINK3_MK:M+) -BUILDLINK_PACKAGES+= bzip2 BUILDLINK_DEPENDS.bzip2+= bzip2>=1.0.1 BUILDLINK_PKGSRCDIR.bzip2?= ../../archivers/bzip2 .endif # BZIP2_BUILDLINK3_MK -BUILDLINK_CHECK_BUILTIN.bzip2?= NO - -.if !defined(BUILDLINK_IS_BUILTIN.bzip2) -BUILDLINK_IS_BUILTIN.bzip2= NO -. if exists(/usr/include/bzlib.h) -BUILDLINK_IS_BUILTIN.bzip2!= \ - if ${GREP} -q "BZ2_" /usr/include/bzlib.h; then \ - ${ECHO} "YES"; \ - else \ - ${ECHO} "NO"; \ - fi -. endif -. if !empty(BUILDLINK_CHECK_BUILTIN.bzip2:M[nN][oO]) -# -# Solaris 9 has bzip2 1.0.1, build it on older versions. -# Darwin only has static libbz2.a, which can't be buildlinked. -# -_INCOMPAT_BZIP2?= SunOS-5.[678]-* Darwin-* -. for _pattern_ in ${_INCOMPAT_BZIP2} ${INCOMPAT_BZIP2} -. if !empty(MACHINE_PLATFORM:M${_pattern_}) -BUILDLINK_IS_BUILTIN.bzip2= NO -. endif -. endfor -. endif -MAKEFLAGS+= BUILDLINK_IS_BUILTIN.bzip2=${BUILDLINK_IS_BUILTIN.bzip2} -.endif - -.if !empty(BUILDLINK_CHECK_BUILTIN.bzip2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.bzip2= YES -.endif - -.if !defined(BUILDLINK_USE_BUILTIN.bzip2) -. if !empty(BUILDLINK_IS_BUILTIN.bzip2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.bzip2= YES -. else -BUILDLINK_USE_BUILTIN.bzip2= NO -. endif - -. if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \ - !empty(BUILDLINK_IS_BUILTIN.bzip2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.bzip2= YES -. endif -. if !empty(PREFER_PKGSRC:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.bzip2= NO -. endif -. if !empty(PREFER_NATIVE:Mbzip2) && \ - !empty(BUILDLINK_IS_BUILTIN.bzip2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.bzip2= YES -. endif -. if !empty(PREFER_PKGSRC:Mbzip2) -BUILDLINK_USE_BUILTIN.bzip2= NO -. endif - -. if defined(USE_BZIP2) -BUILDLINK_USE_BUILTIN.bzip2= NO -. endif -.endif - -.if !empty(BUILDLINK_USE_BUILTIN.bzip2:M[nN][oO]) -. if !empty(BUILDLINK_DEPTH:M+) -BUILDLINK_DEPENDS+= bzip2 -. endif -.endif - BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |