diff options
author | nia <nia@pkgsrc.org> | 2019-10-01 12:28:18 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-10-01 12:28:18 +0000 |
commit | c16fa5654fed95fa51a4abdf3ee63cedfafe3dca (patch) | |
tree | 53bebc022a9c0567464d013e58446aa09b976f8d /games | |
parent | bbf3c62dc7d77f4067e33b1742421e941faa3b42 (diff) | |
download | pkgsrc-c16fa5654fed95fa51a4abdf3ee63cedfafe3dca.tar.gz |
Add games/yquake2.
Yamagi Quake II is an alternative client for id Software's Quake II. Our goal
is to provide the best Quake II experience possible, we strive to preserve
the gameplay as it was back in 1997. Thus we aim mostly for bug fixes,
stability and gentle enhancements were appropriate.
Diffstat (limited to 'games')
-rw-r--r-- | games/yquake2/DESCR | 4 | ||||
-rw-r--r-- | games/yquake2/MESSAGE | 11 | ||||
-rw-r--r-- | games/yquake2/Makefile | 51 | ||||
-rw-r--r-- | games/yquake2/PLIST | 11 | ||||
-rw-r--r-- | games/yquake2/distinfo | 7 | ||||
-rw-r--r-- | games/yquake2/files/quake2.sh.in | 3 | ||||
-rw-r--r-- | games/yquake2/files/yquake2.desktop | 9 | ||||
-rw-r--r-- | games/yquake2/patches/patch-CMakeLists.txt | 14 |
8 files changed, 110 insertions, 0 deletions
diff --git a/games/yquake2/DESCR b/games/yquake2/DESCR new file mode 100644 index 00000000000..ecfe22f1392 --- /dev/null +++ b/games/yquake2/DESCR @@ -0,0 +1,4 @@ +Yamagi Quake II is an alternative client for id Software's Quake II. Our goal +is to provide the best Quake II experience possible, we strive to preserve +the gameplay as it was back in 1997. Thus we aim mostly for bug fixes, +stability and gentle enhancements were appropriate. diff --git a/games/yquake2/MESSAGE b/games/yquake2/MESSAGE new file mode 100644 index 00000000000..07e9e78472e --- /dev/null +++ b/games/yquake2/MESSAGE @@ -0,0 +1,11 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2019/10/01 12:28:18 nia Exp $ + +To use Yamagi Quake II, you must have a set of data files from the original +Quake II. + +Place them in the $PREFIX/share/yquake2/baseq2 directory. + +Then run "quake2". + +=========================================================================== diff --git a/games/yquake2/Makefile b/games/yquake2/Makefile new file mode 100644 index 00000000000..cda0cb715a4 --- /dev/null +++ b/games/yquake2/Makefile @@ -0,0 +1,51 @@ +# $NetBSD: Makefile,v 1.1 2019/10/01 12:28:18 nia Exp $ + +DISTNAME= quake2-7.41 +PKGNAME= y${DISTNAME} +CATEGORIES= games +MASTER_SITES= https://deponie.yamagi.org/quake2/ +EXTRACT_SUFX= .tar.xz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://www.yamagi.org/quake2/ +COMMENT= Yamagi Quake II - alternative Quake II client +LICENSE= gnu-gpl-v2 + +USE_CMAKE= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES= c99 c++ + +CMAKE_ARGS+= -DCMAKE_BUILD_TYPE="Release" +CMAKE_ARGS+= -DSYSTEMWIDE_SUPPORT=ON + +INSTALLATION_DIRS+= bin libexec +INSTALLATION_DIRS+= share/applications +INSTALLATION_DIRS+= share/pixmaps +INSTALLATION_DIRS+= share/yquake2/baseq2 + +pre-configure: + ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/quake2.sh.in > ${WRKDIR}/quake2.sh + +do-install: + ${INSTALL_PROGRAM} ${WRKDIR}/quake2.sh \ + ${DESTDIR}${PREFIX}/bin/quake2 + ${INSTALL_PROGRAM} ${WRKDIR}/quake2.sh \ + ${DESTDIR}${PREFIX}/bin/q2ded + ${INSTALL_PROGRAM} ${WRKSRC}/release/quake2 \ + ${DESTDIR}${PREFIX}/libexec/quake2 + ${INSTALL_PROGRAM} ${WRKSRC}/release/q2ded \ + ${DESTDIR}${PREFIX}/libexec/q2ded + ${INSTALL_LIB} ${WRKSRC}/release/baseq2/game.so \ + ${DESTDIR}${PREFIX}/share/yquake2/baseq2 + ${INSTALL_LIB} ${WRKSRC}/release/*.so \ + ${DESTDIR}${PREFIX}/share/yquake2 + ${INSTALL_DATA} ${FILESDIR}/yquake2.desktop \ + ${DESTDIR}${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/stuff/icon/Quake2.png \ + ${DESTDIR}${PREFIX}/share/pixmaps/quake2.png + +.include "../../audio/openal-soft/buildlink3.mk" +.include "../../graphics/glu/buildlink3.mk" +.include "../../devel/SDL2/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/games/yquake2/PLIST b/games/yquake2/PLIST new file mode 100644 index 00000000000..298ec1562fe --- /dev/null +++ b/games/yquake2/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2019/10/01 12:28:18 nia Exp $ +bin/q2ded +bin/quake2 +libexec/q2ded +libexec/quake2 +share/applications/yquake2.desktop +share/pixmaps/quake2.png +share/yquake2/baseq2/game.so +share/yquake2/ref_gl1.so +share/yquake2/ref_gl3.so +share/yquake2/ref_soft.so diff --git a/games/yquake2/distinfo b/games/yquake2/distinfo new file mode 100644 index 00000000000..baa9f33504d --- /dev/null +++ b/games/yquake2/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2019/10/01 12:28:18 nia Exp $ + +SHA1 (quake2-7.41.tar.xz) = 9348f3ad69b04393b92ac740e12c515b317422c2 +RMD160 (quake2-7.41.tar.xz) = bf7329ff0c2753f795a26678606ff07e6347e886 +SHA512 (quake2-7.41.tar.xz) = fd2c991274415eb38cf3deb7562f7c51c7f8e935cf7215eba7e8ae088f25cddf95e86221fcbbb5fcc8bd97e264b147951bf5f4aecb8ee54973d46af7ef39d3af +Size (quake2-7.41.tar.xz) = 1978952 bytes +SHA1 (patch-CMakeLists.txt) = 9abf8f2345ed90379146a637bf79f4021777a67b diff --git a/games/yquake2/files/quake2.sh.in b/games/yquake2/files/quake2.sh.in new file mode 100644 index 00000000000..8e19e752f6f --- /dev/null +++ b/games/yquake2/files/quake2.sh.in @@ -0,0 +1,3 @@ +#!/bin/sh +BIN=$(basename "$0") +cd "@PREFIX@/share/yquake2" && exec "@PREFIX@/libexec/$BIN" "$@" diff --git a/games/yquake2/files/yquake2.desktop b/games/yquake2/files/yquake2.desktop new file mode 100644 index 00000000000..edc33d40f8b --- /dev/null +++ b/games/yquake2/files/yquake2.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Yamagi Quake II +Comment=Alternative client for id Software's Quake II +Icon=quake2 +Exec=quake2 +Categories=Game;ActionGame; +Terminal=false +StartupNotify=false diff --git a/games/yquake2/patches/patch-CMakeLists.txt b/games/yquake2/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..f7bf3cc6bdd --- /dev/null +++ b/games/yquake2/patches/patch-CMakeLists.txt @@ -0,0 +1,14 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2019/10/01 12:28:19 nia Exp $ + +Don't allow it to default to /usr/share/games/quake2. + +--- CMakeLists.txt.orig 2019-09-26 13:14:20.599841947 +0000 ++++ CMakeLists.txt +@@ -81,6 +81,7 @@ add_definitions(-DYQ2ARCH="${ARCH}") + # Systemwide installation of game assets. + if(${SYSTEMWIDE_SUPPORT}) + add_definitions(-DSYSTEMWIDE) ++ add_definitions(-DSYSTEMDIR="${CMAKE_INSTALL_PREFIX}/share/yquake2") + endif() + + # We need to pass some options to minizip / unzip. |