diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-12 02:35:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-12 02:35:06 +0000 |
commit | d2b62c66fbc6fa5d43546377699557ae9780a930 (patch) | |
tree | abedabb5e0a307cd66dc653a926873635736358e /converters/libiconv/buildlink3.mk | |
parent | 8d7a59f64baaca76cd5a0b7d879528cc17e128f4 (diff) | |
download | pkgsrc-d2b62c66fbc6fa5d43546377699557ae9780a930.tar.gz |
Create a new variable PREFER_NATIVE that has the opposite semantics
as PREFER_PKGSRC. Preferences are determined by the most specific
instance of the package in either PREFER_PKGSRC or PREFER_NATIVE. If
a package is specified in neither or in both variables, then PREFER_PKGSRC
has precedence over PREFER_NATIVE.
Diffstat (limited to 'converters/libiconv/buildlink3.mk')
-rw-r--r-- | converters/libiconv/buildlink3.mk | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/converters/libiconv/buildlink3.mk b/converters/libiconv/buildlink3.mk index f72f13a3d36..d53caccf703 100644 --- a/converters/libiconv/buildlink3.mk +++ b/converters/libiconv/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.13 2004/02/12 01:59:37 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.14 2004/02/12 02:35:06 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ ICONV_BUILDLINK3_MK:= ${ICONV_BUILDLINK3_MK}+ @@ -36,8 +36,18 @@ BUILDLINK_USE_BUILTIN.iconv= YES BUILDLINK_USE_BUILTIN.iconv= NO .endif -.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \ - !empty(PREFER_PKGSRC:Miconv) +.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \ + !empty(BUILDLINK_IS_BUILTIN.iconv:M[yY][eE][sS]) +BUILDLINK_USE_BUILTIN.iconv= YES +.endif +.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) +BUILDLINK_USE_BUILTIN.iconv= NO +.endif +.if !empty(PREFER_NATIVE:Miconv) && \ + !empty(BUILDLINK_IS_BUILTIN.iconv:M[yY][eE][sS]) +BUILDLINK_USE_BUILTIN.iconv= YES +.endif +.if !empty(PREFER_PKGSRC:Miconv) BUILDLINK_USE_BUILTIN.iconv= NO .endif |