libcurses is sometimes split off from libtinfo.
This commit is contained in:
parent
5048acc9f9
commit
4e160b3b33
@ -150,13 +150,15 @@ cc() {
|
|||||||
|
|
||||||
### DEPENDENCIES
|
### DEPENDENCIES
|
||||||
use() {
|
use() {
|
||||||
local option=$1 requisite=$2 lib=$3
|
local option=$1 requisite=$2 lib=$3; shift 3
|
||||||
local enabled=${!option}
|
local enabled=${!option}
|
||||||
|
|
||||||
if (( enabled )); then
|
if (( enabled )); then
|
||||||
if haslib "$lib"; then
|
if haslib "$lib"; then
|
||||||
echo >&2 "INFO: Enabled $option (lib$lib)."
|
echo >&2 "INFO: Enabled $option (lib$lib)."
|
||||||
|
for lib in "$lib" "$@"; do
|
||||||
ldflags+=( -l"$lib" )
|
ldflags+=( -l"$lib" )
|
||||||
|
done
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
elif [[ $requisite == required ]]; then
|
elif [[ $requisite == required ]]; then
|
||||||
@ -184,7 +186,7 @@ use_mpw_sodium() {
|
|||||||
}
|
}
|
||||||
use_mpw_color() {
|
use_mpw_color() {
|
||||||
local requisite=$1
|
local requisite=$1
|
||||||
use mpw_color "$requisite" curses && cflags+=( -D"MPW_COLOR=1" ) ||:
|
use mpw_color "$requisite" curses tinfo && cflags+=( -D"MPW_COLOR=1" ) ||:
|
||||||
}
|
}
|
||||||
use_mpw_json() {
|
use_mpw_json() {
|
||||||
local requisite=$1
|
local requisite=$1
|
||||||
|
Loading…
Reference in New Issue
Block a user