icecat: fix cross

This commit is contained in:
Jürgen Buchmüller 2018-01-02 18:27:32 +01:00
parent 8f5d5eab0e
commit 21ca3aac33

View file

@ -9,13 +9,12 @@ license="MPL-1.1, GPL-2, LGPL-2.1"
distfiles="${GNU_SITE}/${pkgname}/${version}/${pkgname}-${version}-gnu1.tar.bz2"
checksum=699ab2b41d4428ef5e360f3f33d98bc52723315cedac20bb03619846ca895302
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
lib32disabled=yes
hostmakedepends="autoconf213 unzip zip pkg-config perl python yasm rust cargo"
makedepends="
nss-devel gtk+-devel sqlite-devel libevent-devel libnotify-devel
libvpx-devel hunspell-devel libXt-devel
libatomic-devel nss-devel gtk+-devel sqlite-devel libevent-devel
libnotify-devel libvpx-devel hunspell-devel libXt-devel
$(vopt_if alsa alsa-lib-devel) $(vopt_if dbus dbus-glib-devel)
$(vopt_if gtk3 gtk+3-devel) $(vopt_if pulseaudio pulseaudio-devel)
$(vopt_if startup_notification startup-notification-devel)
@ -54,6 +53,18 @@ do_build() {
;;
esac
if [ "$CROSS_BUILD" ]; then
export HOST_CFLAGS="${XBPS_CFLAGS}"
export HOST_CXXFLAGS="${XBPS_CXXFLAGS}"
export ac_cv_sqlite_secure_delete=yes \
ac_cv_sqlite_threadsafe=yes \
ac_cv_sqlite_enable_fts3=yes \
ac_cv_sqlite_dbstat_vtab=yes \
ac_cv_sqlite_enable_unlock_notify=yes \
ac_cv_prog_hostcxx_works=1
echo "ac_add_options --target=$XBPS_CROSS_TRIPLET" >>.mozconfig
fi
# echo "ac_cv_sqlite_threadsafe=yes" >> .mozconfig
# echo "ac_cv_sqlite_enable_fts3=yes" >> .mozconfig
# echo "ac_cv_sqlite_enable_unlock_notify=yes" >> .mozconfig