void-packages/srcpkgs/openmsx/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

27 lines
959 B
Bash

# Template file for 'openmsx'
pkgname=openmsx
version=0.11.0
revision=1
short_desc="The MSX emulator that aims for perfection"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://openmsx.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=93611a12b3860f31ef081d625e9e7f68a48c81c564d629801def868a87b75a77
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
}