chafa: fix cross

This commit is contained in:
maxice8 2019-01-25 19:15:42 -02:00 committed by maxice8
parent 8cc007dc8e
commit ff9178a96d
1 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,12 @@ license="LGPL-3.0-or-later"
homepage="https://hpjansson.org/chafa/"
distfiles="https://hpjansson.org/chafa/releases/chafa-${version}.tar.xz"
checksum=49d491a566a22daf56c51c043259f1373a1b1125d5c1c1fe321f7c25ca178e01
nocross="configure: error: cannot run test program while cross compiling"
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) ;;
*) configure_args+=" ax_cv_gcc_check_x86_cpu_init=no
ax_cv_gcc_check_x86_cpu_supports=no" ;;
esac
chafa-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"