stella: fix musl

This commit is contained in:
Enno Boland 2018-05-27 21:57:21 +02:00
parent 9b15e04d58
commit 86dc9cf63a
No known key found for this signature in database
GPG key ID: D09964719BDE9971

View file

@ -11,6 +11,16 @@ homepage="https://stella-emu.github.io/"
distfiles="https://github.com/stella-emu/stella/releases/download/${version}/stella-${version}-src.tar.xz"
checksum=77b210d51af7e4be88c14014d507e48367bcdff6b8ba513793f035f3e30a21bd
post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -i 's/::PAGE_SIZE/::_PAGE_SIZE/g' $(grep -r '::PAGE_SIZE' -l)
sed -i 's/PAGE_SIZE/_PAGE_SIZE/g' src/emucore/MT24LC256.[ch]xx \
src/emucore/System.hxx
;;
esac
}
do_configure() {
./configure --prefix=/usr
}