pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/yquake2 Add games/yquake2.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e78673d4bf3c
branches: trunk
changeset: 340276:e78673d4bf3c
user: nia <nia%pkgsrc.org@localhost>
date: Tue Oct 01 12:28:18 2019 +0000
description:
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:
games/yquake2/DESCR | 4 ++
games/yquake2/MESSAGE | 11 ++++++
games/yquake2/Makefile | 51 ++++++++++++++++++++++++++++++
games/yquake2/PLIST | 11 ++++++
games/yquake2/distinfo | 7 ++++
games/yquake2/files/quake2.sh.in | 3 +
games/yquake2/files/yquake2.desktop | 9 +++++
games/yquake2/patches/patch-CMakeLists.txt | 14 ++++++++
8 files changed, 110 insertions(+), 0 deletions(-)
diffs (142 lines):
diff -r b6360e2369a6 -r e78673d4bf3c games/yquake2/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/yquake2/DESCR Tue Oct 01 12:28:18 2019 +0000
@@ -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 -r b6360e2369a6 -r e78673d4bf3c games/yquake2/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/yquake2/MESSAGE Tue Oct 01 12:28:18 2019 +0000
@@ -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 -r b6360e2369a6 -r e78673d4bf3c games/yquake2/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/yquake2/Makefile Tue Oct 01 12:28:18 2019 +0000
@@ -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@localhost
+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 -r b6360e2369a6 -r e78673d4bf3c games/yquake2/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/yquake2/PLIST Tue Oct 01 12:28:18 2019 +0000
@@ -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 -r b6360e2369a6 -r e78673d4bf3c games/yquake2/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/yquake2/distinfo Tue Oct 01 12:28:18 2019 +0000
@@ -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 -r b6360e2369a6 -r e78673d4bf3c games/yquake2/files/quake2.sh.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/yquake2/files/quake2.sh.in Tue Oct 01 12:28:18 2019 +0000
@@ -0,0 +1,3 @@
+#!/bin/sh
+BIN=$(basename "$0")
+cd "@PREFIX@/share/yquake2" && exec "@PREFIX@/libexec/$BIN" "$@"
diff -r b6360e2369a6 -r e78673d4bf3c games/yquake2/files/yquake2.desktop
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/yquake2/files/yquake2.desktop Tue Oct 01 12:28:18 2019 +0000
@@ -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 -r b6360e2369a6 -r e78673d4bf3c games/yquake2/patches/patch-CMakeLists.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/yquake2/patches/patch-CMakeLists.txt Tue Oct 01 12:28:18 2019 +0000
@@ -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.
Home |
Main Index |
Thread Index |
Old Index