summaryrefslogtreecommitdiff
path: root/user/dosbox/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/dosbox/APKBUILD')
-rw-r--r--user/dosbox/APKBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/user/dosbox/APKBUILD b/user/dosbox/APKBUILD
index e8674b531..f3a83f46e 100644
--- a/user/dosbox/APKBUILD
+++ b/user/dosbox/APKBUILD
@@ -9,7 +9,8 @@ arch="all !s390x"
options="!check" # dosbox does not ship tests
license="GPL-2.0-only"
depends=""
-makedepends="ncurses-dev zlib-dev libxkbfile-dev libpng-dev libpcap-dev fluidsynth-dev sdl2-dev alsa-lib-dev"
+makedepends="ncurses-dev zlib-dev libxkbfile-dev libpng-dev libpcap-dev
+ fluidsynth-dev sdl2-dev alsa-lib-dev autoconf automake libtool"
source="https://github.com/joncampbell123/dosbox-x/archive/dosbox-x-wip-20180513-1316.tar.gz
porttalk-fix.patch
asmfix.patch
@@ -20,7 +21,12 @@ source="https://github.com/joncampbell123/dosbox-x/archive/dosbox-x-wip-20180513
builddir="$srcdir/dosbox-x-dosbox-x-wip-20180513-1316"
build() {
- cd "$builddir"
+ _extra_conf=""
+
+ case $CTARGET_ARCH in
+ pmmx) _extra_conf="--disable-dynamic-x86";;
+ esac
+
./autogen.sh
./configure \
--build=$CBUILD \
@@ -28,12 +34,12 @@ build() {
--prefix=/usr \
--enable-debug \
--enable-core-inline \
- --enable-sdl2
+ --enable-sdl2 \
+ $_extra_conf
make
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}