thfr ad01666889 import games/vkquake; DO_USERDIRS tweak and ok jsg@
DESCR:
vkQuake is a Quake 1 port using Vulkan instead of OpenGL for
rendering. It is based on the popular QuakeSpasm port and runs all
mods compatible with it like Arcane Dimensions or In The Shadows.

Compared to QuakeSpasm vkQuake also features a software Quake like
underwater effect, has better color precision, generates mipmap for
water surfaces at runtime and has native support for anti-aliasing
and AF.

vkQuake also serves as a Vulkan demo application that shows basic
usage of the API. For example it demonstrates render passes & sub
passes, pipeline barriers & synchronization, compute shaders, push
& specialization constants, CPU/GPU parallelism and memory pooling.
2019-06-23 19:00:14 +00:00

47 lines
989 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2019/06/23 19:00:14 thfr Exp $
COMMENT = port of Quake 1 using Vulkan instead of OpenGL
V = 1.02.1
PKGNAME = vkquake-${V}
GH_ACCOUNT = Novum
GH_PROJECT = vkQuake
GH_TAGNAME = ${V}
CATEGORIES = games x11
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB += SDL2 X11-xcb c m mad ogg vorbis vorbisfile vulkan
COMPILER = base-clang base-gcc gcc3
LIB_DEPENDS = audio/libmad \
audio/libogg \
audio/libvorbis \
devel/sdl2 \
graphics/vulkan-loader
MAKE_FLAGS = bindir=${PREFIX}/share/vkquake \
DO_USERDIRS=1 \
X11BASE=${X11BASE}
USE_GMAKE = Yes
NO_TEST = Yes
WRKSRC = ${WRKDIST}/Quake
ALL_TARGET = vkquake
# remove some .orig files that mess with ports work
post-extract:
rm ${WRKSRC}/../Misc/vq_pak/*.orig
rm ${WRKSRC}/../Misc/vq_pak/maps/*.orig
pre-install:
mkdir -p ${PREFIX}/share/vkquake/id1
post-install:
${SUBST_CMD} -c -m 755 ${FILESDIR}/vkquake.sh ${PREFIX}/bin/vkquake
.include <bsd.port.mk>