openmsx: use our own cflags/ldflags

This commit is contained in:
q66 2020-01-02 01:04:30 +01:00
parent 37964d5692
commit 17741a1a79
1 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'openmsx' # Template file for 'openmsx'
pkgname=openmsx pkgname=openmsx
version=0.15.0 version=0.15.0
revision=1 revision=2
hostmakedepends="pkg-config python" hostmakedepends="pkg-config python"
makedepends="SDL-devel glew-devel libao-devel libtheora-devel libvorbis-devel makedepends="SDL-devel glew-devel libao-devel libtheora-devel libvorbis-devel
libpng-devel libxml2-devel SDL_ttf-devel tcl-devel" libpng-devel libxml2-devel SDL_ttf-devel tcl-devel"
@ -12,6 +12,7 @@ homepage="https://openmsx.org"
distfiles="https://github.com/openMSX/openMSX/releases/download/RELEASE_${version//\./_}/openmsx-${version}.tar.gz" distfiles="https://github.com/openMSX/openMSX/releases/download/RELEASE_${version//\./_}/openmsx-${version}.tar.gz"
checksum=93f209d8fed2e04e62526469bb6bb431b82ea4d07ecdc45dab2b8cc4ca21d62a checksum=93f209d8fed2e04e62526469bb6bb431b82ea4d07ecdc45dab2b8cc4ca21d62a
nocross="can't use CXX prefixed with triplet" nocross="can't use CXX prefixed with triplet"
CXXFLAGS="-Wno-narrowing -O3"
do_build() { do_build() {
vsed -e 's@\(SYMLINK_FOR_BINARY:=\)true@\1false@' -i build/custom.mk vsed -e 's@\(SYMLINK_FOR_BINARY:=\)true@\1false@' -i build/custom.mk
@ -19,9 +20,12 @@ do_build() {
echo 'INSTALL_DOC_DIR:=/usr/share/doc/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_SHARE_DIR:=/usr/share/openmsx' >> build/custom.mk
echo 'INSTALL_BINARY_DIR:=/usr/bin' >> build/custom.mk echo 'INSTALL_BINARY_DIR:=/usr/bin' >> build/custom.mk
make ${makejobs} 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() { do_install() {
make DESTDIR=${DESTDIR} install make DESTDIR=${DESTDIR} install OPENMSX_FLAVOUR=void
} }