diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-11 11:30:49 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-11 11:30:49 +0000 |
commit | 7c68eb548f89a9227972cfc3d5801f9d5d62110a (patch) | |
tree | 52b113c0ef376141f7b0fef403939f60d89cf6ca /devel/readline | |
parent | 6dbc10b506e6cf94f57aa1cfe0910c783cc2ef5b (diff) | |
download | pkgsrc-7c68eb548f89a9227972cfc3d5801f9d5d62110a.tar.gz |
Move the INCOMPAT_FOO checks to a more natural location within the
block that decides whether package FOO is built-in or not. If the
platform is listed in IMCOMPAT_FOO, then treat FOO as being not
built-in.
Diffstat (limited to 'devel/readline')
-rw-r--r-- | devel/readline/buildlink3.mk | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/devel/readline/buildlink3.mk b/devel/readline/buildlink3.mk index f7d8eaa74a7..d65025a8a43 100644 --- a/devel/readline/buildlink3.mk +++ b/devel/readline/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.10 2004/02/06 19:04:24 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.11 2004/02/11 11:30:50 jlam Exp $ # # Optionally define USE_GNU_READLINE to force use of GNU readline. # @@ -24,6 +24,17 @@ BUILDLINK_IS_BUILTIN.readline= NO exists(/usr/include/readline/readline.h) BUILDLINK_IS_BUILTIN.readline= YES . endif +# +# These catch-alls are probably too broad, but better to err on the safe +# side. We can narrow down the match when we have better information. +# +_INCOMPAT_READLINE?= SunOS-*-* +. for _pattern_ in ${_INCOMPAT_READLINE} ${INCOMPAT_READLINE} +. if !empty(MACHINE_PLATFORM:M${_pattern_}) +BUILDLINK_IS_BUILTIN.readline= NO +. endif +. endfor +MAKEFLAGS+= BUILDLINK_IS_BUILTIN.readline=${BUILDLINK_IS_BUILTIN.readline} .endif .if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \ @@ -44,20 +55,8 @@ BUILDLINK_USE_BUILTIN.readline= YES BUILDLINK_USE_BUILTIN.readline= NO . else BUILDLINK_USE_BUILTIN.readline= YES -# -# These catch-alls are probably too broad, but better to err on the safe -# side. We can narrow down the match when we have better information. -# -_INCOMPAT_READLINE= SunOS-*-* -INCOMPAT_READLINE?= # empty -. for _pattern_ in ${_INCOMPAT_READLINE} ${INCOMPAT_READLINE} -. if !empty(MACHINE_PLATFORM:M${_pattern_}) -BUILDLINK_USE_BUILTIN.readline= NO -. endif -. endfor . endif -MAKEFLAGS+= \ - BUILDLINK_USE_BUILTIN.readline=${BUILDLINK_USE_BUILTIN.readline} +MAKEFLAGS+= BUILDLINK_USE_BUILTIN.readline=${BUILDLINK_USE_BUILTIN.readline} .endif .if !empty(BUILDLINK_USE_BUILTIN.readline:M[nN][oO]) |