void-packages/srcpkgs/mednafen/template
John 24de253100
mednafen: update to 1.21.3.
Closes #14339.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-18 09:38:25 +02:00

25 lines
843 B
Bash

# Template file for 'mednafen'
pkgname=mednafen
version=1.21.3
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.eu>"
license="GPL-2.0-or-later"
homepage="https://mednafen.github.io/"
distfiles="https://mednafen.github.io/releases/files/mednafen-${version}.tar.xz"
checksum=2e761e8834b098b7f1ab35dccaa6d2be715ee9106cf40af4919f6ca4b99ee3c6
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
}