void-packages/srcpkgs/fs-uae/template
Nathan Owens 71512d394f fs-uae: update to 3.0.5
Closes: #26582 [via git-merge-pr]
2020-12-17 00:22:01 -05:00

36 lines
1.1 KiB
Bash

# Template file for 'fs-uae'
pkgname=fs-uae
version=3.0.5
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"
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
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) ;;
*) configure_args+=" --disable-jit" ;;
esac
CFLAGS="-Wno-error -Wno-narrowing -Wno-alloc-size-larget-than"
CXXFLAGS="${CFLAGS}"
pre_configure() {
grep -rlw -- -Werror | xargs -n1 -t -I% sed -i % -e "s;-Werror;-Wno-error;"
autoreconf -fi
cd libmpeg2
autoreconf -fi
}
post_install() {
vinstall ${FILESDIR}/fs-uae.desktop 644 usr/share/applications
}