diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-07-19 14:35:37 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-07-19 14:35:37 +0000 |
commit | 2f9b02a56be17ee61e56c728b614b4008c5ccc2e (patch) | |
tree | 4f378b534c1b499d9197c3f9b6a4295e098a8e33 /mk/readline.builtin.mk | |
parent | 03df534116b9c9cbcc6a5a976bd63b24a2a28895 (diff) | |
download | pkgsrc-2f9b02a56be17ee61e56c728b614b4008c5ccc2e.tar.gz |
Fix builtin detection conditionals.
* Correct detection of following cases.
non-editline/readline, editline/non-readline, and editline/readline.
* If builtin editline has header files in include/editline, create
include/readline/* symlinks.
* Fix PR pkg/48062 with above fixes. Confirmed on Ubuntu Linux/amd64 13.04.
Diffstat (limited to 'mk/readline.builtin.mk')
-rw-r--r-- | mk/readline.builtin.mk | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/mk/readline.builtin.mk b/mk/readline.builtin.mk index 226eb80e70f..9f43e5cfe02 100644 --- a/mk/readline.builtin.mk +++ b/mk/readline.builtin.mk @@ -1,31 +1,33 @@ -# $NetBSD: readline.builtin.mk,v 1.2 2013/07/18 14:59:04 ryoon Exp $ +# $NetBSD: readline.builtin.mk,v 1.3 2013/07/19 14:35:37 ryoon Exp $ # BUILTIN_PKG:= editlinereadline BUILTIN_FIND_LIBS:= edit readline history -BUILTIN_FIND_FILES_VAR:= H_READLINE _BLTN_H_READLINE +BUILTIN_FIND_FILES_VAR:= H_EDITLINE H_READLINE BUILTIN_FIND_FILES.H_READLINE= /usr/include/readline/readline.h \ /usr/include/readline.h -BUILTIN_FIND_FILES._BLTN_H_READLINE= \ - /usr/include/readline/readline.h \ - /usr/include/readline.h +BUILTIN_FIND_FILES.H_EDITLINE= /usr/include/editline/readline.h \ + /usr/include/readline/readline.h +BUILTIN_FIND_GREP.H_EDITLINE= NetBSD BUILTIN_FIND_GREP.H_READLINE= \#define[ ]*RL_VERSION_MAJOR .include "../../mk/buildlink3/bsd.builtin.mk" .if !defined(IS_BUILTIN.editlinereadline) IS_BUILTIN.editlinereadline= no -. if empty(H_READLINE:M__nonexistent__) && \ - empty(H_READLINE:M${LOCALBASE}/*) && \ - !empty(BUILTIN_LIB_FOUND.readline:M[yY][eE][sS]) -IS_BUILTIN.readline= yes -IS_BUILTIN.editlinereadline= yes -. else if empty(_BLTN_H_READLINE:M__nonexistent__) && \ - !empty(BUILTIN_LIB_FOUND.readline:M[nN][oO]) && \ - !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS]) +. if empty(H_EDITLINE:M__nonexistent__) && \ + !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS]) IS_BUILTIN.editline= yes IS_BUILTIN.editlinereadline= yes +. elif empty(H_READLINE:M__nonexistent__) && \ + !empty(BUILTIN_LIB_FOUND.readline:M[yY][eE][sS]) +IS_BUILTIN.readline= yes +IS_BUILTIN.editlinereadline= yes +. else +IS_BUILTIN.editline= no +IS_BUILTIN.readline= no +IS_BUILTIN.editlinereadline= no . endif .endif |