From 86dc9cf63a18966f7f59a8dabc121234ceb1e4cf Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 27 May 2018 21:57:21 +0200 Subject: [PATCH] stella: fix musl --- srcpkgs/stella/template | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srcpkgs/stella/template b/srcpkgs/stella/template index 910d344e999..78c803a3649 100644 --- a/srcpkgs/stella/template +++ b/srcpkgs/stella/template @@ -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 }