From 5060a9892af701d50943afe5df4501406848349b Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Sep 06 2017 19:39:32 +0000 Subject: vars/build.vars: supply ${CACA_CFLAGS} to toilet. patches/toilet.local.patch: remove obsolete patch. --- diff --git a/patches/toilet.local.patch b/patches/toilet.local.patch index 1e4cb55..a790374 100644 --- a/patches/toilet.local.patch +++ b/patches/toilet.local.patch @@ -1,88 +1,3 @@ -diff -ru toilet.orig/configure toilet/configure ---- toilet.orig/configure 2017-09-03 18:16:41.831887603 +0200 -+++ toilet/configure 2017-09-03 18:22:18.302580756 +0200 -@@ -4412,81 +4412,6 @@ - fi - - --pkg_failed=no --{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CACA" >&5 --$as_echo_n "checking for CACA... " >&6; } -- --if test -n "$CACA_CFLAGS"; then -- pkg_cv_CACA_CFLAGS="$CACA_CFLAGS" -- elif test -n "$PKG_CONFIG"; then -- if test -n "$PKG_CONFIG" && \ -- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"caca >= 0.99.beta18\""; } >&5 -- ($PKG_CONFIG --exists --print-errors "caca >= 0.99.beta18") 2>&5 -- ac_status=$? -- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -- test $ac_status = 0; }; then -- pkg_cv_CACA_CFLAGS=`$PKG_CONFIG --cflags "caca >= 0.99.beta18" 2>/dev/null` -- test "x$?" != "x0" && pkg_failed=yes --else -- pkg_failed=yes --fi -- else -- pkg_failed=untried --fi --if test -n "$CACA_LIBS"; then -- pkg_cv_CACA_LIBS="$CACA_LIBS" -- elif test -n "$PKG_CONFIG"; then -- if test -n "$PKG_CONFIG" && \ -- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"caca >= 0.99.beta18\""; } >&5 -- ($PKG_CONFIG --exists --print-errors "caca >= 0.99.beta18") 2>&5 -- ac_status=$? -- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -- test $ac_status = 0; }; then -- pkg_cv_CACA_LIBS=`$PKG_CONFIG --libs "caca >= 0.99.beta18" 2>/dev/null` -- test "x$?" != "x0" && pkg_failed=yes --else -- pkg_failed=yes --fi -- else -- pkg_failed=untried --fi -- -- -- --if test $pkg_failed = yes; then -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 --$as_echo "no" >&6; } -- --if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then -- _pkg_short_errors_supported=yes --else -- _pkg_short_errors_supported=no --fi -- if test $_pkg_short_errors_supported = yes; then -- CACA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "caca >= 0.99.beta18" 2>&1` -- else -- CACA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "caca >= 0.99.beta18" 2>&1` -- fi -- # Put the nasty error message in config.log where it belongs -- echo "$CACA_PKG_ERRORS" >&5 -- -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 --$as_echo "no" >&6; } -- as_fn_error $? "you need libcaca version 0.99.beta18 or later" "$LINENO" 5 --elif test $pkg_failed = untried; then -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 --$as_echo "no" >&6; } -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 --$as_echo "no" >&6; } -- as_fn_error $? "you need libcaca version 0.99.beta18 or later" "$LINENO" 5 --else -- CACA_CFLAGS=$pkg_cv_CACA_CFLAGS -- CACA_LIBS=$pkg_cv_CACA_LIBS -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --$as_echo "yes" >&6; } -- : --fi -- - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for release date" >&5 - $as_echo_n "checking for release date... " >&6; } - tmp="${stamp%-*}" diff -ru toilet.orig/Makefile.in toilet/Makefile.in --- toilet.orig/Makefile.in 2017-09-03 18:16:42.175886270 +0200 +++ toilet/Makefile.in 2017-09-03 18:29:29.600903132 +0200 diff --git a/vars/build.vars b/vars/build.vars index 5a63699..72a2e95 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -881,7 +881,7 @@ fi; : ${PKG_TMUX_URL:=https://github.com/tmux/tmux/releases/download/${PKG_TMUX_VERSION}/tmux-${PKG_TMUX_VERSION}.tar.gz}; : ${PKG_TOILET_URLS_GIT:=toilet=https://github.com/cacalabs/toilet@master}; : ${PKG_TOILET_SUBDIR:=toilet}; -: ${PKG_TOILET_ENV_VARS_EXTRA:="CACA_LIBS=-L${PREFIX_NATIVE}/lib -lcaca"}; +: ${PKG_TOILET_ENV_VARS_EXTRA:="CACA_CFLAGS=-I${PREFIX_NATIVE}:CACA_LIBS=-L${PREFIX_NATIVE}/lib -lcaca"}; : ${PKG_TOILET_CONFIGURE_ARGS_EXTRA:=--program-prefix=""}; : ${PKG_UTIL_LINUX_SHA256SUM:=21ede7eb6c3a2a9c7b13eeee241e82428be4f6d5030ff488f638817f419af093}; : ${PKG_UTIL_LINUX_VERSION:=2.27};