summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authormicha <micha@pkgsrc.org>2020-06-10 15:35:01 +0000
committermicha <micha@pkgsrc.org>2020-06-10 15:35:01 +0000
commit0ac78a33f36c21d2aff832831b4814be78720ce0 (patch)
tree1bee76e352535b2267454f5dc0fb67c064704b1a /games
parent619bd418a3af66409545cc3921676f25b83a1fad (diff)
downloadpkgsrc-0ac78a33f36c21d2aff832831b4814be78720ce0.tar.gz
games/doomlegacy: Build fix for SunOS
The type label_t is not available on all OS, e.g. on SmartOS. labelforname() is an unused function and the only place where label_t is used. Commented out with new patch. Bump PKGREVISION because C source file has changed.
Diffstat (limited to 'games')
-rw-r--r--games/doomlegacy/Makefile5
-rw-r--r--games/doomlegacy/distinfo3
-rw-r--r--games/doomlegacy/patches/patch-src_t__prepro.h16
3 files changed, 21 insertions, 3 deletions
diff --git a/games/doomlegacy/Makefile b/games/doomlegacy/Makefile
index e9b429d2981..f7280bc3537 100644
--- a/games/doomlegacy/Makefile
+++ b/games/doomlegacy/Makefile
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.4 2020/05/19 11:20:16 micha Exp $
+# $NetBSD: Makefile,v 1.5 2020/06/10 15:35:02 micha Exp $
VERS= 1.48.4
PKGNAME= doomlegacy-${VERS}
+PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=doomlegacy/}
-DISTNAME= ${PKGNAME:S/-/_/}_source
+DISTNAME= ${PKGNAME_NOREV:S/-/_/}_source
DISTFILES= ${DEFAULT_DISTFILES} doomlegacy_${VERS}_common.zip
EXTRACT_SUFX= .tar.bz2
diff --git a/games/doomlegacy/distinfo b/games/doomlegacy/distinfo
index 3447b7b96a6..9d4e9cd5dc1 100644
--- a/games/doomlegacy/distinfo
+++ b/games/doomlegacy/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2020/05/20 16:04:12 micha Exp $
+$NetBSD: distinfo,v 1.4 2020/06/10 15:35:02 micha Exp $
SHA1 (doomlegacy_1.48.4_common.zip) = 14aed4c0091e8c61f46a2303f9316659ab6c0483
RMD160 (doomlegacy_1.48.4_common.zip) = cca61af6bdda1003032ee117129e07596c8bbfcf
@@ -15,3 +15,4 @@ SHA1 (patch-src_dstrings.c) = e1fc8bdcb83efa18690d95c56e3ea7c94a388a50
SHA1 (patch-src_p__local.h) = e429f2ce5d60dd538bc5e796847b53ae72604b33
SHA1 (patch-src_p__setup.c) = c3766f924b05655b8d9d17d4686dde9a83239e0a
SHA1 (patch-src_r__defs.h) = 9211ae6db72f0288f38449b18c8c252f42686405
+SHA1 (patch-src_t__prepro.h) = 768fc3a87665a75a85ff4ff88b53091b13eab55e
diff --git a/games/doomlegacy/patches/patch-src_t__prepro.h b/games/doomlegacy/patches/patch-src_t__prepro.h
new file mode 100644
index 00000000000..8ed5b3bb71f
--- /dev/null
+++ b/games/doomlegacy/patches/patch-src_t__prepro.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_t__prepro.h,v 1.1 2020/06/10 15:35:02 micha Exp $
+
+The type label_t is not available on all OS, e.g. on SmartOS.
+labelforname() is an unused function and the only place where label_t is used.
+
+--- src/t_prepro.h.orig 2018-07-16 09:17:06.000000000 +0000
++++ src/t_prepro.h
+@@ -97,6 +97,8 @@ typedef enum // section types
+
+ /****** goto labels ***********/
+
++#if 0
+ label_t * labelforname(char *labelname);
++#endif
+
+ #endif