openbsd-ports/games/vkquake/Makefile
2020-01-28 06:19:36 +00:00

47 lines
984 B
Makefile

# $OpenBSD: Makefile,v 1.2 2020/01/28 06:19:36 jsg Exp $
COMMENT = port of Quake 1 using Vulkan instead of OpenGL
V = 1.04.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>