fs-uae: update to 3.1.66.

This commit is contained in:
Elaine Gibson 2022-04-30 18:11:52 +01:00 committed by Duncan Overbruck
parent 9b08b3475e
commit f923ef7b94
2 changed files with 26 additions and 31 deletions

View File

@ -1,11 +0,0 @@
[Desktop Entry]
Name=FS-UAE
Comment=FS-UAE Amiga Emulator
TryExec=fs-uae
Exec=fs-uae %f
StartupNotify=true
Terminal=false
Type=Application
Icon=fs-uae
Categories=Applications;Emulators;Game

View File

@ -1,36 +1,42 @@
# Template file for 'fs-uae'
pkgname=fs-uae
version=3.0.5
version=3.1.66
revision=1
build_style=gnu-configure
hostmakedepends="automake gettext libtool pkg-config zip"
makedepends="glew-devel libmpeg2-devel SDL2-devel MesaLib-devel
freetype-devel libglib-devel libpng-devel libopenal-devel"
depends="desktop-file-utils hicolor-icon-theme"
hostmakedepends="pkg-config gettext zip"
makedepends="libmpeg2-devel SDL2-devel libglib-devel libpng-devel libopenal-devel"
short_desc="FS-UAE Amiga Emulator"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://fs-uae.net"
distfiles="https://fs-uae.net/stable/${version}/${pkgname}-${version}.tar.gz"
checksum=f26ec42e03cf1a7b53b6ce0d9845aa45bbf472089b5ec046b3eb784ec6859fe3
nocross="./gen/genlinetoscr: cannot execute binary file: Exec format error"
nopie=yes
distfiles="https://fs-uae.net/files/FS-UAE/Stable/${version}/${pkgname}-${version}.tar.xz"
checksum=606e1868b500413d69bd33bb469f8fd08d6c08988801f17b7dd022f3fbe23832
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) ;;
x86_64*|i686*) nopie=yes ;;
*) configure_args+=" --disable-jit" ;;
esac
CFLAGS="-Wno-error -Wno-narrowing -Wno-alloc-size-larget-than"
CXXFLAGS="${CFLAGS}"
if [ "$CROSS_BUILD" ]; then
post_configure() {
make $makejobs \
CC=$CC_FOR_BUILD CFLAGS=$CFLAGS_FOR_BUILD \
CXX=$CXX_FOR_BUILD CXXFLAGS=$CXXFLAGS_FOR_BUILD \
LIBS= GLIB_LIBS= LIBMPEG2_LIBS= OPENAL_LIBS= \
OPENGL_LIBS= PNG_LIBS= SDL2_LIBS= X11_LIBS= ZLIB_LIBS= \
gen/blit.h gen/blitfunc.cpp gen/blitfunc.h gen/blittable.cpp \
gen/compemu.cpp gen/cpudefs.cpp gen/cpuemu_0.cpp \
gen/linetoscr.cpp
pre_configure() {
grep -rlw -- -Werror | xargs -n1 -t -I% sed -i % -e "s;-Werror;-Wno-error;"
autoreconf -fi
cd libmpeg2
autoreconf -fi
}
rm src/readcpu.o gen/cpudefs.o
make $makejobs src/readcpu.o gen/cpudefs.o
touch gen/*
}
fi
post_install() {
vinstall ${FILESDIR}/fs-uae.desktop 644 usr/share/applications
post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl) sed -i -e 's/| RTLD_DEEPBIND//' src/dlopen.cpp ;;
esac
sed -i -e '/^NoDisplay/d' share/applications/fs-uae.desktop
}