Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/doomlegacy games/doomlegacy: Build fix for SunOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/431bb3cb0a89
branches:  trunk
changeset: 434065:431bb3cb0a89
user:      micha <micha%pkgsrc.org@localhost>
date:      Wed Jun 10 15:35:01 2020 +0000

description:
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:

 games/doomlegacy/Makefile                      |   5 +++--
 games/doomlegacy/distinfo                      |   3 ++-
 games/doomlegacy/patches/patch-src_t__prepro.h |  16 ++++++++++++++++
 3 files changed, 21 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r b09ba4c313b7 -r 431bb3cb0a89 games/doomlegacy/Makefile
--- a/games/doomlegacy/Makefile Wed Jun 10 15:22:52 2020 +0000
+++ b/games/doomlegacy/Makefile Wed Jun 10 15:35:01 2020 +0000
@@ -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 -r b09ba4c313b7 -r 431bb3cb0a89 games/doomlegacy/distinfo
--- a/games/doomlegacy/distinfo Wed Jun 10 15:22:52 2020 +0000
+++ b/games/doomlegacy/distinfo Wed Jun 10 15:35:01 2020 +0000
@@ -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_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 -r b09ba4c313b7 -r 431bb3cb0a89 games/doomlegacy/patches/patch-src_t__prepro.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/doomlegacy/patches/patch-src_t__prepro.h    Wed Jun 10 15:35:01 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index