void-packages/srcpkgs/prboom-plus/template

26 lines
956 B
Bash
Raw Normal View History

2015-08-16 12:04:43 +02:00
# Template file for 'prboom-plus'
pkgname=prboom-plus
2016-01-11 09:37:47 +01:00
version=2.5.1.4
2015-08-16 12:04:43 +02:00
revision=1
build_style=gnu-configure
configure_args="--disable-cpu-opt --disable-dogs"
2016-01-11 09:49:01 +01:00
hostmakedepends="pcre-devel fluidsynth-devel libmad-devel SDL_mixer-devel SDL_net-devel
2016-01-11 09:37:47 +01:00
SDL_image-devel libpng-devel portmidi-devel libvorbis-devel glu-devel"
2016-01-11 09:49:01 +01:00
makedepends="${hostmakedepends}"
2015-08-16 12:04:43 +02:00
short_desc="Doom source port developed from the original PrBoom"
maintainer='Juan RP <xtraeme@voidlinux.eu>'
2015-08-16 12:04:43 +02:00
homepage="http://prboom-plus.sourceforge.net/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
2016-01-11 09:37:47 +01:00
checksum=e0e2241d174839b107f1a42b191aa9895dc6749e477cbc850ad520fba2353b94
2015-08-16 12:04:43 +02:00
pre_configure() {
sed -i 's|^gamesdir = $(prefix)/games|gamesdir = ${bindir}|g' src/Makefile.in
sed -i 's|@PACKAGE@-@VERSION@|prboom-plus|g' Makefile.in
sed -i 's|@PACKAGE@-@VERSION@|prboom-plus|g' doc/Makefile.in
}
2016-01-11 09:49:01 +01:00
pre_build() {
cd data
make CC=cc CFLAGS="-Os" LDFLAGS= rdatawad
}