void-packages/srcpkgs/mednafen/template
2019-04-26 12:29:32 +02:00

25 lines
844 B
Bash

# Template file for 'mednafen'
pkgname=mednafen
version=1.22.2
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=fad433ac694696d69ea38f6f4be1d0a6c1aa3609ec7f46ce75412be2f2df2f95
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
}