scummvm: unbreak cross compilation for arm
This commit is contained in:
parent
74a41189cf
commit
21d13f4b9c
1 changed files with 8 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'scummvm'
|
||||
pkgname=scummvm
|
||||
version=1.9.0
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=configure
|
||||
configure_args="--prefix=/usr --enable-plugins --enable-all-engines"
|
||||
hostmakedepends="pkg-config nasm"
|
||||
|
@ -18,12 +18,14 @@ checksum=2417edcb1ad51ca05a817c58aeee610bc6db5442984e8cf28e8a5fd914e8ae05
|
|||
if [ "$CROSS_BUILD" ]; then
|
||||
configure_args+=" --host=${XBPS_CROSS_TRIPLET} --disable-nasm"
|
||||
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/SDL"
|
||||
fi
|
||||
|
||||
# Cross for arm* is broken when trying to assemble engines/scumm/smush/codec47ARM.s
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
arm*) broken="engines/scumm/smush/codec47ARM.s"
|
||||
esac
|
||||
pre_configure() {
|
||||
sed -i -e "s|_ranlib=ranlib|_ranlib=${XBPS_CROSS_TRIPLET}-ranlib|" \
|
||||
-e "s|_strip=strip|_strip=${XBPS_CROSS_TRIPLET}-strip|" \
|
||||
-e "s|_ar=\"ar cru\"|_ar=\"${XBPS_CROSS_TRIPLET}-ar cru\"|" \
|
||||
-e "s|_as=\"as\"|_as=\"${XBPS_CROSS_TRIPLET}-as\"|" configure
|
||||
}
|
||||
fi
|
||||
|
||||
do_install() {
|
||||
vbin scummvm
|
||||
|
|
Loading…
Reference in a new issue