summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/glaxium/Makefile21
-rw-r--r--games/glaxium/distinfo4
-rw-r--r--games/glaxium/patches/patch-fighter2.cpp15
-rw-r--r--games/glaxium/patches/patch-variables.cpp14
4 files changed, 47 insertions, 7 deletions
diff --git a/games/glaxium/Makefile b/games/glaxium/Makefile
index c4f3c9346b2..b8cbc8155b0 100644
--- a/games/glaxium/Makefile
+++ b/games/glaxium/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.24 2015/04/25 14:22:55 tnn Exp $
+# $NetBSD: Makefile,v 1.25 2016/12/12 06:21:47 dholland Exp $
#
DISTNAME= glaxium_0.5
PKGNAME= ${DISTNAME:S/_/-/}
-PKGREVISION= 10
+PKGREVISION= 11
CATEGORIES= games
MASTER_SITES= http://xhosxe.free.fr/glaxium/
@@ -24,10 +24,19 @@ SUBST_FILES.bill= conf.h
SUBST_SED.bill= -e "s,share\/games,share,g"
SUBST_MESSAGE.bill= Fixing data path.
-INSTALLATION_DIRS+= bin
-INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
- exec_prefix=${DESTDIR}${PREFIX} \
- mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man6 \
+ share/glaxium/samples share/glaxium/textures
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/glaxium ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/glaxium.6 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/
+ ${INSTALL_DATA} ${WRKSRC}/samples/*.wav \
+ ${DESTDIR}${PREFIX}/share/glaxium/samples/
+ ${INSTALL_DATA} ${WRKSRC}/samples/*.xm \
+ ${DESTDIR}${PREFIX}/share/glaxium/samples/
+ ${INSTALL_DATA} ${WRKSRC}/textures/*.png \
+ ${DESTDIR}${PREFIX}/share/glaxium/textures/
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "DragonFly" || ${OPSYS} == "SunOS"
diff --git a/games/glaxium/distinfo b/games/glaxium/distinfo
index 1fccb1abe62..0e84f8d9336 100644
--- a/games/glaxium/distinfo
+++ b/games/glaxium/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2015/11/03 20:56:51 agc Exp $
+$NetBSD: distinfo,v 1.6 2016/12/12 06:21:47 dholland Exp $
SHA1 (glaxium_0.5.tar.gz) = 42526a009a377a6fede7b7d343a0cd57c2f8e23e
RMD160 (glaxium_0.5.tar.gz) = 5c988c53d4205ac80e0011a893a80daecf096c1f
@@ -8,3 +8,5 @@ SHA1 (patch-aa) = 9b8299ed10aaea1e862c929b6f20eef0811cae35
SHA1 (patch-ab) = e8f2abea9053d73090fdb9ec92806fe21b68d3ce
SHA1 (patch-ac) = ac0a11ca229865eb637425d6065729d1c8fc3da2
SHA1 (patch-ad) = 3572e6f5c97f342d5b68024c7ebb17aeedb8b667
+SHA1 (patch-fighter2.cpp) = 7afee16e4d915f724416a626a68a61a50932af69
+SHA1 (patch-variables.cpp) = 8b398ef48cbb08776898cb2d512d4c44d7803c94
diff --git a/games/glaxium/patches/patch-fighter2.cpp b/games/glaxium/patches/patch-fighter2.cpp
new file mode 100644
index 00000000000..9a8e298e55c
--- /dev/null
+++ b/games/glaxium/patches/patch-fighter2.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-fighter2.cpp,v 1.1 2016/12/12 06:21:47 dholland Exp $
+
+Use right array size; avoid running off the end.
+
+--- fighter2.cpp~ 2002-10-04 18:05:20.000000000 +0000
++++ fighter2.cpp
+@@ -87,7 +87,7 @@ void Fighter2::initList()
+ }
+
+
+- for (i=0;i<587;i++) {
++ for (i=0;i<578;i++) {
+ fighter2_meshes[i*24+7] = 1 - fighter2_meshes[i*24+7];
+ fighter2_meshes[i*24+7+8] = 1 - fighter2_meshes[i*24+7+8];
+ fighter2_meshes[i*24+7+16] = 1 - fighter2_meshes[i*24+7+16];
diff --git a/games/glaxium/patches/patch-variables.cpp b/games/glaxium/patches/patch-variables.cpp
new file mode 100644
index 00000000000..32505143775
--- /dev/null
+++ b/games/glaxium/patches/patch-variables.cpp
@@ -0,0 +1,14 @@
+$NetBSD: patch-variables.cpp,v 1.1 2016/12/12 06:21:47 dholland Exp $
+
+Avoid undefined behavior.
+
+--- variables.cpp~ 2002-10-17 21:53:00.000000000 +0000
++++ variables.cpp
+@@ -453,6 +453,7 @@ char* GlaxiumVariables::getFullOptionsPa
+ static char strReturn[1024];
+ strcpy(strReturn, getenv("HOME"));
+ strcat(strReturn, "/.glaxiumrc");
++ return strReturn;
+ #endif
+ }
+