summaryrefslogtreecommitdiff
path: root/games/woof
diff options
context:
space:
mode:
Diffstat (limited to 'games/woof')
-rw-r--r--games/woof/DESCR5
-rw-r--r--games/woof/Makefile48
-rw-r--r--games/woof/PLIST38
-rw-r--r--games/woof/distinfo7
-rw-r--r--games/woof/files/INSTALL.pkgsrc6
-rw-r--r--games/woof/patches/patch-Source_d__iwad.c16
6 files changed, 120 insertions, 0 deletions
diff --git a/games/woof/DESCR b/games/woof/DESCR
new file mode 100644
index 00000000000..f7b7ac9b66d
--- /dev/null
+++ b/games/woof/DESCR
@@ -0,0 +1,5 @@
+Woof! is a continuation of Lee Killough's Doom source port MBF targeted
+at modern systems.
+
+MBF stands for "Marine's Best Friend" and is regarded by many as the
+successor of the Boom source port by TeamTNT.
diff --git a/games/woof/Makefile b/games/woof/Makefile
new file mode 100644
index 00000000000..4bbdd0eef7f
--- /dev/null
+++ b/games/woof/Makefile
@@ -0,0 +1,48 @@
+# $NetBSD: Makefile,v 1.1 2020/05/11 10:46:12 micha Exp $
+
+DISTNAME= woof_1.2.1
+PKGNAME= ${DISTNAME:S/_/-/}
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_GITHUB:=fabiangreffrath/}
+GITHUB_TAG= ${DISTNAME}
+EXTRACT_USING= bsdtar
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/fabiangreffrath/woof/
+COMMENT= Continuation of Lee Killough's Doom source port MBF
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c99
+USE_CMAKE= yes
+CMAKE_ARGS+= -G "Unix Makefiles" ..
+CONFIGURE_DIRS= build
+WRKSRC= ${WRKDIR}/woof-${DISTNAME}
+
+# DOOMWADDIR is intentionally shared with other Doom packages
+DOOMWADDIR= share/doom
+
+# Add DOOMWADDIR to search path
+SUBST_CLASSES+= waddir
+SUBST_STAGE.waddir= pre-configure
+SUBST_MESSAGE.waddir= Preparing d_iwad.c file ...
+SUBST_FILES.waddir= Source/d_iwad.c
+SUBST_SED.waddir= -e 's,PKGSRC_PREFIX,"${PREFIX}",'
+SUBST_SED.waddir+= -e 's,PKGSRC_DOOMWADDIR,"/${DOOMWADDIR}",'
+
+pre-configure:
+ cd ${WRKSRC}; mkdir build
+ ${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKDIR}
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/INSTALL.pkgsrc \
+ ${DESTDIR}${PREFIX}/share/doc/woof/INSTALL.pkgsrc
+
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../net/SDL2_net/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/woof/PLIST b/games/woof/PLIST
new file mode 100644
index 00000000000..1a954e6b6a1
--- /dev/null
+++ b/games/woof/PLIST
@@ -0,0 +1,38 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/11 10:46:12 micha Exp $
+bin/woof
+share/applications/woof.desktop
+share/doc/woof/COPYING
+share/doc/woof/INSTALL.pkgsrc
+share/doc/woof/README.md
+share/doc/woof/boom.txt
+share/doc/woof/boomdeh.txt
+share/doc/woof/boomref.txt
+share/doc/woof/dckboom.txt
+share/doc/woof/examples/battle.wad
+share/doc/woof/examples/dogfly.deh
+share/doc/woof/examples/donut.txt
+share/doc/woof/examples/donut.wad
+share/doc/woof/examples/fireplas.deh
+share/doc/woof/examples/fly.deh
+share/doc/woof/examples/friend.deh
+share/doc/woof/examples/grenade.deh
+share/doc/woof/examples/hockey.wad
+share/doc/woof/examples/mbfedit.txt
+share/doc/woof/examples/mbfedit.wad
+share/doc/woof/examples/mine.deh
+share/doc/woof/examples/mushroom.deh
+share/doc/woof/examples/playbud.deh
+share/doc/woof/examples/possbud.deh
+share/doc/woof/examples/sky.wad
+share/doc/woof/examples/touchy.deh
+share/doc/woof/mbf-bugs.html
+share/doc/woof/mbf.txt
+share/doc/woof/mbfedit.txt
+share/doc/woof/mbffaq.txt
+share/doc/woof/options.txt
+share/doc/woof/winmbf02.txt
+share/doc/woof/winmbf02s.txt
+share/icons/hicolor/128x128/apps/woof.png
+share/woof/betagrph.wad
+share/woof/betalevl.wad
+share/woof/watermap.wad
diff --git a/games/woof/distinfo b/games/woof/distinfo
new file mode 100644
index 00000000000..040330735da
--- /dev/null
+++ b/games/woof/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/05/11 10:46:12 micha Exp $
+
+SHA1 (woof_1.2.1.tar.gz) = 9eecbdfa5a5cdb9a01f3e54f57247ed9ac933668
+RMD160 (woof_1.2.1.tar.gz) = 7f9eb2a2747a2ef930543a07c2dadc9982a1b92b
+SHA512 (woof_1.2.1.tar.gz) = 9ac0e723290fd098ae8c120ab40f205ce7cde85ee56edc136460612b96ae20008770ba1e3b9a19d12365109d170cca52d19ed5348debd565557cca19948c03af
+Size (woof_1.2.1.tar.gz) = 1875956 bytes
+SHA1 (patch-Source_d__iwad.c) = fc897f508e31653495bfed26152a7e6d70021089
diff --git a/games/woof/files/INSTALL.pkgsrc b/games/woof/files/INSTALL.pkgsrc
new file mode 100644
index 00000000000..0d564bb82a3
--- /dev/null
+++ b/games/woof/files/INSTALL.pkgsrc
@@ -0,0 +1,6 @@
+The location of the woof WAD directory has been set to:
+
+ DOOMWADDIR
+
+This is the pkgsrc standard Doom WAD directory location (shared with other
+Doom packages).
diff --git a/games/woof/patches/patch-Source_d__iwad.c b/games/woof/patches/patch-Source_d__iwad.c
new file mode 100644
index 00000000000..cf841792413
--- /dev/null
+++ b/games/woof/patches/patch-Source_d__iwad.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-Source_d__iwad.c,v 1.1 2020/05/11 10:46:12 micha Exp $
+
+Add pkgsrc ${PREFIX}/share/doom to WAD file search path.
+
+--- Source/d_iwad.c.orig 2020-04-14 06:39:44.000000000 +0000
++++ Source/d_iwad.c
+@@ -442,6 +442,9 @@ static void AddXdgDirs(void)
+ env = "/usr/local/share:/usr/share";
+ }
+
++ // Add pkgsrc location for WADs
++ AddIWADPath(PKGSRC_PREFIX, PKGSRC_DOOMWADDIR);
++
+ // The "standard" location for IWADs on Unix that is supported by most
+ // source ports is /usr/share/games/doom - we support this through the
+ // XDG_DATA_DIRS mechanism, through which it can be overridden.