pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/games



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun May  5 09:31:37 UTC 2024

Modified Files:
        pkgsrc/games: Makefile
        pkgsrc/games/xonotic: Makefile PLIST distinfo
        pkgsrc/games/xonotic/patches: patch-Makefile
            patch-source_darkplaces_makefile.inc patch-source_gmqcc_Makefile
Added Files:
        pkgsrc/games/xonotic: Makefile.common
        pkgsrc/games/xonotic-dedicated: DESCR Makefile PLIST
Removed Files:
        pkgsrc/games/xonotic/files: xonotic.desktop

Log Message:
xonotic: Update to 0.8.6

This update more than doubles the FPS on my system.


To generate a diff of this commit:
cvs rdiff -u -r1.544 -r1.545 pkgsrc/games/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/games/xonotic/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/games/xonotic/Makefile.common
cvs rdiff -u -r1.2 -r1.3 pkgsrc/games/xonotic/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/games/xonotic/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/xonotic-dedicated/DESCR \
    pkgsrc/games/xonotic-dedicated/Makefile \
    pkgsrc/games/xonotic-dedicated/PLIST
cvs rdiff -u -r1.1 -r0 pkgsrc/games/xonotic/files/xonotic.desktop
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/xonotic/patches/patch-Makefile \
    pkgsrc/games/xonotic/patches/patch-source_darkplaces_makefile.inc \
    pkgsrc/games/xonotic/patches/patch-source_gmqcc_Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/Makefile
diff -u pkgsrc/games/Makefile:1.544 pkgsrc/games/Makefile:1.545
--- pkgsrc/games/Makefile:1.544 Thu May  2 07:33:19 2024
+++ pkgsrc/games/Makefile       Sun May  5 09:31:36 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.544 2024/05/02 07:33:19 nia Exp $
+# $NetBSD: Makefile,v 1.545 2024/05/05 09:31:36 nia Exp $
 #
 
 COMMENT=       Games
@@ -471,6 +471,7 @@ SUBDIR+=    xmahjongg
 SUBDIR+=       xmris
 SUBDIR+=       xnibbles
 SUBDIR+=       xonotic
+SUBDIR+=       xonotic-dedicated
 SUBDIR+=       xpat2
 SUBDIR+=       xpilot
 SUBDIR+=       xpipeman

Index: pkgsrc/games/xonotic/Makefile
diff -u pkgsrc/games/xonotic/Makefile:1.19 pkgsrc/games/xonotic/Makefile:1.20
--- pkgsrc/games/xonotic/Makefile:1.19  Sat Apr  6 08:05:40 2024
+++ pkgsrc/games/xonotic/Makefile       Sun May  5 09:31:36 2024
@@ -1,47 +1,35 @@
-# $NetBSD: Makefile,v 1.19 2024/04/06 08:05:40 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2024/05/05 09:31:36 nia Exp $
 
-DISTNAME=      xonotic-0.8.2
-PKGREVISION=   11
-CATEGORIES=    games
-MASTER_SITES=  https://dl.xonotic.org/
-EXTRACT_SUFX=  .zip
+.include "Makefile.common"
 
-MAINTAINER=    charlotte%NetBSD.org@localhost
-HOMEPAGE=      https://xonotic.org/
-COMMENT=       Fast arena-style FPS
-LICENSE=       gnu-gpl-v2
-
-USE_TOOLS+=    gmake gsed 7za bash zip
-USE_LANGUAGES= c c++
+CONFLICTS+=    xonotic-dedicated-[0-9]*
 
-USE_CXX_FEATURES+=     c++11
+COMMENT=       Fast arena-style FPS
 
-WRKSRC=                ${WRKDIR}/Xonotic
-BUILD_TARGET=  all-zip-source
-INSTALL_TARGET=        install-data-zip-source install-engine-zip-source install-links
-INSTALL_ENV+=  LIBDIR=${PREFIX}/share/xonotic
+BUILD_TARGET=  both
 
 ICON_SIZES=    16 24 32 64 128 256 512
 
-.include "../../mk/bsd.prefs.mk"
-
-.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
-PLIST_SUBST+=  FAKE_PLATFORM="linux64"
-.else
-PLIST_SUBST+=  FAKE_PLATFORM="linux32"
-.endif
-
-.if ${MACHINE_ARCH} == "i386"
-CFLAGS+=       -msse
-.endif
-
+INSTALLATION_DIRS+=    bin
 INSTALLATION_DIRS+=    share/applications
 .for s in ${ICON_SIZES}
 INSTALLATION_DIRS+=    share/icons/hicolor/${s}x${s}/apps
 .endfor
+INSTALLATION_DIRS+=    share/xonotic/data
+INSTALLATION_DIRS+=    share/xonotic
+
+CHECK_WRKREF_SKIP+=    share/*
 
-post-install:
-       ${INSTALL_DATA} ${FILESDIR}/xonotic.desktop \
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/source/darkplaces/darkplaces-sdl \
+           ${DESTDIR}${PREFIX}/bin/xonotic-sdl
+       ${INSTALL_PROGRAM} ${WRKSRC}/source/darkplaces/darkplaces-dedicated \
+           ${DESTDIR}${PREFIX}/bin/xonotic-dedicated
+       ${INSTALL_DATA} ${WRKSRC}/key_0.d0pk \
+           ${DESTDIR}${PREFIX}/share/xonotic
+       ${INSTALL_DATA} ${WRKSRC}/data/*.pk3 \
+           ${DESTDIR}${PREFIX}/share/xonotic/data
+       ${INSTALL_DATA} ${WRKSRC}/misc/logos/xonotic.desktop \
            ${DESTDIR}${PREFIX}/share/applications
 .for s in ${ICON_SIZES}
        ${INSTALL_DATA} ${WRKSRC}/misc/logos/icons_png/xonotic_${s}.png \
@@ -52,13 +40,10 @@ post-install:
 .  include "../../audio/alsa-lib/buildlink3.mk"
 .endif
 .include "../../devel/SDL2/buildlink3.mk"
-.include "../../devel/gmp/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
 .include "../../x11/libXpm/buildlink3.mk"
 .include "../../x11/libXxf86vm/buildlink3.mk"
-.include "../../mk/jpeg.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/games/xonotic/PLIST
diff -u pkgsrc/games/xonotic/PLIST:1.2 pkgsrc/games/xonotic/PLIST:1.3
--- pkgsrc/games/xonotic/PLIST:1.2      Fri May 14 09:48:59 2021
+++ pkgsrc/games/xonotic/PLIST  Sun May  5 09:31:36 2024
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2021/05/14 09:48:59 nia Exp $
+@comment $NetBSD: PLIST,v 1.3 2024/05/05 09:31:36 nia Exp $
 bin/xonotic-dedicated
-bin/xonotic-glx
 bin/xonotic-sdl
 share/applications/xonotic.desktop
 share/icons/hicolor/128x128/apps/xonotic.png
@@ -10,15 +9,11 @@ share/icons/hicolor/256x256/apps/xonotic
 share/icons/hicolor/32x32/apps/xonotic.png
 share/icons/hicolor/512x512/apps/xonotic.png
 share/icons/hicolor/64x64/apps/xonotic.png
-share/xonotic/data/font-unifont-20170401.pk3
-share/xonotic/data/font-xolonium-20170401.pk3
-share/xonotic/data/xonotic-20170401-data.pk3
-share/xonotic/data/xonotic-20170401-maps.pk3
-share/xonotic/data/xonotic-20170401-music.pk3
-share/xonotic/data/xonotic-20170401-nexcompat.pk3
-share/xonotic/xonotic-linux-dedicated.sh
-share/xonotic/xonotic-linux-glx.sh
-share/xonotic/xonotic-linux-sdl.sh
-share/xonotic/xonotic-${FAKE_PLATFORM}-dedicated
-share/xonotic/xonotic-${FAKE_PLATFORM}-glx
-share/xonotic/xonotic-${FAKE_PLATFORM}-sdl
+share/xonotic/data/font-unifont-20230620.pk3
+share/xonotic/data/font-xolonium-20230620.pk3
+share/xonotic/data/xonotic-20230620-data.pk3
+share/xonotic/data/xonotic-20230620-maps.pk3
+share/xonotic/data/xonotic-20230620-music.pk3
+share/xonotic/data/xonotic-20230620-nexcompat.pk3
+share/xonotic/data/xonotic-20230620-xoncompat.pk3
+share/xonotic/key_0.d0pk

Index: pkgsrc/games/xonotic/distinfo
diff -u pkgsrc/games/xonotic/distinfo:1.4 pkgsrc/games/xonotic/distinfo:1.5
--- pkgsrc/games/xonotic/distinfo:1.4   Tue Oct 26 10:44:34 2021
+++ pkgsrc/games/xonotic/distinfo       Sun May  5 09:31:36 2024
@@ -1,12 +1,12 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:44:34 nia Exp $
+$NetBSD: distinfo,v 1.5 2024/05/05 09:31:36 nia Exp $
 
-BLAKE2s (xonotic-0.8.2.zip) = ed7948d01c9be2fb72c0da3f3a26d7a9172d58af9865d8ba68869b7e731f3954
-SHA512 (xonotic-0.8.2.zip) = 0787fcf326827ae0292e5917c7ff2c7fd79947209d4b62e7f83b8b828bec15b575da304e0631f9f163c9b0bd93bed13616e142398ff08cbdaaea890a939dfca5
-Size (xonotic-0.8.2.zip) = 991045679 bytes
-SHA1 (patch-Makefile) = 6c667df4048fd2cbec1c5c8cccb9d525390358ab
+BLAKE2s (xonotic-0.8.6.zip) = ff781bce68d8fda2602e7504281fdc8d2a65f6867c0b83a909990462a0b45900
+SHA512 (xonotic-0.8.6.zip) = cb39879e96f19abb2877588c2d50c5d3e64dd68153bec3dd1bebedf4d765e506afa419c28381d7005aed664cb1a042571c132b5b319e4308cab67745d996c2a6
+Size (xonotic-0.8.6.zip) = 1238439495 bytes
+SHA1 (patch-Makefile) = 346bb4d59bceca8b458281f5b5031241d6f61638
 SHA1 (patch-source_darkplaces_hmac.c) = 58f6da84843f82fabd35e6a166e897fa1679a48a
 SHA1 (patch-source_darkplaces_hmac.h) = aa3dd533c2a6ccc0bb8836c5f6284c01db0fb0d4
-SHA1 (patch-source_darkplaces_makefile.inc) = c440ebb63b5c6561e8643f2ff725eb6d49a8ced0
+SHA1 (patch-source_darkplaces_makefile.inc) = 9234cf68cecee7524fc59f6f5d26b46fdcdd2011
 SHA1 (patch-source_darkplaces_vid__glx.c) = 35f44684e2eb7afd37727f4dc52788d71b5e6805
-SHA1 (patch-source_gmqcc_Makefile) = a70657f928f43087fc4de97f206200fd78dd8a4b
+SHA1 (patch-source_gmqcc_Makefile) = bdbf3646d5051b90fdd327b2d418ed5c2ec30156
 SHA1 (patch-source_gmqcc_gmqcc.h) = 8cf08c5d6b218c042b96fad904b1a35c37cb260d

Index: pkgsrc/games/xonotic/patches/patch-Makefile
diff -u pkgsrc/games/xonotic/patches/patch-Makefile:1.1 pkgsrc/games/xonotic/patches/patch-Makefile:1.2
--- pkgsrc/games/xonotic/patches/patch-Makefile:1.1     Tue Oct  1 12:32:26 2019
+++ pkgsrc/games/xonotic/patches/patch-Makefile Sun May  5 09:31:37 2024
@@ -1,24 +1,59 @@
-$NetBSD: patch-Makefile,v 1.1 2019/10/01 12:32:26 nia Exp $
+$NetBSD: patch-Makefile,v 1.2 2024/05/05 09:31:37 nia Exp $
 
-Use DESTDIR.
+Unbundle d0_blind_id.
 
---- ./Makefile.orig    2015-08-25 15:05:04.000000000 -0700
-+++ ./Makefile 2017-01-29 22:14:53.212882308 -0800
-@@ -30,7 +30,7 @@
-       ( cd source/d0_blind_id && ./configure --enable-static --disable-shared $(RIJNDAELDETECT_CONFIGURE) )
-       $(MAKE) -C source/d0_blind_id
-       $(MAKE) -C source/gmqcc
--      $(MAKE) -C source/qcsrc FTEQCC=$(CURDIR)/source/gmqcc/gmqcc
-+      $(MAKE) -C source/qcsrc QCC=$(CURDIR)/source/gmqcc/gmqcc
-       $(MAKE) -C source/darkplaces sv-release DP_CRYPTO_STATIC_LIBDIR=$(CURDIR)/source/d0_blind_id/.libs
-       $(MAKE) -C source/darkplaces cl-release DP_CRYPTO_STATIC_LIBDIR=$(CURDIR)/source/d0_blind_id/.libs
-       $(MAKE) -C source/darkplaces sdl-release DP_CRYPTO_STATIC_LIBDIR=$(CURDIR)/source/d0_blind_id/.libs
-@@ -115,7 +115,7 @@
+--- Makefile.orig      2023-05-31 03:40:30.000000000 +0000
++++ Makefile
+@@ -1,30 +1,15 @@
+ DPSRC = source/darkplaces
+-D0SRC = source/d0_blind_id
+ CLIENT = xonotic-local-sdl
+ SERVER = xonotic-local-dedicated
+ 
+ # CC and MAKEFLAGS are always set so ?= has no effect, therefore
+ # we use CFLAGS to set default optimisations which users may override
+ CFLAGS ?= -pipe -march=native -mtune=native -flto=auto
+-# user can override this with make -j
+-MAKEFLAGS := -j$(shell nproc)
++CFLAGS += $$(pkg-config --cflags d0_blind_id d0_rijndael)
++LDFLAGS += $$(pkg-config --libs d0_blind_id d0_rijndael)
+ # DP makefile overrides CFLAGS (exporting CFLAGS does work for d0_blind_id but so does this)
+ export CC += $(CFLAGS)
+ 
+-# d0_blind_id header location
+-export CC += -I$(PWD)/source/
+-# d0_blind_id static libs location
+-export CC += -L$(PWD)/$(D0SRC)/.libs/
+-# Player IDs: DP_LINK_CRYPTO needs to be set (else it defaults to "dlopen"),
+-# it should be set to "shared" but then LIB_CRYPTO gets overridden in DP makefile,
+-# and we need to set LIB_CRYPTO such that libgmp gets linked
+-export DP_LINK_CRYPTO=foo
+-export CFLAGS_CRYPTO=-DLINK_TO_CRYPTO
+-export LIB_CRYPTO=-ld0_blind_id -lgmp
+-# AES
+-export DP_LINK_CRYPTO_RIJNDAEL=shared
+-
+-
+ .PHONY: help
+ help:
+       @echo
+@@ -78,17 +63,13 @@ update-beta:
+ $(D0SRC)/Makefile:
+       ( cd $(D0SRC) && ./autogen.sh && ./configure --enable-static --disable-shared )
+ 
+-.PHONY: d0_blind_id
+-d0_blind_id: $(D0SRC)/Makefile
+-      $(MAKE) -C $(D0SRC)
+-
+ .PHONY: server
+-server: d0_blind_id
++server:
+       $(MAKE) -C $(DPSRC) sv-release
+       cp -v $(DPSRC)/darkplaces-dedicated $(SERVER)
+ 
+ .PHONY: client
+-client: d0_blind_id
++client:
+       $(MAKE) -C $(DPSRC) sdl-release
+       cp -v $(DPSRC)/darkplaces-sdl $(CLIENT)
  
- .PHONY: install-links
- install-links:
--      $(INSTALL) -d $(BINDIR)
-+      $(INSTALL) -d $(DESTDIR)$(BINDIR)
-       $(LN) -snf $(LIBDIR)/xonotic-linux-sdl.sh $(DESTDIR)$(BINDIR)/xonotic-sdl
-       $(LN) -snf $(LIBDIR)/xonotic-linux-glx.sh $(DESTDIR)$(BINDIR)/xonotic-glx
-       $(LN) -snf $(LIBDIR)/xonotic-linux-dedicated.sh $(DESTDIR)$(BINDIR)/xonotic-dedicated
Index: pkgsrc/games/xonotic/patches/patch-source_darkplaces_makefile.inc
diff -u pkgsrc/games/xonotic/patches/patch-source_darkplaces_makefile.inc:1.1 pkgsrc/games/xonotic/patches/patch-source_darkplaces_makefile.inc:1.2
--- pkgsrc/games/xonotic/patches/patch-source_darkplaces_makefile.inc:1.1       Tue Oct  1 12:32:26 2019
+++ pkgsrc/games/xonotic/patches/patch-source_darkplaces_makefile.inc   Sun May  5 09:31:37 2024
@@ -1,10 +1,19 @@
-$NetBSD: patch-source_darkplaces_makefile.inc,v 1.1 2019/10/01 12:32:26 nia Exp $
+$NetBSD: patch-source_darkplaces_makefile.inc,v 1.2 2024/05/05 09:31:37 nia Exp $
 
 Allow pkgsrc to set LDFLAGS.
 
---- source/darkplaces/makefile.inc.orig        2017-04-01 13:26:56.000000000 +0000
+--- source/darkplaces/makefile.inc.orig        2023-04-30 09:22:32.000000000 +0000
 +++ source/darkplaces/makefile.inc
-@@ -209,7 +209,7 @@ LDFLAGS_RELEASE=$(OPTIM_RELEASE) -DSVNRE
+@@ -197,7 +197,7 @@ OPTIM_DEBUG=$(CPUOPTIMIZATIONS)
+ #OPTIM_RELEASE=-O2 -fno-strict-aliasing -funroll-loops $(CPUOPTIMIZATIONS)
+ #OPTIM_RELEASE=-O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
+ #OPTIM_RELEASE=-O3 -fno-strict-aliasing $(CPUOPTIMIZATIONS)
+-OPTIM_RELEASE=-O3 -fno-strict-aliasing -fno-math-errno -fno-trapping-math $(CPUOPTIMIZATIONS)
++OPTIM_RELEASE=$(CFLAGS) -fno-strict-aliasing -fno-math-errno -fno-trapping-math $(CPUOPTIMIZATIONS)
+ # NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag
+ # Also, since gcc 5, -ffinite-math-only makes NaN and zero compare equal inside engine code but not inside QC, which causes error spam for seemingly valid QC code like if (x != 0) return 1 / x;
+ 
+@@ -214,7 +214,7 @@ LDFLAGS_RELEASE=$(OPTIM_RELEASE) -DSVNRE
  
  OBJ_GLX= builddate.c sys_linux.o vid_glx.o thread_pthread.o keysym2ucs.o $(OBJ_MENU) $(OBJ_SOUND) $(OBJ_CD) $(OBJ_VIDEO_CAPTURE) $(OBJ_COMMON)
  
Index: pkgsrc/games/xonotic/patches/patch-source_gmqcc_Makefile
diff -u pkgsrc/games/xonotic/patches/patch-source_gmqcc_Makefile:1.1 pkgsrc/games/xonotic/patches/patch-source_gmqcc_Makefile:1.2
--- pkgsrc/games/xonotic/patches/patch-source_gmqcc_Makefile:1.1        Tue Oct  1 12:32:26 2019
+++ pkgsrc/games/xonotic/patches/patch-source_gmqcc_Makefile    Sun May  5 09:31:37 2024
@@ -1,15 +1,15 @@
-$NetBSD: patch-source_gmqcc_Makefile,v 1.1 2019/10/01 12:32:26 nia Exp $
+$NetBSD: patch-source_gmqcc_Makefile,v 1.2 2024/05/05 09:31:37 nia Exp $
 
 Allow pkgsrc to set CXXFLAGS.
 
---- source/gmqcc/Makefile.orig 2017-04-01 13:28:34.000000000 +0000
+--- source/gmqcc/Makefile.orig 2020-10-28 00:40:30.000000000 +0000
 +++ source/gmqcc/Makefile
-@@ -10,7 +10,7 @@ WINDOWS=1
- endif
- 
- CXX ?= clang++
--CXXFLAGS = \
-+CXXFLAGS += \
-       -std=c++11 \
-       -Wall \
-       -Wextra \
+@@ -62,7 +62,7 @@ TSRCS += util.cpp
+ #
+ # Compilation flags
+ #
+-CXXFLAGS := -Wall
++CXXFLAGS += -Wall
+ CXXFLAGS += -Wextra
+ CXXFLAGS += -Wno-parentheses
+ CXXFLAGS += -Wno-class-memaccess

Added files:

Index: pkgsrc/games/xonotic/Makefile.common
diff -u /dev/null pkgsrc/games/xonotic/Makefile.common:1.1
--- /dev/null   Sun May  5 09:31:37 2024
+++ pkgsrc/games/xonotic/Makefile.common        Sun May  5 09:31:36 2024
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile.common,v 1.1 2024/05/05 09:31:36 nia Exp $
+
+# used by games/xonotic/Makefile
+# used by games/xonotic-dedicated/Makefile
+
+DISTNAME=      xonotic-0.8.6
+CATEGORIES=    games
+MASTER_SITES=  https://dl.xonotic.org/
+EXTRACT_SUFX=  .zip
+
+MAINTAINER=    charlotte%NetBSD.org@localhost
+HOMEPAGE=      https://xonotic.org/
+LICENSE=       gnu-gpl-v2
+
+USE_TOOLS+=    gmake pkg-config
+USE_LANGUAGES= c c++
+
+DISTINFO_FILE= ${.CURDIR}/../../games/xonotic/distinfo
+PATCHDIR=      ${.CURDIR}/../../games/xonotic/patches
+
+USE_CXX_FEATURES+=     c++11
+
+MAKE_ENV+=     DP_LINK_CRYPTO=shared
+MAKE_ENV+=     DP_LINK_CRYPTO_RIJNDAEL=shared
+MAKE_ENV+=     DP_LINK_JPEG=shared
+MAKE_ENV+=     DP_LINK_ZLIB=shared
+
+MAKE_ENV+=     DP_FS_BASEDIR=${PREFIX}/share/xonotic
+
+WRKSRC=                ${WRKDIR}/Xonotic
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+=       -msse -msse2
+.endif
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/d0_blind_id/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"

Index: pkgsrc/games/xonotic-dedicated/DESCR
diff -u /dev/null pkgsrc/games/xonotic-dedicated/DESCR:1.1
--- /dev/null   Sun May  5 09:31:37 2024
+++ pkgsrc/games/xonotic-dedicated/DESCR        Sun May  5 09:31:37 2024
@@ -0,0 +1,6 @@
+Xonotic is an addictive, arena-style first person shooter with crisp
+movement and a wide array of weapons. It combines intuitive mechanics with
+in-your-face action to elevate your heart rate. Xonotic is and will always
+be free-to-play.
+
+This package contains only the dedicated server.
Index: pkgsrc/games/xonotic-dedicated/Makefile
diff -u /dev/null pkgsrc/games/xonotic-dedicated/Makefile:1.1
--- /dev/null   Sun May  5 09:31:37 2024
+++ pkgsrc/games/xonotic-dedicated/Makefile     Sun May  5 09:31:37 2024
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2024/05/05 09:31:37 nia Exp $
+
+.include "../../games/xonotic/Makefile.common"
+
+PKGNAME=       ${DISTNAME:S/xonotic-/xonotic-dedicated-/1}
+
+CONFLICTS+=    xonotic-[0-9]*
+
+COMMENT=       Fast arena-style FPS (dedicated server)
+
+BUILD_TARGET=  server
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    share/xonotic/data
+INSTALLATION_DIRS+=    share/xonotic
+
+CHECK_WRKREF_SKIP+=    share/*
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/source/darkplaces/darkplaces-dedicated \
+           ${DESTDIR}${PREFIX}/bin/xonotic-dedicated
+       ${INSTALL_DATA} ${WRKSRC}/key_0.d0pk \
+           ${DESTDIR}${PREFIX}/share/xonotic
+       ${INSTALL_DATA} ${WRKSRC}/data/*.pk3 \
+           ${DESTDIR}${PREFIX}/share/xonotic/data
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/games/xonotic-dedicated/PLIST
diff -u /dev/null pkgsrc/games/xonotic-dedicated/PLIST:1.1
--- /dev/null   Sun May  5 09:31:37 2024
+++ pkgsrc/games/xonotic-dedicated/PLIST        Sun May  5 09:31:37 2024
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2024/05/05 09:31:37 nia Exp $
+bin/xonotic-dedicated
+share/xonotic/data/font-unifont-20230620.pk3
+share/xonotic/data/font-xolonium-20230620.pk3
+share/xonotic/data/xonotic-20230620-data.pk3
+share/xonotic/data/xonotic-20230620-maps.pk3
+share/xonotic/data/xonotic-20230620-music.pk3
+share/xonotic/data/xonotic-20230620-nexcompat.pk3
+share/xonotic/data/xonotic-20230620-xoncompat.pk3
+share/xonotic/key_0.d0pk



Home | Main Index | Thread Index | Old Index