void-packages/srcpkgs/openmsx/template
2015-09-19 21:05:05 +02:00

27 lines
1,006 B
Bash

# Template file for 'openmsx'
pkgname=openmsx
version=0.12.0
revision=2
short_desc="The MSX emulator that aims for perfection"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://openmsx.sourceforge.net"
distfiles="https://github.com/openMSX/openMSX/releases/download/RELEASE_${version//\./_}/openmsx-${version}.tar.gz"
checksum=1d96a466badd625e7b6860a65afb10a7b5283a15721faa4186546693fec06a92
hostmakedepends="pkg-config python"
makedepends="SDL-devel glew-devel libao-devel libtheora-devel libvorbis-devel
libpng-devel libxml2-devel SDL_ttf-devel tcl-devel"
do_build() {
sed -i 's@\(SYMLINK_FOR_BINARY:=\)true@\1false@' build/custom.mk
sed -i 's@\(INSTALL_BASE:=\)/opt/openMSX@\1/usr/share/openmsx@' build/custom.mk
echo 'INSTALL_DOC_DIR:=/usr/share/doc/openmsx' >> build/custom.mk
echo 'INSTALL_SHARE_DIR:=/usr/share/openmsx' >> build/custom.mk
echo 'INSTALL_BINARY_DIR:=/usr/bin' >> build/custom.mk
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install
}