| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: readline.buildlink3.mk,v 1.3 2013/07/19 14:35:37 ryoon Exp $ | | 1 | # $NetBSD: readline.buildlink3.mk,v 1.4 2013/08/16 11:31:50 jperkin Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is meant to be included by packages that require | | 3 | # This Makefile fragment is meant to be included by packages that require |
4 | # any readline implementation instead of one particular one. The available | | 4 | # any readline implementation instead of one particular one. The available |
5 | # readline/editline implementations are "editline" and "readline". | | 5 | # readline/editline implementations are "editline" and "readline". |
6 | # | | 6 | # |
7 | # If a package genuinely requires editline or readline, then it should | | 7 | # If a package genuinely requires editline or readline, then it should |
8 | # directly include the appropriate buildlink3.mk instead of this file in | | 8 | # directly include the appropriate buildlink3.mk instead of this file in |
9 | # the package Makefile. | | 9 | # the package Makefile. |
10 | # | | 10 | # |
11 | # === User-settable variables === | | 11 | # === User-settable variables === |
12 | # | | 12 | # |
13 | # READLINE_DEFAULT | | 13 | # READLINE_DEFAULT |
14 | # This value represents the type of readline we wish to use on the | | 14 | # This value represents the type of readline we wish to use on the |
| @@ -38,30 +38,29 @@ CHECK_BUILTIN.editlinereadline:= yes | | | @@ -38,30 +38,29 @@ CHECK_BUILTIN.editlinereadline:= yes |
38 | .include "readline.builtin.mk" | | 38 | .include "readline.builtin.mk" |
39 | CHECK_BUILTIN.editlinereadline:= no | | 39 | CHECK_BUILTIN.editlinereadline:= no |
40 | | | 40 | |
41 | # Set the value of READLINE_DEFAULT depending on the platform and what's | | 41 | # Set the value of READLINE_DEFAULT depending on the platform and what's |
42 | # available in the base system. | | 42 | # available in the base system. |
43 | # | | 43 | # |
44 | .if defined(IS_BUILTIN.editline) && \ | | 44 | .if defined(IS_BUILTIN.editline) && \ |
45 | !empty(IS_BUILTIN.editline:M[Yy][Ee][Ss]) | | 45 | !empty(IS_BUILTIN.editline:M[Yy][Ee][Ss]) |
46 | READLINE_DEFAULT?= editline | | 46 | READLINE_DEFAULT?= editline |
47 | .elif defined(IS_BUILTIN.readline) && \ | | 47 | .elif defined(IS_BUILTIN.readline) && \ |
48 | !empty(IS_BUILTIN.readline:M[Yy][Ee][Ss]) | | 48 | !empty(IS_BUILTIN.readline:M[Yy][Ee][Ss]) |
49 | READLINE_DEFAULT?= readline | | 49 | READLINE_DEFAULT?= readline |
50 | .else | | 50 | .else |
51 | READLINE_DEFAULT?= editline | | 51 | READLINE_DEFAULT?= readline |
52 | .endif | | 52 | .endif |
53 | | | 53 | |
54 | | | | |
55 | _READLINE_ACCEPTED= ${_READLINE_PKGS} # both are provided by pkgsrc. | | 54 | _READLINE_ACCEPTED= ${_READLINE_PKGS} # both are provided by pkgsrc. |
56 | | | 55 | |
57 | _READLINE_TYPE= ${READLINE_DEFAULT} | | 56 | _READLINE_TYPE= ${READLINE_DEFAULT} |
58 | . if !empty(_READLINE_ACCEPTED:M${_READLINE_TYPE}) | | 57 | . if !empty(_READLINE_ACCEPTED:M${_READLINE_TYPE}) |
59 | READLINE_TYPE= ${_READLINE_TYPE} | | 58 | READLINE_TYPE= ${_READLINE_TYPE} |
60 | . else | | 59 | . else |
61 | READLINE_TYPE= none | | 60 | READLINE_TYPE= none |
62 | . endif | | 61 | . endif |
63 | | | 62 | |
64 | BUILD_DEFS+= READLINE_DEFAULT | | 63 | BUILD_DEFS+= READLINE_DEFAULT |
65 | BUILD_DEFS_EFFECTS+= READLINE_TYPE | | 64 | BUILD_DEFS_EFFECTS+= READLINE_TYPE |
66 | | | 65 | |
67 | # _PKG_USE_READLINE is a flag for use by the readline packages' buildlink3.mk | | 66 | # _PKG_USE_READLINE is a flag for use by the readline packages' buildlink3.mk |