blob: 0761c62e7b7f8cb42a96aabdccbc8face25eefa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
PORTNAME= vkquake
DISTVERSION= 1.03.0
PORTREVISION= 1
CATEGORIES= games
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= a869a22d9b51.patch:-p2 # vulkan-headers >= 140
MAINTAINER= greg@unrelenting.technology
COMMENT= Quake 1 port using Vulkan instead of OpenGL, based on QuakeSpasm
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/../LICENSE.txt
BUILD_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
LIB_DEPENDS= libX11-xcb.so:x11/libX11 \
libvulkan.so:graphics/vulkan-loader
WRKSRC_SUBDIR= Quake
USES= desktop-file-utils gmake gnome pkgconfig sdl
USE_SDL= sdl2
USE_GITHUB= yes
GH_ACCOUNT= Novum
GH_PROJECT= vkQuake
INSTALLS_ICONS= yes
MAKE_ENV= prefix=${PREFIX} bindir=${PREFIX}/bin VULKAN_SDK=${LOCALBASE}
ALL_TARGET= # empty
.include "${.CURDIR}/../quake-data/Makefile.include"
CFLAGS+= -DDATADIR='\"${Q1DIR}\"'
OPTIONS_DEFINE= USERDIRS WAVE FLAC MP3 VORBIS # OPUS
OPTIONS_RADIO= MODPLAYER
OPTIONS_RADIO_MODPLAYER= MIKMOD XMP MODPLUG
OPTIONS_DEFAULT= USERDIRS WAVE FLAC VORBIS MODPLUG # OPUS MODPLUG
USERDIRS_DESC= Enable support for loading game files from user directories (~/.vkquake)
WAVE_DESC= Enable support for Wave music
FLAC_DESC= Enable support for FLAC music
MP3_DESC= Enable support for MP3 music
VORBIS_DESC= Enable support for Ogg Vorbis music
# OPUS_DESC= Enable support for Opus music
MIKMOD_DESC= Enable support for tracker module music using MikMod
XMP_DESC= Enable support for tracker module music using XMP
MODPLUG_DESC= Enable support for tracker module music using ModPlug
USERDIRS_MAKE_ARGS= DO_USERDIRS=1
USERDIRS_MAKE_ARGS_OFF= DO_USERDIRS=0
WAVE_MAKE_ARGS= USE_CODEC_WAVE=1
WAVE_MAKE_ARGS_OFF= USE_CODEC_WAVE=0
FLAC_MAKE_ARGS= USE_CODEC_FLAC=1
FLAC_MAKE_ARGS_OFF= USE_CODEC_FLAC=0
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
MP3_MAKE_ARGS= USE_CODEC_MP3=1 MP3LIB=mpg123
MP3_MAKE_ARGS_OFF= USE_CODEC_MP3=0
MP3_LIB_DEPENDS= libmpg123.so:audio/mpg123
VORBIS_MAKE_ARGS= USE_CODEC_VORBIS=1 VORBISLIB=vorbis
VORBIS_MAKE_ARGS_OFF= USE_CODEC_VORBIS=0
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis \
libvorbisfile.so:audio/libvorbis \
libogg.so:audio/libogg
# XXX: crashes on start
# OPUS_MAKE_ARGS= USE_CODEC_OPUS=1
# OPUS_MAKE_ARGS_OFF= USE_CODEC_OPUS=0
# OPUS_LIB_DEPENDS= libopus.so:audio/opus \
# libopusfile.so:audio/opusfile
MIKMOD_MAKE_ARGS= USE_CODEC_MIKMOD=1
MIKMOD_MAKE_ARGS_OFF= USE_CODEC_MIKMOD=0
MIKMOD_LIB_DEPENDS= libmikmod.so:audio/libmikmod
XMP_MAKE_ARGS= USE_CODEC_XMP=1
XMP_MAKE_ARGS_OFF= USE_CODEC_XMP=0
XMP_LIB_DEPENDS= libxmp.so:audio/xmp
MODPLUG_MAKE_ARGS= USE_CODEC_MODPLUG=1
MODPLUG_MAKE_ARGS_OFF= USE_CODEC_MODPLUG=0
MODPLUG_LIB_DEPENDS= libmodplug.so:audio/libmodplug
post-install:
${MKDIR} ${STAGEDIR}${Q1DIR}
${INSTALL_DATA} ${WRKSRC}/vkquake.pak ${STAGEDIR}${Q1DIR}
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps
${INSTALL_DATA} ${FILESDIR}/vkquake.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/vkquake.png
${INSTALL_DATA} ${FILESDIR}/vkquake.desktop \
${STAGEDIR}${PREFIX}/share/applications
.include <bsd.port.mk>
|