# Template file for 'dhewm3'
pkgname=dhewm3
version=1.5.4
revision=1
build_wrksrc="neo"
build_style=cmake
makedepends="SDL2-devel libcurl-devel libjpeg-turbo-devel libopenal-devel"
short_desc="Doom 3 GPL source port"
maintainer="John Rowley <enterthevoid@codesector.co>"
license="GPL-3.0-or-later"
homepage="https://dhewm3.org/"
distfiles="https://github.com/dhewm/dhewm3/archive/refs/tags/${version}.tar.gz"
checksum=d460d55f7912e220f4d209b66f47e31aad6c2a833af6236a3679096a51f21858

CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

post_install() {
	vdoc "${FILESDIR}/README.voidlinux"
}
