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: Mon Sep 29 13:31:29 UTC 2025
Modified Files:
pkgsrc/games: Makefile
Added Files:
pkgsrc/games/warsow: DESCR Makefile PLIST distinfo
pkgsrc/games/warsow/files: warsow.desktop warsow.sh.in
pkgsrc/games/warsow/patches:
patch-source_libsrcs_angelscript_sdk_angelscript_source_as__config.h
patch-source_source_CMakeLists.txt
patch-source_source_angelwrap_CMakeLists.txt
patch-source_source_cin_CMakeLists.txt
patch-source_source_client_CMakeLists.txt
patch-source_source_ftlib_CMakeLists.txt
patch-source_source_gameshared_q__arch.h
patch-source_source_gameshared_q__shared.c
patch-source_source_irc_CMakeLists.txt
patch-source_source_ref__gl_CMakeLists.txt
patch-source_source_ref__gl_qgl.h
patch-source_source_ref__gl_r__glimp.h
patch-source_source_server_CMakeLists.txt
patch-source_source_snd__openal_CMakeLists.txt
patch-source_source_snd__openal_qal.c
patch-source_source_snd__qf_CMakeLists.txt
patch-source_source_tv__server_CMakeLists.txt
patch-source_source_unix_unix__fs.c
patch-source_source_unix_unix__net.c
Log Message:
warsow: Initial import of warsow.
This is unrelated to the warsow package that charlotte worked on in
pkgsrc-wip. I did this one from scratch and decided to use the internal
copy of angelscript, since it seems to have diverged from the latest
version in incompatible ways. dreckly ci confirms this builds on NetBSD
and Linux. In theory, there's old code here to support FreeBSD,
but it's quite obviously bitrotted over the years, and no longer works.
Completely free fast-paced first-person shooter.
Like a true cyberathlete you jump, dash, dodge, and walljump your way through
the game. Grab power-ups before your enemy does, plant a bomb before anyone
sees you, and steal the enemy's flag before they know what is going on!
Our goal is to offer a fast and fun competitive first-person shooter without
hard graphical violence - Warsow has no blood or guts flying around. Red
circles instead of blood indicate hits and colored triangles replace guts
as gib effects.
To generate a diff of this commit:
cvs rdiff -u -r1.558 -r1.559 pkgsrc/games/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/games/warsow/DESCR pkgsrc/games/warsow/Makefile \
pkgsrc/games/warsow/PLIST pkgsrc/games/warsow/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/warsow/files/warsow.desktop \
pkgsrc/games/warsow/files/warsow.sh.in
cvs rdiff -u -r0 -r1.1 \
pkgsrc/games/warsow/patches/patch-source_libsrcs_angelscript_sdk_angelscript_source_as__config.h \
pkgsrc/games/warsow/patches/patch-source_source_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_angelwrap_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_cin_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_client_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_ftlib_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_gameshared_q__arch.h \
pkgsrc/games/warsow/patches/patch-source_source_gameshared_q__shared.c \
pkgsrc/games/warsow/patches/patch-source_source_irc_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_ref__gl_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_ref__gl_qgl.h \
pkgsrc/games/warsow/patches/patch-source_source_ref__gl_r__glimp.h \
pkgsrc/games/warsow/patches/patch-source_source_server_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_snd__openal_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_snd__openal_qal.c \
pkgsrc/games/warsow/patches/patch-source_source_snd__qf_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_tv__server_CMakeLists.txt \
pkgsrc/games/warsow/patches/patch-source_source_unix_unix__fs.c \
pkgsrc/games/warsow/patches/patch-source_source_unix_unix__net.c
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.558 pkgsrc/games/Makefile:1.559
--- pkgsrc/games/Makefile:1.558 Sun Mar 9 11:16:39 2025
+++ pkgsrc/games/Makefile Mon Sep 29 13:31:27 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.558 2025/03/09 11:16:39 wiz Exp $
+# $NetBSD: Makefile,v 1.559 2025/09/29 13:31:27 nia Exp $
#
COMMENT= Games
@@ -439,6 +439,7 @@ SUBDIR+= vms-empire
SUBDIR+= vvvvvv
SUBDIR+= wargames
SUBDIR+= warmux
+SUBDIR+= warsow
SUBDIR+= warzone2100
SUBDIR+= wesnoth
SUBDIR+= widelands
Added files:
Index: pkgsrc/games/warsow/DESCR
diff -u /dev/null pkgsrc/games/warsow/DESCR:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/DESCR Mon Sep 29 13:31:28 2025
@@ -0,0 +1,10 @@
+Completely free fast-paced first-person shooter.
+
+Like a true cyberathlete you jump, dash, dodge, and walljump your way through
+the game. Grab power-ups before your enemy does, plant a bomb before anyone
+sees you, and steal the enemy's flag before they know what is going on!
+
+Our goal is to offer a fast and fun competitive first-person shooter without
+hard graphical violence - Warsow has no blood or guts flying around. Red
+circles instead of blood indicate hits and colored triangles replace guts
+as gib effects.
Index: pkgsrc/games/warsow/Makefile
diff -u /dev/null pkgsrc/games/warsow/Makefile:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/Makefile Mon Sep 29 13:31:28 2025
@@ -0,0 +1,86 @@
+# $NetBSD: Makefile,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+WARSOW_VER= 2.1.2
+WARSOW_SDK= warsow_21_sdk
+DISTFILES= ${WARSOW_SDK}.tar.gz
+DISTFILES+= warsow-${WARSOW_VER}.tar.gz
+PKGNAME= warsow-${WARSOW_VER}
+CATEGORIES= games
+MASTER_SITES= http://warsow.net/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.warsow.net/
+COMMENT= Fast-paced first-person shooter
+LICENSE= cc-by-sa-v4.0 AND gnu-gpl-v2
+
+WRKSRC= ${WRKDIR}/${WARSOW_SDK}
+CONFIGURE_DIR= source/source
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= pkg-config gmake pax
+
+# see source/source/game/CMakeLists.txt
+USE_CXX_FEATURES+= c++11
+
+CMAKE_CONFIGURE_ARGS+= -DQFUSION_GAME=Warsow
+
+CFLAGS.NetBSD+= -D_NETBSD_SOURCE=1
+
+.include "../../mk/bsd.prefs.mk"
+
+WARSOW_ARCH= ${MACHINE_ARCH}
+
+PLIST_SUBST+= WARSOW_ARCH=${WARSOW_ARCH}
+
+CHECK_PORTABILITY_SKIP+= source/libsrcs/*
+CHECK_PORTABILITY_SKIP+= gfx/*
+CHECK_PORTABILITY_SKIP+= maps/*
+CHECK_PORTABILITY_SKIP+= models/*
+CHECK_PORTABILITY_SKIP+= textures/*
+
+INSTALLATION_DIRS+= bin lib/warsow/basewsw
+INSTALLATION_DIRS+= share/applications
+INSTALLATION_DIRS+= share/icons/hicolor/48x48/apps
+INSTALLATION_DIRS+= share/icons/hicolor/72x72/apps
+INSTALLATION_DIRS+= share/icons/hicolor/96x96/apps
+INSTALLATION_DIRS+= share/icons/hicolor/192x192/apps
+
+WARSOW_ICON_PATH= ${WRKSRC}/source/platforms/android/projects/qfusion/res
+
+pre-configure:
+ ${SED} -e 's,@PREFIX@,${PREFIX},g' \
+ -e 's,@WARSOW_ARCH@,${WARSOW_ARCH},g' \
+ < ${FILESDIR}/warsow.sh.in > \
+ ${WRKDIR}/warsow
+
+do-install:
+ cd ${WRKSRC}/source/source/build && \
+ ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/lib/warsow
+ cd ${WRKDIR}/warsow-${PKGVERSION_NOREV}/basewsw && \
+ ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/lib/warsow/basewsw
+ ${INSTALL_SCRIPT} ${WRKDIR}/warsow \
+ ${DESTDIR}${PREFIX}/bin/warsow
+ ${INSTALL_DATA} ${WARSOW_ICON_PATH}/mipmap-mdpi/ic_launcher.png \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/warsow.png
+ ${INSTALL_DATA} ${WARSOW_ICON_PATH}/mipmap-hdpi/ic_launcher.png \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/72x72/apps/warsow.png
+ ${INSTALL_DATA} ${WARSOW_ICON_PATH}/mipmap-xhdpi/ic_launcher.png \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/96x96/apps/warsow.png
+ ${INSTALL_DATA} ${WARSOW_ICON_PATH}/mipmap-xxxhdpi/ic_launcher.png \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/192x192/apps/warsow.png
+ ${INSTALL_DATA} ${FILESDIR}/warsow.desktop \
+ ${DESTDIR}${PREFIX}/share/applications/warsow.desktop
+
+.include "../../devel/cmake/build.mk"
+.include "../../audio/openal-soft/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../multimedia/libogg/buildlink3.mk"
+.include "../../multimedia/libtheora/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/games/warsow/PLIST
diff -u /dev/null pkgsrc/games/warsow/PLIST:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/PLIST Mon Sep 29 13:31:28 2025
@@ -0,0 +1,169 @@
+@comment $NetBSD: PLIST,v 1.1 2025/09/29 13:31:28 nia Exp $
+bin/warsow
+lib/warsow/basewsw/configs/server/gametypes/bomb.cfg
+lib/warsow/basewsw/configs/server/gametypes/ca.cfg
+lib/warsow/basewsw/configs/server/gametypes/ctf.cfg
+lib/warsow/basewsw/configs/server/gametypes/ctftactics.cfg
+lib/warsow/basewsw/configs/server/gametypes/da.cfg
+lib/warsow/basewsw/configs/server/gametypes/dm.cfg
+lib/warsow/basewsw/configs/server/gametypes/duel.cfg
+lib/warsow/basewsw/configs/server/gametypes/ffa.cfg
+lib/warsow/basewsw/configs/server/gametypes/headhunt.cfg
+lib/warsow/basewsw/configs/server/gametypes/race.cfg
+lib/warsow/basewsw/configs/server/gametypes/tdm.cfg
+lib/warsow/basewsw/configs/server/gametypes/tutorial.cfg
+lib/warsow/basewsw/configs/timer/bs/0x.cfg
+lib/warsow/basewsw/configs/timer/bs/1x.cfg
+lib/warsow/basewsw/configs/timer/bs/2x.cfg
+lib/warsow/basewsw/configs/timer/bs/3x.cfg
+lib/warsow/basewsw/configs/timer/bs/4x.cfg
+lib/warsow/basewsw/configs/timer/bs/5x.cfg
+lib/warsow/basewsw/configs/timer/core.cfg
+lib/warsow/basewsw/configs/timer/quad/0x.cfg
+lib/warsow/basewsw/configs/timer/quad/1x.cfg
+lib/warsow/basewsw/configs/timer/quad/2x.cfg
+lib/warsow/basewsw/configs/timer/quad/3x.cfg
+lib/warsow/basewsw/configs/timer/quad/4x.cfg
+lib/warsow/basewsw/configs/timer/quad/5x.cfg
+lib/warsow/basewsw/configs/timer/ra/0x.cfg
+lib/warsow/basewsw/configs/timer/ra/1x.cfg
+lib/warsow/basewsw/configs/timer/ra/2x.cfg
+lib/warsow/basewsw/configs/timer/ra/3x.cfg
+lib/warsow/basewsw/configs/timer/ra/4x.cfg
+lib/warsow/basewsw/configs/timer/ra/5x.cfg
+lib/warsow/basewsw/configs/timer/timerconfig.cfg
+lib/warsow/basewsw/configs/timer/ya/0x.cfg
+lib/warsow/basewsw/configs/timer/ya/1x.cfg
+lib/warsow/basewsw/configs/timer/ya/2x.cfg
+lib/warsow/basewsw/configs/timer/ya/3x.cfg
+lib/warsow/basewsw/configs/timer/ya/4x.cfg
+lib/warsow/basewsw/configs/timer/ya/5x.cfg
+lib/warsow/basewsw/configs/timer/ya2/0x.cfg
+lib/warsow/basewsw/configs/timer/ya2/1x.cfg
+lib/warsow/basewsw/configs/timer/ya2/2x.cfg
+lib/warsow/basewsw/configs/timer/ya2/3x.cfg
+lib/warsow/basewsw/configs/timer/ya2/4x.cfg
+lib/warsow/basewsw/configs/timer/ya2/5x.cfg
+lib/warsow/basewsw/configs/ultralow.cfg
+lib/warsow/basewsw/data0_000_nonfree_21.pk3
+lib/warsow/basewsw/data0_000_nonfree_21pure.pk3
+lib/warsow/basewsw/data0_21.pk3
+lib/warsow/basewsw/data0_21pure.pk3
+lib/warsow/basewsw/data1_21pure.pk3
+lib/warsow/basewsw/data2_21pure.pk3
+lib/warsow/basewsw/dedicated_autoexec.cfg
+lib/warsow/basewsw/default.cfg
+lib/warsow/basewsw/default_binds_gamepad.cfg
+lib/warsow/basewsw/default_binds_kbmouse.cfg
+lib/warsow/basewsw/editortextures.pk3
+lib/warsow/basewsw/libcgame_${WARSOW_ARCH}.so
+lib/warsow/basewsw/libgame_${WARSOW_ARCH}.so
+lib/warsow/basewsw/map_ui.pk3
+lib/warsow/basewsw/map_wamphi1.pk3
+lib/warsow/basewsw/map_wbomb1.pk3
+lib/warsow/basewsw/map_wbomb2.pk3
+lib/warsow/basewsw/map_wbomb3.pk3
+lib/warsow/basewsw/map_wbomb4.pk3
+lib/warsow/basewsw/map_wbomb5.pk3
+lib/warsow/basewsw/map_wbomb6.pk3
+lib/warsow/basewsw/map_wca1.pk3
+lib/warsow/basewsw/map_wctf1.pk3
+lib/warsow/basewsw/map_wctf2.pk3
+lib/warsow/basewsw/map_wctf3.pk3
+lib/warsow/basewsw/map_wctf4.pk3
+lib/warsow/basewsw/map_wctf6.pk3
+lib/warsow/basewsw/map_wda1.pk3
+lib/warsow/basewsw/map_wda2.pk3
+lib/warsow/basewsw/map_wda3.pk3
+lib/warsow/basewsw/map_wda4.pk3
+lib/warsow/basewsw/map_wda5.pk3
+lib/warsow/basewsw/map_wdm1.pk3
+lib/warsow/basewsw/map_wdm10.pk3
+lib/warsow/basewsw/map_wdm11.pk3
+lib/warsow/basewsw/map_wdm12.pk3
+lib/warsow/basewsw/map_wdm13.pk3
+lib/warsow/basewsw/map_wdm14.pk3
+lib/warsow/basewsw/map_wdm15.pk3
+lib/warsow/basewsw/map_wdm16.pk3
+lib/warsow/basewsw/map_wdm17.pk3
+lib/warsow/basewsw/map_wdm18.pk3
+lib/warsow/basewsw/map_wdm19.pk3
+lib/warsow/basewsw/map_wdm2.pk3
+lib/warsow/basewsw/map_wdm4.pk3
+lib/warsow/basewsw/map_wdm5.pk3
+lib/warsow/basewsw/map_wdm6.pk3
+lib/warsow/basewsw/map_wdm7.pk3
+lib/warsow/basewsw/map_wdm9.pk3
+lib/warsow/basewsw/map_wrace1.pk3
+lib/warsow/basewsw/map_wtutorial1.pk3
+lib/warsow/basewsw/models_nate.pk3
+lib/warsow/basewsw/modules_21.pk3
+lib/warsow/basewsw/profiles/contrast.cfg
+lib/warsow/basewsw/profiles/high+.cfg
+lib/warsow/basewsw/profiles/high.cfg
+lib/warsow/basewsw/profiles/low.cfg
+lib/warsow/basewsw/profiles/medium.cfg
+lib/warsow/basewsw/profiles/stream.cfg
+lib/warsow/basewsw/tex_000_nonfree.pk3
+lib/warsow/basewsw/tex_36.pk3
+lib/warsow/basewsw/tex_baxandall.pk3
+lib/warsow/basewsw/tex_billboard.pk3
+lib/warsow/basewsw/tex_blx.pk3
+lib/warsow/basewsw/tex_blxbis.pk3
+lib/warsow/basewsw/tex_boqu.pk3
+lib/warsow/basewsw/tex_boqu2.pk3
+lib/warsow/basewsw/tex_bricks.pk3
+lib/warsow/basewsw/tex_cha0swsw.pk3
+lib/warsow/basewsw/tex_cleansurface.pk3
+lib/warsow/basewsw/tex_concrete.pk3
+lib/warsow/basewsw/tex_concrete_techwalls.pk3
+lib/warsow/basewsw/tex_decals.pk3
+lib/warsow/basewsw/tex_env.pk3
+lib/warsow/basewsw/tex_etr.pk3
+lib/warsow/basewsw/tex_exwsw.pk3
+lib/warsow/basewsw/tex_factory.pk3
+lib/warsow/basewsw/tex_format.pk3
+lib/warsow/basewsw/tex_glass.pk3
+lib/warsow/basewsw/tex_grates.pk3
+lib/warsow/basewsw/tex_hazelh.pk3
+lib/warsow/basewsw/tex_hexagons.pk3
+lib/warsow/basewsw/tex_jewels.pk3
+lib/warsow/basewsw/tex_lights.pk3
+lib/warsow/basewsw/tex_melee.pk3
+lib/warsow/basewsw/tex_metal.pk3
+lib/warsow/basewsw/tex_nature.pk3
+lib/warsow/basewsw/tex_neon.pk3
+lib/warsow/basewsw/tex_noir.pk3
+lib/warsow/basewsw/tex_plastic.pk3
+lib/warsow/basewsw/tex_refly.pk3
+lib/warsow/basewsw/tex_russus.pk3
+lib/warsow/basewsw/tex_scifi_interior.pk3
+lib/warsow/basewsw/tex_sky.pk3
+lib/warsow/basewsw/tex_solidfake.pk3
+lib/warsow/basewsw/tex_supersymmetry.pk3
+lib/warsow/basewsw/tex_terrain.pk3
+lib/warsow/basewsw/tex_tiles.pk3
+lib/warsow/basewsw/tex_window.pk3
+lib/warsow/basewsw/tex_wood.pk3
+lib/warsow/basewsw/tex_wsw_cave1.pk3
+lib/warsow/basewsw/tex_wsw_city1.pk3
+lib/warsow/basewsw/tex_wsw_flareshalos.pk3
+lib/warsow/basewsw/tex_zone_neutre.pk3
+lib/warsow/basewsw/tvserver_autoexec.cfg
+lib/warsow/libs/libangelwrap_${WARSOW_ARCH}.so
+lib/warsow/libs/libcin_${WARSOW_ARCH}.so
+lib/warsow/libs/libftlib_${WARSOW_ARCH}.so
+lib/warsow/libs/libirc_${WARSOW_ARCH}.so
+lib/warsow/libs/libref_gl_${WARSOW_ARCH}.so
+lib/warsow/libs/libsnd_openal_${WARSOW_ARCH}.so
+lib/warsow/libs/libsnd_qf_${WARSOW_ARCH}.so
+lib/warsow/libs/libsteamlib_${WARSOW_ARCH}.so
+lib/warsow/libs/libui_${WARSOW_ARCH}.so
+lib/warsow/warsow.${WARSOW_ARCH}
+lib/warsow/wsw_server.${WARSOW_ARCH}
+lib/warsow/wswtv_server.${WARSOW_ARCH}
+share/applications/warsow.desktop
+share/icons/hicolor/192x192/apps/warsow.png
+share/icons/hicolor/48x48/apps/warsow.png
+share/icons/hicolor/72x72/apps/warsow.png
+share/icons/hicolor/96x96/apps/warsow.png
Index: pkgsrc/games/warsow/distinfo
diff -u /dev/null pkgsrc/games/warsow/distinfo:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/distinfo Mon Sep 29 13:31:28 2025
@@ -0,0 +1,27 @@
+$NetBSD: distinfo,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+BLAKE2s (warsow-2.1.2.tar.gz) = eb5e5f56d2d1a39b74e437086318c5a33e92780e6fcda721d61b71c1951f8038
+SHA512 (warsow-2.1.2.tar.gz) = c26971882c6ddad7e2a2e65c61bc2a327b9690a18b8faeabb23931a3d21a5d34bfac0a27516dfd39898419daaf607f48053754024e6a0ed66cfdccda34134c15
+Size (warsow-2.1.2.tar.gz) = 465567628 bytes
+BLAKE2s (warsow_21_sdk.tar.gz) = 0d86966739912a593586901b546d091b9d6435b67216239836ceac608d520b03
+SHA512 (warsow_21_sdk.tar.gz) = 5b1559280ffb56355a88cfd24899a199c3c76c71f6ea04b2aa66561767b9a9bd1020f41e75cf6488ba8084d20d36a8eccf84e67ec56c1a3596bd7c3c034ea940
+Size (warsow_21_sdk.tar.gz) = 563443012 bytes
+SHA1 (patch-source_libsrcs_angelscript_sdk_angelscript_source_as__config.h) = 3ad8365ac333589c1a353073492ca0b17fdbfeeb
+SHA1 (patch-source_source_CMakeLists.txt) = 78d856bf8fbd8b82486641d7da7cd28276c7900b
+SHA1 (patch-source_source_angelwrap_CMakeLists.txt) = 3f09ec6e3e0e960db0ea2458b8ed17dc6a9f1792
+SHA1 (patch-source_source_cin_CMakeLists.txt) = bbe4fb0abe62062c500e48630ad91c397dcec24c
+SHA1 (patch-source_source_client_CMakeLists.txt) = fa28d0523f5688c1c23f086bf3381c1cc0aa0b06
+SHA1 (patch-source_source_ftlib_CMakeLists.txt) = adfdf3d6dc99cabbdcf39fb4ca06dd5ef5c999ca
+SHA1 (patch-source_source_gameshared_q__arch.h) = c9909899e797ef9851cb71a8f3bf96cf8a049ddb
+SHA1 (patch-source_source_gameshared_q__shared.c) = 62da44bf363034cfd306e233d6596b7ffc11fd09
+SHA1 (patch-source_source_irc_CMakeLists.txt) = 1156a34669ade95fb5351731af809dba056b156b
+SHA1 (patch-source_source_ref__gl_CMakeLists.txt) = 4e1ad4d6472832280899de5a7badf560a56087c7
+SHA1 (patch-source_source_ref__gl_qgl.h) = 6b67d34e0f9274fc839bb96e98302c42ee9c9177
+SHA1 (patch-source_source_ref__gl_r__glimp.h) = 29b54a7aaa4b2b3cb131c0d5bdb54c62debbe009
+SHA1 (patch-source_source_server_CMakeLists.txt) = 2bc204edff681e3beaabe8cbfbe6da8d8e082ffc
+SHA1 (patch-source_source_snd__openal_CMakeLists.txt) = a978ff7d4d29741cdda2d8113edf6a5a463831db
+SHA1 (patch-source_source_snd__openal_qal.c) = 7e378c01ad86962c9d942435d1ef0585dbc24695
+SHA1 (patch-source_source_snd__qf_CMakeLists.txt) = 610b05e4e90a9fb788eb149de3d55dd9ce0afccd
+SHA1 (patch-source_source_tv__server_CMakeLists.txt) = dbe809346be7eae34c856391db2a8d5d29c6c069
+SHA1 (patch-source_source_unix_unix__fs.c) = 1b23faea0671c4889a8541f1423c5c8bd5e51f8b
+SHA1 (patch-source_source_unix_unix__net.c) = b5110b2e336792c1205961d4ae9a15459cecd35f
Index: pkgsrc/games/warsow/files/warsow.desktop
diff -u /dev/null pkgsrc/games/warsow/files/warsow.desktop:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/files/warsow.desktop Mon Sep 29 13:31:28 2025
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=Warsow
+Comment=Fast-paced first-person shooter
+Icon=warsow
+Exec=warsow
+Terminal=false
+Categories=Game;Shooter;
Index: pkgsrc/games/warsow/files/warsow.sh.in
diff -u /dev/null pkgsrc/games/warsow/files/warsow.sh.in:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/files/warsow.sh.in Mon Sep 29 13:31:28 2025
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+basepath="@PREFIX@/lib/warsow"
+
+${basepath}/warsow.@WARSOW_ARCH@ \
+ +set fs_basepath ${basepath} \
+ +set fs_usehomedir 1 "${@}"
Index: pkgsrc/games/warsow/patches/patch-source_libsrcs_angelscript_sdk_angelscript_source_as__config.h
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_libsrcs_angelscript_sdk_angelscript_source_as__config.h:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_libsrcs_angelscript_sdk_angelscript_source_as__config.h Mon Sep 29 13:31:28 2025
@@ -0,0 +1,17 @@
+$NetBSD: patch-source_libsrcs_angelscript_sdk_angelscript_source_as__config.h,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+Add support for NetBSD to angelscript, so that it is not registered
+as a "maximum portable" (heh) platform, which causes math functions
+to not be exposed. Warsow needs the math function.
+
+--- source/libsrcs/angelscript/sdk/angelscript/source/as_config.h.orig 2025-09-29 07:59:16.855149984 +0000
++++ source/libsrcs/angelscript/sdk/angelscript/source/as_config.h
+@@ -872,7 +872,7 @@
+ #endif
+
+ // Free BSD
+- #elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
++ #elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ #define AS_BSD
+ #if (defined(i386) || defined(__i386) || defined(__i386__)) && !defined(__LP64__)
+ #undef COMPLEX_MASK
Index: pkgsrc/games/warsow/patches/patch-source_source_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_CMakeLists.txt Mon Sep 29 13:31:28 2025
@@ -0,0 +1,61 @@
+$NetBSD: patch-source_source_CMakeLists.txt,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+- Change "Linux" to Unix.
+- Ensure that the angelscript target is built as a dependency of
+ angelwrap instead of being a manual target.
+
+--- source/source/CMakeLists.txt.orig 2016-03-26 19:22:10.000000000 +0000
++++ source/source/CMakeLists.txt
+@@ -110,7 +110,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin
+ endif()
+
+ # Linux or mingw specific settings
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR MINGW)
++if (UNIX OR MINGW)
+ # If no build type was specified - use release build settings
+ if (NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release")
+@@ -173,7 +173,7 @@ if (NOT GAME_MODULES_ONLY)
+ find_package(PNG REQUIRED)
+
+ # We need SDL only on non-Windows platforms or when with SDL2-backend
+- if (USE_SDL2 OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
++ if (USE_SDL2 OR UNIX)
+ set(USE_SDL2 1)
+ find_package(SDL2 REQUIRED)
+ endif()
+@@ -183,7 +183,7 @@ if (NOT GAME_MODULES_ONLY)
+ endif()
+ endif()
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR MINGW)
++if (UNIX OR MINGW)
+ # On Linux we build angelscript from source
+ set(ANGELSCRIPT_DIR ${CMAKE_HOME_DIRECTORY}/../libsrcs/angelscript/sdk/angelscript)
+ if (MINGW)
+@@ -200,7 +200,7 @@ else()
+ find_package(Angelscript REQUIRED)
+ endif()
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR MINGW)
++if (UNIX OR MINGW)
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+ STRING(TOLOWER "win32_${QFUSION_WINDOWS_ARCH}.tar.gz" TAR_GZ_NAME)
+ else()
+@@ -239,7 +239,7 @@ if (NOT GAME_MODULES_ONLY)
+ endif()
+ endif()
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") # Do not add 'OR MINGW' here - we need to use suffix-prefix settings from Windows
++if (UNIX)
+ set(CURL_LIBRARY "")
+ add_definitions(-DLIBCURL_RUNTIME)
+
+@@ -275,6 +275,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin
+ endif()
+
+ add_subdirectory(angelwrap)
++add_dependencies(angelwrap angelscript)
+ add_subdirectory(cgame)
+ add_subdirectory(game)
+
Index: pkgsrc/games/warsow/patches/patch-source_source_angelwrap_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_angelwrap_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_angelwrap_CMakeLists.txt Mon Sep 29 13:31:28 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-source_source_angelwrap_CMakeLists.txt,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+- Change "Linux" to Unix.
+
+--- source/source/angelwrap/CMakeLists.txt.orig 2025-09-29 07:40:28.760164935 +0000
++++ source/source/angelwrap/CMakeLists.txt
+@@ -15,7 +15,7 @@ file(GLOB angelwrap_SOURCES
+ "../gameshared/q_*.c"
+ )
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++if (UNIX)
+ set(ANGELWRAP_PLATFORM_LIBRARIES "pthread")
+ else ()
+ set(ANGELWRAP_PLATFORM_LIBRARIES "")
Index: pkgsrc/games/warsow/patches/patch-source_source_cin_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_cin_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_cin_CMakeLists.txt Mon Sep 29 13:31:28 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-source_source_cin_CMakeLists.txt,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+- Change "Linux" to Unix.
+
+--- source/source/cin/CMakeLists.txt.orig 2025-09-29 07:38:57.251760648 +0000
++++ source/source/cin/CMakeLists.txt
+@@ -12,7 +12,7 @@ file(GLOB CIN_SOURCES
+ "../gameshared/q_*.c"
+ )
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++if (UNIX)
+ set(CIN_PLATFORM_LIBRARIES "m")
+ else ()
+ set(CIN_PLATFORM_LIBRARIES "")
Index: pkgsrc/games/warsow/patches/patch-source_source_client_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_client_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_client_CMakeLists.txt Mon Sep 29 13:31:28 2025
@@ -0,0 +1,43 @@
+$NetBSD: patch-source_source_client_CMakeLists.txt,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+- Change "Linux" to Unix.
+- Use CMAKE_DL_LIBS.
+
+--- source/source/client/CMakeLists.txt.orig 2016-03-26 19:22:10.000000000 +0000
++++ source/source/client/CMakeLists.txt
+@@ -2,7 +2,7 @@ project(${QFUSION_CLIENT_NAME})
+
+ include_directories(${ZLIB_INCLUDE_DIR} ${CURL_INCLUDE_DIR})
+
+-if (USE_SDL2 OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
++if (USE_SDL2 OR UNIX)
+ include_directories(${SDL2_INCLUDE_DIR})
+ endif()
+
+@@ -140,7 +140,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin
+ endif()
+ endif()
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++if (UNIX AND NOT APPLE)
+ set(CLIENT_PLATFORM_HEADERS "")
+
+ if (USE_SDL2)
+@@ -162,7 +162,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux"
+ "../sdl/sdl_client.c"
+ )
+
+- set(CLIENT_PLATFORM_LIBRARIES ${SDL2_LIBRARY} "pthread" "m" "dl" "rt")
++ set(CLIENT_PLATFORM_LIBRARIES ${SDL2_LIBRARY} "pthread" "m" ${CMAKE_DL_LIBS} "rt")
+ else()
+ file(GLOB CLIENT_PLATFORM_SOURCES
+ "../unix/unix_fs.c"
+@@ -183,7 +183,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux"
+ "../sdl/sdl_input_joy.c"
+ )
+
+- set(CLIENT_PLATFORM_LIBRARIES ${SDL2_LIBRARY} "pthread" "dl" "m" "X11" "Xi" "Xext" "Xrandr" "rt")
++ set(CLIENT_PLATFORM_LIBRARIES ${SDL2_LIBRARY} "pthread" ${CMAKE_DL_LIBS} "m" "X11" "Xi" "Xext" "Xrandr" "rt")
+ endif()
+ set(CLIENT_BINARY_TYPE "")
+
Index: pkgsrc/games/warsow/patches/patch-source_source_ftlib_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_ftlib_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_ftlib_CMakeLists.txt Mon Sep 29 13:31:28 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-source_source_ftlib_CMakeLists.txt,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+- Change "Linux" to Unix.
+
+--- source/source/ftlib/CMakeLists.txt.orig 2025-09-29 07:40:36.644571315 +0000
++++ source/source/ftlib/CMakeLists.txt
+@@ -12,7 +12,7 @@ file(GLOB FTLIB_SOURCES
+ "../gameshared/q_*.c"
+ )
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++if (UNIX)
+ set(FTLIB_PLATFORM_LIBRARIES "m")
+ else ()
+ set(FTLIB_PLATFORM_LIBRARIES "")
Index: pkgsrc/games/warsow/patches/patch-source_source_gameshared_q__arch.h
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_gameshared_q__arch.h:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_gameshared_q__arch.h Mon Sep 29 13:31:28 2025
@@ -0,0 +1,37 @@
+$NetBSD: patch-source_source_gameshared_q__arch.h,v 1.1 2025/09/29 13:31:28 nia Exp $
+
+- Change "Linux" to Unix.
+- Add support for NetBSD.
+- Do not assume presence of alloca header.
+
+--- source/source/gameshared/q_arch.h.orig 2016-03-26 19:22:10.000000000 +0000
++++ source/source/gameshared/q_arch.h
+@@ -188,7 +188,7 @@ typedef UINT_PTR socket_handle_t;
+
+ //==============================================
+
+-#if defined ( __linux__ ) || defined ( __FreeBSD__ )
++#if defined ( __unix__ ) && !defined ( __APPLE__ )
+
+ #define HAVE_INLINE
+
+@@ -219,6 +219,9 @@ typedef UINT_PTR socket_handle_t;
+ #if defined ( __FreeBSD__ )
+ #define BUILDSTRING "FreeBSD"
+ #define OSNAME "FreeBSD"
++#elif defined ( __NetBSD__ )
++#define BUILDSTRING "NetBSD"
++#define OSNAME "NetBSD"
+ #elif defined ( __ANDROID__ )
+ #define BUILDSTRING "Android"
+ #define OSNAME "Android"
+@@ -277,7 +280,9 @@ typedef UINT_PTR socket_handle_t;
+
+ #define VAR( x ) # x
+
++#if defined(__linux__) || defined(__sun)
+ #include <alloca.h>
++#endif
+
+ // wsw : aiwa : 64bit integers and integer-pointer types
+ typedef int ioctl_param_t;
Index: pkgsrc/games/warsow/patches/patch-source_source_gameshared_q__shared.c
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_gameshared_q__shared.c:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_gameshared_q__shared.c Mon Sep 29 13:31:29 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-source_source_gameshared_q__shared.c,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Avoid a segfault on startup on netbsd-11 via incorrect ctype usage.
+
+--- source/source/gameshared/q_shared.c.orig 2025-09-29 09:27:41.708406069 +0000
++++ source/source/gameshared/q_shared.c
+@@ -1152,7 +1152,7 @@ char *Q_strlwr( char *s )
+ if( s )
+ {
+ for( p = s; *s; s++ )
+- *s = tolower( *s );
++ *s = tolower( (unsigned char)*s );
+ return p;
+ }
+
Index: pkgsrc/games/warsow/patches/patch-source_source_irc_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_irc_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_irc_CMakeLists.txt Mon Sep 29 13:31:29 2025
@@ -0,0 +1,14 @@
+$NetBSD: patch-source_source_irc_CMakeLists.txt,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Change "Linux" to Unix.
+
+--- source/source/irc/CMakeLists.txt.orig 2025-09-29 07:38:47.992557527 +0000
++++ source/source/irc/CMakeLists.txt
+@@ -18,6 +18,6 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Window
+ target_link_libraries(irc PRIVATE "ws2_32.lib")
+ endif()
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++if (UNIX)
+ target_link_libraries(irc PRIVATE "m")
+ endif()
Index: pkgsrc/games/warsow/patches/patch-source_source_ref__gl_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_ref__gl_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_ref__gl_CMakeLists.txt Mon Sep 29 13:31:29 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-source_source_ref__gl_CMakeLists.txt,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Change "Linux" to Unix.
+
+--- source/source/ref_gl/CMakeLists.txt.orig 2025-09-29 07:39:08.208411151 +0000
++++ source/source/ref_gl/CMakeLists.txt
+@@ -44,7 +44,7 @@ else()
+ set(REF_GL_PLATFORM_LIBRARIES "")
+ endif()
+
+- if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++ if (UNIX)
+ file(GLOB REF_GL_PLATFORM_SOURCES
+ "../unix/unix_glw.c"
+ "../unix/unix_qgl.c"
Index: pkgsrc/games/warsow/patches/patch-source_source_ref__gl_qgl.h
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_ref__gl_qgl.h:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_ref__gl_qgl.h Mon Sep 29 13:31:29 2025
@@ -0,0 +1,24 @@
+$NetBSD: patch-source_source_ref__gl_qgl.h,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Add support for more Unix-like platforms.
+
+--- source/source/ref_gl/qgl.h.orig 2016-03-26 19:22:10.000000000 +0000
++++ source/source/ref_gl/qgl.h
+@@ -67,14 +67,14 @@ Foundation, Inc., 59 Temple Place - Suit
+ #include <windows.h>
+ #endif
+ #include <GL/gl.h>
++#ifndef _WIN32
++#include <GL/glx.h>
++#endif
+ #endif
+
+ #if defined (__ANDROID__)
+ #include <GLES2/gl2.h>
+ #include <EGL/egl.h>
+-
+-#elif defined (__linux__) || defined (__FreeBSD__)
+-#include <GL/glx.h>
+ #endif
+
+ #if defined (__MACOSX__)
Index: pkgsrc/games/warsow/patches/patch-source_source_ref__gl_r__glimp.h
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_ref__gl_r__glimp.h:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_ref__gl_r__glimp.h Mon Sep 29 13:31:29 2025
@@ -0,0 +1,44 @@
+$NetBSD: patch-source_source_ref__gl_r__glimp.h,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Add support for more Unix-like platforms.
+
+--- source/source/ref_gl/r_glimp.h.orig 2025-09-29 07:58:13.591522336 +0000
++++ source/source/ref_gl/r_glimp.h
+@@ -35,9 +35,8 @@ Foundation, Inc., 59 Temple Place - Suit
+ #define QGL_GLX_EXT( type, name, params )
+ #define QGL_EGL( type, name, params )
+ #define QGL_EGL_EXT( type, name, params )
+-#endif
+
+-#if defined ( __ANDROID__ )
++#elif defined ( __ANDROID__ )
+ #define QGL_WGL( type, name, params )
+ #define QGL_WGL_EXT( type, name, params )
+ #define QGL_GLX( type, name, params )
+@@ -45,20 +44,19 @@ Foundation, Inc., 59 Temple Place - Suit
+ #define QGL_EGL( type, name, params ) QGL_EXTERN type( APIENTRY * q ## name ) params;
+ #define QGL_EGL_EXT( type, name, params ) QGL_EXTERN type( APIENTRY * q ## name ) params;
+
+-#elif defined ( __linux__ ) || defined ( __FreeBSD__ )
++#elif defined ( __MACOSX__ )
+ #define QGL_WGL( type, name, params )
+ #define QGL_WGL_EXT( type, name, params )
+-#define QGL_GLX( type, name, params ) QGL_EXTERN type( APIENTRY * q ## name ) params;
+-#define QGL_GLX_EXT( type, name, params ) QGL_EXTERN type( APIENTRY * q ## name ) params;
++#define QGL_GLX( type, name, params )
++#define QGL_GLX_EXT( type, name, params )
+ #define QGL_EGL( type, name, params )
+ #define QGL_EGL_EXT( type, name, params )
+-#endif
+
+-#if defined ( __MACOSX__ )
++#else
+ #define QGL_WGL( type, name, params )
+ #define QGL_WGL_EXT( type, name, params )
+-#define QGL_GLX( type, name, params )
+-#define QGL_GLX_EXT( type, name, params )
++#define QGL_GLX( type, name, params ) QGL_EXTERN type( APIENTRY * q ## name ) params;
++#define QGL_GLX_EXT( type, name, params ) QGL_EXTERN type( APIENTRY * q ## name ) params;
+ #define QGL_EGL( type, name, params )
+ #define QGL_EGL_EXT( type, name, params )
+ #endif
Index: pkgsrc/games/warsow/patches/patch-source_source_server_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_server_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_server_CMakeLists.txt Mon Sep 29 13:31:29 2025
@@ -0,0 +1,22 @@
+$NetBSD: patch-source_source_server_CMakeLists.txt,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Use CMAKE_DL_LIBS.
+
+--- source/source/server/CMakeLists.txt.orig 2025-09-29 08:13:44.448432714 +0000
++++ source/source/server/CMakeLists.txt
+@@ -79,7 +79,7 @@ else()
+ "../null/sys_vfs_null.c"
+ )
+
+- set(SERVER_PLATFORM_LIBRARIES "pthread" "dl" "m")
++ set(SERVER_PLATFORM_LIBRARIES "pthread" ${CMAKE_DL_LIBS} "m")
+ set(SERVER_BINARY_TYPE "")
+ endif()
+
+@@ -88,4 +88,4 @@ add_dependencies(${QFUSION_SERVER_NAME}
+ target_link_libraries(${QFUSION_SERVER_NAME} PRIVATE ${CURL_LIBRARY} ${ZLIB_LIBRARY} ${SERVER_PLATFORM_LIBRARIES})
+ qf_set_output_dir(${QFUSION_SERVER_NAME} "")
+
+-set_target_properties(${QFUSION_SERVER_NAME} PROPERTIES COMPILE_DEFINITIONS "DEDICATED_ONLY")
+\ No newline at end of file
++set_target_properties(${QFUSION_SERVER_NAME} PROPERTIES COMPILE_DEFINITIONS "DEDICATED_ONLY")
Index: pkgsrc/games/warsow/patches/patch-source_source_snd__openal_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_snd__openal_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_snd__openal_CMakeLists.txt Mon Sep 29 13:31:29 2025
@@ -0,0 +1,18 @@
+$NetBSD: patch-source_source_snd__openal_CMakeLists.txt,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Change "Linux" to Unix.
+- Use CMAKE_DL_LIBS.
+
+--- source/source/snd_openal/CMakeLists.txt.orig 2025-09-29 07:39:45.630112943 +0000
++++ source/source/snd_openal/CMakeLists.txt
+@@ -18,8 +18,8 @@ file(GLOB SND_OPENAL_SOURCES
+ "../gameshared/q_*.c"
+ )
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+- set(SND_OPENAL_PLATFORM_LIBRARIES "m" "dl")
++if (UNIX)
++ set(SND_OPENAL_PLATFORM_LIBRARIES "m" ${CMAKE_DL_LIBS})
+ else ()
+ set(SND_OPENAL_PLATFORM_LIBRARIES "")
+ endif()
Index: pkgsrc/games/warsow/patches/patch-source_source_snd__openal_qal.c
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_snd__openal_qal.c:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_snd__openal_qal.c Mon Sep 29 13:31:29 2025
@@ -0,0 +1,24 @@
+$NetBSD: patch-source_source_snd__openal_qal.c,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Add support for more Unix-like platforms.
+
+--- source/source/snd_openal/qal.c.orig 2025-09-29 07:57:44.069050118 +0000
++++ source/source/snd_openal/qal.c
+@@ -42,7 +42,7 @@ Foundation, Inc., 51 Franklin St, Fifth
+ #define SYMLOAD( x, y ) GetProcAddress( x, y )
+ #define OBJFREE( x ) FreeLibrary( x )
+
+-#elif defined __linux__ || defined __FreeBSD__ || defined __MACOSX__ || defined __sun
++#elif defined __linux__ || defined __FreeBSD__ || defined __MACOSX__ || defined __sun || defined __unix__
+ #include <dlfcn.h>
+ #define OBJTYPE void *
+ #define OBJLOAD( x ) dlopen( x, RTLD_LAZY | RTLD_GLOBAL )
+@@ -53,7 +53,7 @@ Foundation, Inc., 51 Franklin St, Fifth
+ #error "No lib loading code defined for platform."
+ #endif
+
+-#if defined __linux__ || defined __FreeBSD__ || defined __MACOSX__
++#if defined __linux__ || defined __FreeBSD__ || defined __MACOSX__ || defined __unix__
+ #include <unistd.h>
+ #include <sys/types.h>
+ #endif
Index: pkgsrc/games/warsow/patches/patch-source_source_snd__qf_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_snd__qf_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_snd__qf_CMakeLists.txt Mon Sep 29 13:31:29 2025
@@ -0,0 +1,30 @@
+$NetBSD: patch-source_source_snd__qf_CMakeLists.txt,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Add support for more Unix-like platforms.
+
+--- source/source/snd_qf/CMakeLists.txt.orig 2025-09-29 07:39:25.058997187 +0000
++++ source/source/snd_qf/CMakeLists.txt
+@@ -2,7 +2,7 @@ project(snd_qf)
+
+ include_directories(${VORBIS_INCLUDE_DIR} ${OGG_INCLUDE_DIR} "../snd_common" ".")
+
+-if (USE_SDL2 OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
++if (USE_SDL2 OR UNIX)
+ include_directories(${SDL2_INCLUDE_DIR})
+ endif()
+
+@@ -18,12 +18,12 @@ file(GLOB SND_QF_SOURCES
+ "../gameshared/q_*.c"
+ )
+
+-if (USE_SDL2 OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
++if (USE_SDL2 OR UNIX)
+ file(GLOB SND_QF_PLATFORM_SOURCES
+ "../sdl/sdl_snd.c"
+ )
+
+- if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++ if (UNIX)
+ set(SND_QF_PLATFORM_LIBRARIES ${SDL2_LIBRARY} "m")
+ else()
+ set(SND_QF_PLATFORM_LIBRARIES ${SDL2_LIBRARY})
Index: pkgsrc/games/warsow/patches/patch-source_source_tv__server_CMakeLists.txt
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_tv__server_CMakeLists.txt:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_tv__server_CMakeLists.txt Mon Sep 29 13:31:29 2025
@@ -0,0 +1,22 @@
+$NetBSD: patch-source_source_tv__server_CMakeLists.txt,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Use CMAKE_DL_LIBS.
+
+--- source/source/tv_server/CMakeLists.txt.orig 2025-09-29 08:13:52.605866306 +0000
++++ source/source/tv_server/CMakeLists.txt
+@@ -74,7 +74,7 @@ else()
+ "../null/sys_vfs_null.c"
+ )
+
+- set(TV_SERVER_PLATFORM_LIBRARIES "pthread" "dl" "m")
++ set(TV_SERVER_PLATFORM_LIBRARIES "pthread" ${CMAKE_DL_LIBS} "m")
+ set(TV_SERVER_BINARY_TYPE "")
+ endif()
+
+@@ -82,4 +82,4 @@ add_executable(${QFUSION_TVSERVER_NAME}
+ target_link_libraries(${QFUSION_TVSERVER_NAME} PRIVATE ${CURL_LIBRARY} ${ZLIB_LIBRARY} ${TV_SERVER_PLATFORM_LIBRARIES})
+ qf_set_output_dir(${QFUSION_TVSERVER_NAME} "")
+
+-set_target_properties(${QFUSION_TVSERVER_NAME} PROPERTIES COMPILE_DEFINITIONS "DEDICATED_ONLY;TV_SERVER_ONLY;TV_MODULE_HARD_LINKED")
+\ No newline at end of file
++set_target_properties(${QFUSION_TVSERVER_NAME} PROPERTIES COMPILE_DEFINITIONS "DEDICATED_ONLY;TV_SERVER_ONLY;TV_MODULE_HARD_LINKED")
Index: pkgsrc/games/warsow/patches/patch-source_source_unix_unix__fs.c
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_unix_unix__fs.c:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_unix_unix__fs.c Mon Sep 29 13:31:29 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-source_source_unix_unix__fs.c,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Use portable readdir functions.
+
+--- source/source/unix/unix_fs.c.orig 2025-09-29 08:11:09.741846724 +0000
++++ source/source/unix/unix_fs.c
+@@ -38,7 +38,7 @@ Foundation, Inc., 59 Temple Place - Suit
+ #endif
+
+ // Mac OS X and FreeBSD don't know the readdir64 and dirent64
+-#if ( defined (__FreeBSD__) || defined (__ANDROID__) || !defined(_LARGEFILE64_SOURCE) )
++#if !defined(__linux__)
+ #define readdir64 readdir
+ #define dirent64 dirent
+ #endif
Index: pkgsrc/games/warsow/patches/patch-source_source_unix_unix__net.c
diff -u /dev/null pkgsrc/games/warsow/patches/patch-source_source_unix_unix__net.c:1.1
--- /dev/null Mon Sep 29 13:31:29 2025
+++ pkgsrc/games/warsow/patches/patch-source_source_unix_unix__net.c Mon Sep 29 13:31:29 2025
@@ -0,0 +1,33 @@
+$NetBSD: patch-source_source_unix_unix__net.c,v 1.1 2025/09/29 13:31:29 nia Exp $
+
+- Do not try to use sendfile on NetBSD.
+
+--- source/source/unix/unix_net.c.orig 2025-09-29 08:03:23.877952684 +0000
++++ source/source/unix/unix_net.c
+@@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suit
+ #include <sys/param.h>
+ #include <sys/ioctl.h>
+ #include <sys/uio.h>
+-#if !defined ( __APPLE__ )
++#if !defined ( __APPLE__ ) && !defined(__NetBSD__)
+ #include <sys/sendfile.h>
+ #endif
+ #include <errno.h>
+@@ -80,6 +80,9 @@ int Sys_NET_SocketIoctl( socket_handle_t
+ */
+ int64_t Sys_NET_SendFile( socket_handle_t handle, int fileno, size_t offset, size_t count )
+ {
++#if defined ( __NetBSD__ )
++ return -1;
++#else
+ off_t len;
+ off_t _offset = offset;
+ #if defined ( __APPLE__ )
+@@ -94,6 +97,7 @@ int64_t Sys_NET_SendFile( socket_handle_
+ return result;
+ }
+ return len;
++#endif
+ }
+
+ //===================================================================
Home |
Main Index |
Thread Index |
Old Index