void-packages/srcpkgs/mednafen/template

26 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
}