void-packages/srcpkgs/openmsx/template
2020-09-27 23:56:45 -03:00

31 lines
1.3 KiB
Bash

# Template file for 'openmsx'
pkgname=openmsx
version=0.15.0
revision=3
hostmakedepends="pkg-config python"
makedepends="SDL-devel glew-devel libao-devel libtheora-devel libvorbis-devel
libpng-devel libxml2-devel SDL_ttf-devel tcl-devel"
short_desc="MSX emulator that aims for perfection"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://openmsx.org"
distfiles="https://github.com/openMSX/openMSX/releases/download/RELEASE_${version//\./_}/openmsx-${version}.tar.gz"
checksum=93f209d8fed2e04e62526469bb6bb431b82ea4d07ecdc45dab2b8cc4ca21d62a
nocross="can't use CXX prefixed with triplet"
CXXFLAGS="-Wno-narrowing -O3"
do_build() {
vsed -e 's@\(SYMLINK_FOR_BINARY:=\)true@\1false@' -i build/custom.mk
vsed -e 's@\(INSTALL_BASE:=\)/opt/openMSX@\1/usr/share/openmsx@' -i 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
echo "CXXFLAGS += ${CXXFLAGS}" >> build/flavour-void.mk
local ldflags=$(echo $LDFLAGS|sed 's/-Wl,//g')
echo "LDFLAGS += ${ldflags}" >> build/flavour-void.mk
make ${makejobs} OPENMSX_FLAVOUR=void
}
do_install() {
make DESTDIR=${DESTDIR} install OPENMSX_FLAVOUR=void
}