48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
# Template file for 'gzdoom'
|
|
pkgname=gzdoom
|
|
version=4.11.3
|
|
revision=2
|
|
archs="x86_64* aarch64*"
|
|
build_style=cmake
|
|
configure_args="-DINSTALL_PK3_PATH=share/gzdoom -DDYN_GTK=OFF -DDYN_OPENAL=OFF"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL2-devel gtk+3-devel libgomp-devel ZMusic-devel libopenal-devel libvpx-devel libwebp-devel"
|
|
short_desc="Advanced Doom source port with OpenGL support"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.zdoom.org"
|
|
# WARNING: watch out for new submodules
|
|
distfiles="https://github.com/ZDoom/gzdoom/archive/g${version}.tar.gz
|
|
https://github.com/ZDoom/gzdoom/releases/download/g${version}/gzdoom_${version}_amd64.deb"
|
|
checksum="5943dba50da20ff94f1fcc415132672d42a15917c571b1c2b7ceefe14935f5d5
|
|
4c544d243dc15fc22000a3b6eabd83fd70f87ea63205a14ff04254c092f74642"
|
|
skip_extraction="${pkgname}_${version}_amd64.deb"
|
|
nocross=yes
|
|
|
|
CXXFLAGS=-std=gnu++11
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
CFLAGS="-D_7ZIP_AFFINITY_DISABLE"
|
|
makedepends+=" musl-fts-devel libexecinfo-devel"
|
|
fi
|
|
|
|
post_extract() {
|
|
vsrcextract --strip-components=4 \
|
|
${pkgname}_${version}_amd64.deb \
|
|
./usr/share/{pixmaps/gzdoom.png,applications/gzdoom.desktop}
|
|
: >tools/updaterevision/UpdateRevision.cmake
|
|
sed "
|
|
s/@Tag@/${version}/;
|
|
s/@Hash@/v${version}/;
|
|
s/@Timestamp@/<unknown>/;
|
|
" tools/updaterevision/gitinfo.h.in >src/gitinfo.h
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir usr/share/licenses
|
|
mv ${PKGDESTDIR}/usr/share/{doc/gzdoom/licenses,licenses/${pkgname}}
|
|
vinstall gzdoom.desktop 644 usr/share/applications
|
|
vinstall gzdoom.png 644 usr/share/pixmaps
|
|
vinstall soundfont/gzdoom.sf2 644 usr/share/gzdoom/soundfonts
|
|
}
|