residualvm: enable sndio by default

This commit is contained in:
Christian Buschau 2019-01-25 14:57:02 +01:00 committed by maxice8
parent 1a9a01a812
commit cd1a17ece2

View file

@ -1,7 +1,7 @@
# Template file for 'residualvm' # Template file for 'residualvm'
pkgname=residualvm pkgname=residualvm
version=0.3.1 version=0.3.1
revision=1 revision=2
build_style=configure build_style=configure
configure_args="--prefix=/usr --enable-all-engines --enable-release configure_args="--prefix=/usr --enable-all-engines --enable-release
--enable-flac --enable-faad --enable-fluidsynth $(vopt_enable sndio)" --enable-flac --enable-faad --enable-fluidsynth $(vopt_enable sndio)"
@ -17,6 +17,7 @@ distfiles="http://www.residualvm.org/downloads/release/${version}/residualvm-${v
checksum=f50c83bbc55a8121eefc279e83982b6ec590e608e145b7f750006619dd0bf9e9 checksum=f50c83bbc55a8121eefc279e83982b6ec590e608e145b7f750006619dd0bf9e9
build_options="sndio" build_options="sndio"
build_options_default="sndio"
if [ -n "$CROSS_BUILD" ]; then if [ -n "$CROSS_BUILD" ]; then
configure_args+=" --host=${XBPS_CROSS_TRIPLET}" configure_args+=" --host=${XBPS_CROSS_TRIPLET}"
@ -24,7 +25,7 @@ if [ -n "$CROSS_BUILD" ]; then
pre_configure() { pre_configure() {
# - sdl-config wrapper already sets --prefix # - sdl-config wrapper already sets --prefix
# - freetype-config wrapper already sets --prefix # - freetype-config wrapper already sets --prefix
sed -i -e "s;_ranlib=ranlib;_ranlib=${XBPS_CROSS_TRIPLET}-ranlib;" \ vsed -e "s;_ranlib=ranlib;_ranlib=${XBPS_CROSS_TRIPLET}-ranlib;" \
-e "s;_strip=strip;_strip=${XBPS_CROSS_TRIPLET}-strip;" \ -e "s;_strip=strip;_strip=${XBPS_CROSS_TRIPLET}-strip;" \
-e "s;_ar=\"ar cru\";_ar=\"${XBPS_CROSS_TRIPLET}-ar cru\";" \ -e "s;_ar=\"ar cru\";_ar=\"${XBPS_CROSS_TRIPLET}-ar cru\";" \
-e "s;_as=\"as\";_as=\"${XBPS_CROSS_TRIPLET}-as\";" \ -e "s;_as=\"as\";_as=\"${XBPS_CROSS_TRIPLET}-as\";" \
@ -32,7 +33,7 @@ if [ -n "$CROSS_BUILD" ]; then
-e 's;--prefix="$_freetypepath";;' \ -e 's;--prefix="$_freetypepath";;' \
-e "s;^_host_cpu=\"\";_host_cpu=\"${XBPS_TARGET_MACHINE}\";" \ -e "s;^_host_cpu=\"\";_host_cpu=\"${XBPS_TARGET_MACHINE}\";" \
-e 's;^_host_os="";_host_os="linux";' \ -e 's;^_host_os="";_host_os="linux";' \
configure -i configure
} }
fi fi