summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2013-07-15 01:54:25 +0000
committerryoon <ryoon@pkgsrc.org>2013-07-15 01:54:25 +0000
commit29877aa228370da1d550114d6ea0adac9e67a025 (patch)
tree77d0d0ba408f9a0d3dd698a5a21a5490841c5ae3 /devel
parent68789bde9ece5d2eed233124c96b4a0acbd6f0dd (diff)
downloadpkgsrc-29877aa228370da1d550114d6ea0adac9e67a025.tar.gz
Add buildlink/builtin mechanism for devel/editline and devel/readline.
With this change, .include "../../devel/readline/buildlink3.mk" with USE_GNU_READLINE=yes should be replaced with .include "../../devel/readline/buildlink3.mk", and .include "../../devel/readline/buildlink3.mk" without USE_GNU_READLINE should be replaced .include "../../mk/readline.buildlink3.mk". USE_GNU_READLINE is removed.
Diffstat (limited to 'devel')
-rw-r--r--devel/readline/builtin.mk34
1 files changed, 2 insertions, 32 deletions
diff --git a/devel/readline/builtin.mk b/devel/readline/builtin.mk
index 81935844662..14ed357152d 100644
--- a/devel/readline/builtin.mk
+++ b/devel/readline/builtin.mk
@@ -1,8 +1,8 @@
-# $NetBSD: builtin.mk,v 1.17 2008/02/29 22:41:13 jlam Exp $
+# $NetBSD: builtin.mk,v 1.18 2013/07/15 01:54:25 ryoon Exp $
BUILTIN_PKG:= readline
-BUILTIN_FIND_LIBS:= edit readline history
+BUILTIN_FIND_LIBS:= readline history
BUILTIN_FIND_FILES_VAR:= H_READLINE _BLTN_H_READLINE
BUILTIN_FIND_FILES.H_READLINE= /usr/include/readline/readline.h \
/usr/include/readline.h
@@ -66,16 +66,6 @@ USE_BUILTIN.readline!= \
. endif
. endfor
. endif
-# XXX
-# XXX By default, assume that the native editline library is good enough
-# XXX to replace GNU readline if it provides the readline-compatibility
-# XXX headers.
-# XXX
-. if !empty(BUILTIN_LIB_FOUND.readline:M[nN][oO]) && \
- !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS]) && \
- empty(_BLTN_H_READLINE:M__nonexistent__)
-USE_BUILTIN.readline= yes
-. endif
#
# Some platforms don't have a readline/editline implementation that can
# replace GNU readline.
@@ -90,15 +80,6 @@ USE_BUILTIN.readline= no
.endif
MAKEVARS+= USE_BUILTIN.readline
-# If USE_GNU_READLINE is defined, then force the use of a GNU readline
-# implementation.
-#
-.if defined(USE_GNU_READLINE)
-. if !empty(IS_BUILTIN.readline:M[nN][oO])
-USE_BUILTIN.readline= no
-. endif
-.endif
-
###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.
@@ -107,18 +88,7 @@ CHECK_BUILTIN.readline?= no
.if !empty(CHECK_BUILTIN.readline:M[nN][oO])
. if !empty(USE_BUILTIN.readline:M[yY][eE][sS])
-. if !empty(BUILTIN_LIB_FOUND.history:M[Nn][Oo]) && \
- !empty(BUILTIN_LIB_FOUND.readline:M[Yy][Ee][Ss])
BUILDLINK_TRANSFORM+= l:history:readline:${BUILTIN_LIBNAME.termcap}
-. endif
-. if !empty(BUILTIN_LIB_FOUND.history:M[nN][oO]) && \
- !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS])
-BUILDLINK_TRANSFORM+= l:history:edit:${BUILTIN_LIBNAME.termcap}
-. endif
-. if !empty(BUILTIN_LIB_FOUND.readline:M[nN][oO]) && \
- !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS])
-BUILDLINK_TRANSFORM+= l:readline:edit:${BUILTIN_LIBNAME.termcap}
-. endif
. endif
.endif # CHECK_BUILTIN.readline