void-packages/srcpkgs/prboom-plus/template
Jürgen Buchmüller 7921942b8e prboom-plus: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:39 +02:00

27 lines
987 B
Bash

# Template file for 'prboom-plus'
pkgname=prboom-plus
version=2.5.1.4
revision=3
build_style=gnu-configure
configure_args="--disable-cpu-opt --disable-dogs"
hostmakedepends="pcre-devel fluidsynth-devel libmad-devel SDL_mixer-devel SDL_net-devel
SDL_image-devel libpng-devel portmidi-devel libvorbis-devel glu-devel"
makedepends="${hostmakedepends}"
short_desc="Doom source port developed from the original PrBoom"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://prboom-plus.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=e0e2241d174839b107f1a42b191aa9895dc6749e477cbc850ad520fba2353b94
CFLAGS="-fcommon"
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
}
pre_build() {
cd data
make CC=cc CFLAGS="-Os" LDFLAGS= rdatawad
}