New package: gzdoom-3.2.5

Closes: #10505 [via git-merge-pr]
This commit is contained in:
Michael Straube 2018-01-05 18:54:14 +01:00 committed by Jürgen Buchmüller
parent b2427780ff
commit 412779ab6d
1 changed files with 34 additions and 0 deletions

34
srcpkgs/gzdoom/template Normal file
View File

@ -0,0 +1,34 @@
# Template file for 'gzdoom'
pkgname=gzdoom
version=3.2.5
revision=1
wrksrc=${pkgname}-g${version}
build_style=cmake
configure_args="-DINSTALL_PK3_PATH=share/gzdoom"
hostmakedepends="pkg-config"
makedepends="SDL2-devel gtk+3-devel fluidsynth-devel libgme-devel libgomp-devel ppl-devel"
depends="libfluidsynth gtk+3"
short_desc="Advanced Doom source port with OpenGL support"
maintainer="Michael Straube <straubem@gmx.de>"
license="GPL-3"
homepage="http://www.zdoom.org"
distfiles="https://github.com/coelckers/${pkgname}/archive/g${version}.tar.gz"
checksum=e9cf0aa5b7ee0b165532dee55e4965f6aabf1acadb79f7372f8e362540206748
nocross=yes
case "$XBPS_MACHINE" in
*-musl)
configure_args+=" -DCMAKE_EXE_LINKER_FLAGS=-lfts"
makedepends+=" musl-fts-devel"
;;
esac
post_extract() {
sed -i "s|<unknown version>|${version}|" tools/updaterevision/updaterevision.c
sed -i 's|#define SHARE_DIR.*|#define SHARE_DIR "/usr/share/gzdoom/"|' src/posix/i_system.h
}
post_install() {
vmkdir usr/share/licenses
mv ${PKGDESTDIR}/usr/share/{doc/gzdoom/licenses,licenses/${pkgname}}
}