void-packages/srcpkgs/mog/template
2019-03-01 12:04:45 -03:00

37 lines
1.1 KiB
Bash

# Template file for 'mog'
pkgname=mog
version=0.63
revision=2
_build=1548
wrksrc=${pkgname}-${version}.${_build}
build_style=gnu-makefile
makedepends="SDL_image-devel SDL_mixer-devel SDL_sound-devel"
depends="mog-data>=${version}_${revision}"
short_desc="Remake of classic MSX game The Maze of Galious"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.0-or-later"
homepage="http://www.braingames.getput.com/mog/"
distfiles="http://urchlay.naptime.net/~urchlay/src/mog.src_${version}-${_build}.tgz"
checksum=707bbc1b167a55989916f803dbe55c288652fb54df6194be029c41be99e9ec3a
CFLAGS="-g3 -O3 -Wno-write-strings -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
pre_build() {
local libs="-L${XBPS_CROSS_BASE}/usr/lib"
libs+=" -lstdc++ -lm"
libs+=" -lSDL_image"
libs+=" -lSDL_mixer"
libs+=" -lSDL_sound"
libs+=" -lSDL -lpthread"
sed -i build/linux/Makefile -e "s;@LIBS@;${libs};"
}
mog-data_package() {
short_desc+=" - data files"
archs=noarch
pkg_install() {
vmove usr/share/mog/graphics
vmove usr/share/mog/sound
vmove usr/share/mog/rooms
}
}