27 lines
908 B
Bash
27 lines
908 B
Bash
# Template file for 'mog'
|
|
pkgname=mog
|
|
version=0.63
|
|
revision=3
|
|
_build=1548
|
|
wrksrc=${pkgname}-${version}.${_build}
|
|
build_style=gnu-makefile
|
|
makedepends="SDL_image-devel SDL_mixer-devel SDL_sound-devel"
|
|
short_desc="Remake of classic MSX game The Maze of Galious"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://mog.jorito.net/"
|
|
distfiles="https://braingames.jorito.net/mog/downloads/mog.src_${version}-${_build}.tgz"
|
|
checksum=3caf30d86f5b010b9266ef860c8c8ce0be23f37dee93dd037e7927d4237475eb
|
|
replaces="mog-data>=0"
|
|
|
|
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"
|
|
vsed -i build/linux/Makefile -e "s;@LIBS@;${libs};" -e s:/share/:/libexec/:
|
|
}
|