summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorkamil <kamil>2016-07-26 20:05:17 +0000
committerkamil <kamil>2016-07-26 20:05:17 +0000
commit86195dbc825e76283a7a7e081af8d2e97a764641 (patch)
treede5ccc9ccc0f84dcca703aba2b7662a2ae0547bf /games
parent2d409f6e7d83135358b281ded8dc4d4c82d95998 (diff)
downloadpkgsrc-86195dbc825e76283a7a7e081af8d2e97a764641.tar.gz
Import wordwarvi-1.0.2 as games/wordwarvi
wordwarvi, or "Word War vi", is an old school '80's style side scrolling space shoot'em up video game. You pilot your "vi-per" craft through core memory, trying to avoid OS defenses and wipe out the memory hogging emacs processes and rescue lost vi-per pilots (.swp files) stranded from crashed vi sessions before heading through the socket to the next node in the cluster to do it all over again. Originally packaged in pkgsrc-wip by: - Thomas Klausner - Aleksej Saushev and - myself.
Diffstat (limited to 'games')
-rw-r--r--games/wordwarvi/DESCR8
-rw-r--r--games/wordwarvi/Makefile22
-rw-r--r--games/wordwarvi/PLIST64
-rw-r--r--games/wordwarvi/distinfo8
-rw-r--r--games/wordwarvi/patches/patch-Makefile19
-rw-r--r--games/wordwarvi/patches/patch-wordwarvi.c32
6 files changed, 153 insertions, 0 deletions
diff --git a/games/wordwarvi/DESCR b/games/wordwarvi/DESCR
new file mode 100644
index 00000000000..b14e3caade8
--- /dev/null
+++ b/games/wordwarvi/DESCR
@@ -0,0 +1,8 @@
+wordwarvi, or "Word War vi", is an old school '80's style side
+scrolling space shoot'em up video game.
+
+You pilot your "vi-per" craft through core memory, trying to avoid
+OS defenses and wipe out the memory hogging emacs processes and
+rescue lost vi-per pilots (.swp files) stranded from crashed vi
+sessions before heading through the socket to the next node in the
+cluster to do it all over again.
diff --git a/games/wordwarvi/Makefile b/games/wordwarvi/Makefile
new file mode 100644
index 00000000000..7a26cf890a9
--- /dev/null
+++ b/games/wordwarvi/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2016/07/26 20:05:17 kamil Exp $
+#
+
+DISTNAME= wordwarvi-1.0.2
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_GITHUB:=smcameron/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://smcameron.github.io/wordwarvi/
+COMMENT= Side-scrolling shoot 'em up '80s style arcade game
+LICENSE= gnu-gpl-v2
+
+USE_TOOLS+= gmake pkg-config
+
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}
+
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../audio/portaudio-devel/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/wordwarvi/PLIST b/games/wordwarvi/PLIST
new file mode 100644
index 00000000000..0035e406b01
--- /dev/null
+++ b/games/wordwarvi/PLIST
@@ -0,0 +1,64 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/26 20:05:17 kamil Exp $
+bin/wordwarvi
+man/man6/wordwarvi.6
+share/wordwarvi/sounds/UseTheSource.ogg
+share/wordwarvi/sounds/aaaah_it_burns.ogg
+share/wordwarvi/sounds/abducted.ogg
+share/wordwarvi/sounds/big_explosion.ogg
+share/wordwarvi/sounds/bodyslam.ogg
+share/wordwarvi/sounds/bombexplosion.ogg
+share/wordwarvi/sounds/clang.ogg
+share/wordwarvi/sounds/destiny_facedown.ogg
+share/wordwarvi/sounds/dtox3monomix.ogg
+share/wordwarvi/sounds/fallingscreamhi.ogg
+share/wordwarvi/sounds/flak_gun_sound.ogg
+share/wordwarvi/sounds/flak_hit.ogg
+share/wordwarvi/sounds/gravity_bomb.ogg
+share/wordwarvi/sounds/gunwheel_sound.ogg
+share/wordwarvi/sounds/help_down_here.ogg
+share/wordwarvi/sounds/help_up_here.ogg
+share/wordwarvi/sounds/highscoremusic.ogg
+share/wordwarvi/sounds/hohoho.ogg
+share/wordwarvi/sounds/hohoho_merry_xmas.ogg
+share/wordwarvi/sounds/jetwash.ogg
+share/wordwarvi/sounds/lucky-holiday-cornbread-stuffing-mono.ogg
+share/wordwarvi/sounds/lucky13-steve-mono-mix.ogg
+share/wordwarvi/sounds/metalbang1.ogg
+share/wordwarvi/sounds/metalbang2.ogg
+share/wordwarvi/sounds/metalbang3.ogg
+share/wordwarvi/sounds/metalbang4.ogg
+share/wordwarvi/sounds/metalbang5.ogg
+share/wordwarvi/sounds/metalbang6.ogg
+share/wordwarvi/sounds/metalbang7.ogg
+share/wordwarvi/sounds/metalbang8.ogg
+share/wordwarvi/sounds/missile_alarm.ogg
+share/wordwarvi/sounds/missile_alarm_2.ogg
+share/wordwarvi/sounds/missile_explosion.ogg
+share/wordwarvi/sounds/missile_launch_2.ogg
+share/wordwarvi/sounds/new_ground_smack.ogg
+share/wordwarvi/sounds/nice_bank_shot.ogg
+share/wordwarvi/sounds/ooooof.ogg
+share/wordwarvi/sounds/ow_my_spine.ogg
+share/wordwarvi/sounds/radar_fail.ogg
+share/wordwarvi/sounds/radar_ready.ogg
+share/wordwarvi/sounds/rocket_exhaust_1.ogg
+share/wordwarvi/sounds/stonebang1.ogg
+share/wordwarvi/sounds/stonebang2.ogg
+share/wordwarvi/sounds/stonebang3.ogg
+share/wordwarvi/sounds/stonebang4.ogg
+share/wordwarvi/sounds/stonebang5.ogg
+share/wordwarvi/sounds/stonebang6.ogg
+share/wordwarvi/sounds/stonebang7.ogg
+share/wordwarvi/sounds/stonebang8.ogg
+share/wordwarvi/sounds/synthetic_bomb.ogg
+share/wordwarvi/sounds/synthetic_gunshot_2.ogg
+share/wordwarvi/sounds/synthetic_laser.ogg
+share/wordwarvi/sounds/synthetic_thunder_short.ogg
+share/wordwarvi/sounds/tesla_tower.ogg
+share/wordwarvi/sounds/timpani_boing.ogg
+share/wordwarvi/sounds/toyota_celica_cardoor_sample.ogg
+share/wordwarvi/sounds/us_quarter.ogg
+share/wordwarvi/sounds/volcano_eruption.ogg
+share/wordwarvi/sounds/woohoo.ogg
+share/wordwarvi/sounds/yay_santa.ogg
+share/wordwarvi/sounds/zzzt.ogg
diff --git a/games/wordwarvi/distinfo b/games/wordwarvi/distinfo
new file mode 100644
index 00000000000..e0414c80cc4
--- /dev/null
+++ b/games/wordwarvi/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2016/07/26 20:05:17 kamil Exp $
+
+SHA1 (wordwarvi-1.0.2.tar.gz) = 3db0e404113d0377c358083d78ee21645ab654b6
+RMD160 (wordwarvi-1.0.2.tar.gz) = ab4a0442384610db3fd9d598c183638949612546
+SHA512 (wordwarvi-1.0.2.tar.gz) = 231e02b339dc1f73345113ee37ddcd4fc5110e6e4402b46aee60a969c6b554cc59dc4bb6389f2537d1e418489831f84580fadb05df42ebeede7b56945389b86d
+Size (wordwarvi-1.0.2.tar.gz) = 8814650 bytes
+SHA1 (patch-Makefile) = 6bfbabe7d925e0332c482ba5d4d7911e66f22698
+SHA1 (patch-wordwarvi.c) = 2317eaa5f8428b4831182b55723f81971c48c34c
diff --git a/games/wordwarvi/patches/patch-Makefile b/games/wordwarvi/patches/patch-Makefile
new file mode 100644
index 00000000000..f3992f0c7ee
--- /dev/null
+++ b/games/wordwarvi/patches/patch-Makefile
@@ -0,0 +1,19 @@
+$NetBSD: patch-Makefile,v 1.1 2016/07/26 20:05:17 kamil Exp $
+
+Install executable into ${PREFIX}/bin
+
+--- Makefile.orig 2016-03-11 15:16:11.000000000 +0000
++++ Makefile
+@@ -116,10 +116,10 @@ wordwarvi.6.gz: wordwarvi.6
+ gzip -c wordwarvi.6 > wordwarvi.6.gz
+
+ install: wordwarvi wordwarvi.6.gz
+- mkdir -p $(DESTDIR)$(PREFIX)/games
++ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ mkdir -p $(DESTDIR)$(DATADIR)/sounds
+ mkdir -p $(DESTDIR)$(MANPAGEDIR)
+- install -p -m 755 wordwarvi $(DESTDIR)$(PREFIX)/games
++ install -p -m 755 wordwarvi $(DESTDIR)$(PREFIX)/bin
+ install -p -m 644 sounds/*.ogg $(DESTDIR)$(DATADIR)/sounds
+ install -p -m 644 wordwarvi.6.gz $(DESTDIR)$(MANPAGEDIR)
+
diff --git a/games/wordwarvi/patches/patch-wordwarvi.c b/games/wordwarvi/patches/patch-wordwarvi.c
new file mode 100644
index 00000000000..e1813b58ae4
--- /dev/null
+++ b/games/wordwarvi/patches/patch-wordwarvi.c
@@ -0,0 +1,32 @@
+$NetBSD: patch-wordwarvi.c,v 1.1 2016/07/26 20:05:17 kamil Exp $
+
+Walk-around memory corruption (double-free(3)?)
+
+Use standard getopt_long(3) - fixes NetBSD.
+
+--- wordwarvi.c.orig 2016-03-11 15:16:11.000000000 +0000
++++ wordwarvi.c
+@@ -11559,12 +11559,14 @@ void start_level()
+ srandom(level.random_seed);
+ generate_terrain(&terrain);
+
++#if 0
+ add_buildings(&terrain);/* Some FreeBSD users report that */
+ /*add_buildings() causes crashes. */
+ /* Commenting this out on FreeBSD */
+ /* may help, but, no buildings. */
+ /* I've looked at the code, but */
+ /* don't see anything wrong with it. */
++#endif
+ add_humanoids(&terrain);
+ add_bridges(&terrain);
+ add_socket(&terrain);
+@@ -13967,7 +13969,7 @@ int main(int argc, char *argv[])
+
+ while (1) {
+ int rc, n;
+- rc = getopt_long_only(argc, argv, "", wordwarvi_options, &opt);
++ rc = getopt_long(argc, argv, "", wordwarvi_options, &opt);
+ if (rc == -1)
+ break;
+ switch (rc) {