void-packages/srcpkgs/fceux/template

27 lines
900 B
Bash

# Template file for 'fceux'
pkgname=fceux
version=2.2.3
revision=4
build_style=scons
make_build_args="SYSTEM_LUA=1 RELEASE=1 GTK=0 GTK3=1"
hostmakedepends="pkg-config"
makedepends="zlib-devel lua51-devel SDL-devel gtk+3-devel gd-devel glu-devel"
short_desc="All in one NES/Famicom Emulator"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="GPL-2.0-or-later"
homepage="http://www.fceux.com/"
distfiles="${SOURCEFORGE_SITE}/fceultra/Source%20Code/${version}%20src/${pkgname}-${version}.src.tar.gz"
checksum=4be6dda9a347f941809a3c4a90d21815b502384adfdd596adaa7b2daf088823e
export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/usr/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_LIBDIR:$XBPS_CROSS_BASE/usr/share/pkgconfig"
pre_build() {
CPPFLAGS+=" $($PKG_CONFIG --cflags lua)"
}
do_install() {
CPPFLAGS+=" $($PKG_CONFIG --cflags lua)"
scons --prefix=${DESTDIR}/usr $make_build_args install
}