| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: terminfo.builtin.mk,v 1.2 2010/02/08 22:11:43 roy Exp $ | | 1 | # $NetBSD: terminfo.builtin.mk,v 1.3 2013/11/10 02:54:47 obache Exp $ |
2 | | | 2 | |
3 | BUILTIN_PKG:= terminfo | | 3 | BUILTIN_PKG:= terminfo |
4 | | | 4 | |
5 | BUILTIN_FIND_LIBS:= terminfo curses tinfo | | 5 | BUILTIN_FIND_LIBS:= terminfo curses tinfo |
6 | BUILTIN_FIND_FILES_VAR:= H_TERM | | 6 | BUILTIN_FIND_FILES_VAR:= H_TERM |
7 | BUILTIN_FIND_FILES.H_TERM:= /usr/include/term.h | | 7 | BUILTIN_FIND_FILES.H_TERM:= /usr/include/term.h |
8 | BUILTIN_FIND_GREP.H_TERM:= tigetstr | | 8 | BUILTIN_FIND_GREP.H_TERM:= tigetstr |
9 | | | 9 | |
10 | .include "buildlink3/bsd.builtin.mk" | | 10 | .include "buildlink3/bsd.builtin.mk" |
11 | | | 11 | |
12 | ### | | 12 | ### |
13 | ### Determine if there is a built-in implementation of the package and | | 13 | ### Determine if there is a built-in implementation of the package and |
14 | ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). | | 14 | ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). |
| @@ -67,18 +67,22 @@ BUILTIN_LIBNAME.terminfo= c | | | @@ -67,18 +67,22 @@ BUILTIN_LIBNAME.terminfo= c |
67 | CHECK_BUILTIN.terminfo?= no | | 67 | CHECK_BUILTIN.terminfo?= no |
68 | .if !empty(CHECK_BUILTIN.terminfo:M[nN][oO]) | | 68 | .if !empty(CHECK_BUILTIN.terminfo:M[nN][oO]) |
69 | | | 69 | |
70 | . if !empty(USE_BUILTIN.terminfo:M[yY][eE][sS]) | | 70 | . if !empty(USE_BUILTIN.terminfo:M[yY][eE][sS]) |
71 | BUILDLINK_LIBNAME.terminfo= ${BUILTIN_LIBNAME.terminfo} | | 71 | BUILDLINK_LIBNAME.terminfo= ${BUILTIN_LIBNAME.terminfo} |
72 | . endif | | 72 | . endif |
73 | | | 73 | |
74 | # If the package wants both "terminfo" and "curses", then we must not | | 74 | # If the package wants both "terminfo" and "curses", then we must not |
75 | # remove the -l options for the curses libraries; otherwise, we should | | 75 | # remove the -l options for the curses libraries; otherwise, we should |
76 | # remove them as GNU configure scripts commonly check for one or both | | 76 | # remove them as GNU configure scripts commonly check for one or both |
77 | # of those library options. | | 77 | # of those library options. |
78 | # | | 78 | # |
79 | . if empty(BUILDLINK_TREE:Mcurses) && empty(BUILDLINK_TREE:Mncurses) | | 79 | . if empty(BUILDLINK_TREE:Mcurses) && empty(BUILDLINK_TREE:Mncurses) |
| | | 80 | . if empty(BUILDLINK_LIBNAME.terminfo:Mcurses) |
80 | BUILDLINK_TRANSFORM+= rm:-lcurses | | 81 | BUILDLINK_TRANSFORM+= rm:-lcurses |
| | | 82 | . endif |
| | | 83 | . if empty(BUILDLINK_LIBNAME.terminfo:Mncurses) |
81 | BUILDLINK_TRANSFORM+= rm:-lncurses | | 84 | BUILDLINK_TRANSFORM+= rm:-lncurses |
| | | 85 | . endif |
82 | . endif | | 86 | . endif |
83 | | | 87 | |
84 | .endif # CHECK_BUILTIN.terminfo | | 88 | .endif # CHECK_BUILTIN.terminfo |