From bdff8561325dbf7027e6690552f4e6f97f7670c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 30 Aug 2015 04:17:42 +0200 Subject: [PATCH] firefox: fire cross arm*-musl --- srcpkgs/firefox/template | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 64583d593f6..406a373de83 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -1,7 +1,7 @@ # Template build file for 'firefox'. pkgname=firefox version=40.0.3 -revision=1 +revision=2 wrksrc="mozilla-release" short_desc="Lightweight gecko-based web browser" maintainer="Juan RP " @@ -21,9 +21,16 @@ makedepends="nss-devel libjpeg-turbo-devel libpng-devel libXt-devel libXdamage-devel" depends="desktop-file-utils hicolor-icon-theme" -case "$XBPS_TARGET_MACHINE" in - armv[67]l-musl) broken="http://build.voidlinux.eu/builders/armv6l-musl_builder/builds/3005/steps/shell_3/logs/stdio";; -esac +if [ "$CROSS_BUILD" ]; then + # Make config/system_wrappers/alsa/alsalib.h and pulse/pulse.h find + # the required includes. Set system nspr and nss include paths. + CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/alsa \ + -I${XBPS_CROSS_BASE}/usr/include/pulse \ + -I${XBPS_CROSS_BASE}/usr/include/nspr \ + -I${XBPS_CROSS_BASE}/usr/include/nss" + CXXFLAGS="${CFLAGS}" + LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib" +fi pre_configure() { case "$XBPS_TARGET_MACHINE" in