25 lines
844 B
Bash
25 lines
844 B
Bash
# Template file for 'mednafen'
|
|
pkgname=mednafen
|
|
version=1.22.1
|
|
revision=1
|
|
wrksrc="$pkgname"
|
|
build_style=gnu-configure
|
|
configure_args="--with-libcdio --with-libsndfile --enable-alsa"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libcdio-devel libsndfile-devel glu-devel SDL2-devel zlib-devel"
|
|
short_desc="Portable, argument(command-line)-driven multi-system emulator"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://mednafen.github.io/"
|
|
distfiles="https://mednafen.github.io/releases/files/mednafen-${version}.tar.xz"
|
|
checksum=f5b502e9f2f615c8b69fa1e151da20ab387377c72748cd8e19deb75a432ecfd2
|
|
|
|
CFLAGS="-D_FILE_OFFSET_BITS=64"
|
|
CXXFLAGS="$CFLAGS"
|
|
configure_args+=" ac_cv_sizeof_off_t=8"
|
|
nopie=yes
|
|
|
|
pre_build() {
|
|
# XXX not sure what's going on with those asserts.
|
|
sed -i '/assert/d' src/hash/sha{1,256}.cpp
|
|
}
|