void-packages/srcpkgs/mog/template

38 lines
1.1 KiB
Bash
Raw Normal View History

# Template file for 'mog'
pkgname=mog
version=0.63
revision=1
_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"
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"
noarch=yes
pkg_install() {
vmove usr/share/mog/graphics
vmove usr/share/mog/sound
vmove usr/share/mog/rooms
}
}