pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/neverball neverball: Needs c99 and avoid vsnprin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c666fa9fa1d1
branches:  trunk
changeset: 386224:c666fa9fa1d1
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Oct 12 09:37:25 2018 +0000

description:
neverball: Needs c99 and avoid vsnprintf(3) hacks

- On NetBSD (and probably other operating system) the build failed
  because due `extern int vsnprintf(char *, size_t, const char *, va_list);'
  and SSP use.  `-std=c99' is already passed to the compiler
  and vsnprintf(3) is part of C99 so avoid the `extern'.
- Add LICENSE

Bump PKGREVISION

Problem noticed and original patch by chardar on #pkgsrc with little
adjustments from me, thanks a lot!

diffstat:

 games/neverball/Makefile                     |   7 +++++--
 games/neverball/distinfo                     |   3 ++-
 games/neverball/patches/patch-share_common.h |  22 ++++++++++++++++++++++
 3 files changed, 29 insertions(+), 3 deletions(-)

diffs (65 lines):

diff -r f330340a6678 -r c666fa9fa1d1 games/neverball/Makefile
--- a/games/neverball/Makefile  Thu Oct 11 20:27:09 2018 +0000
+++ b/games/neverball/Makefile  Fri Oct 12 09:37:25 2018 +0000
@@ -1,16 +1,19 @@
-# $NetBSD: Makefile,v 1.34 2018/01/14 17:34:00 rillig Exp $
+# $NetBSD: Makefile,v 1.35 2018/10/12 09:37:25 leot Exp $
 
 DISTNAME=      neverball-1.6.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    games
 MASTER_SITES=  http://neverball.org/
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://neverball.org/
 COMMENT=       Puzzle/action game similar to Super Monkey Ball
+LICENSE=       gnu-gpl-v2
 
 USE_TOOLS+=    gmake pax
 
+USE_LANGUAGES= c99
+
 # Avoiding multiples patches...
 BUILDLINK_FNAME_TRANSFORM.SDL+=                -e "s|/SDL/|/|g"
 BUILDLINK_FNAME_TRANSFORM.SDL_ttf+=    -e "s|/SDL/|/|g"
diff -r f330340a6678 -r c666fa9fa1d1 games/neverball/distinfo
--- a/games/neverball/distinfo  Thu Oct 11 20:27:09 2018 +0000
+++ b/games/neverball/distinfo  Fri Oct 12 09:37:25 2018 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 20:57:00 agc Exp $
+$NetBSD: distinfo,v 1.11 2018/10/12 09:37:25 leot Exp $
 
 SHA1 (neverball-1.6.0.tar.gz) = 3faebf15fea9361358a416176b9689f966c456ea
 RMD160 (neverball-1.6.0.tar.gz) = 3489fcec1efe38c0faac62fe08573117a0f63c9f
 SHA512 (neverball-1.6.0.tar.gz) = 174d05308aee3a5e693782c54dd389439752b3597f28193771041d30f6c4236a5d055b2fcca9460b1005e9f000ddb3cbc01b86ea15c2abbf6e5a7996e836f787
 Size (neverball-1.6.0.tar.gz) = 37772911 bytes
 SHA1 (patch-ab) = 3cca20f42390d22c73c03171f725fe562f73cb0d
+SHA1 (patch-share_common.h) = f7f68029ab39d10dd025557c14f122b9980e437c
 SHA1 (patch-share_solid__draw.h) = 85b3271eb10056f19d79688fca305464063752ba
diff -r f330340a6678 -r c666fa9fa1d1 games/neverball/patches/patch-share_common.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/neverball/patches/patch-share_common.h      Fri Oct 12 09:37:25 2018 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-share_common.h,v 1.1 2018/10/12 09:37:25 leot Exp $
+
+C99 is already passed via CFLAGS and vsnprintf(3) is part of it.
+
+--- share/common.h.orig        2014-05-21 13:21:43.000000000 +0000
++++ share/common.h
+@@ -81,15 +81,6 @@ char *concat_string(const char *first, .
+ #define str_starts_with(s, h) (strncmp((s), (h), strlen(h)) == 0)
+ #define str_ends_with(s, t) ((strlen(s) >= strlen(t)) && strcmp((s) + strlen(s) - strlen(t), (t)) == 0)
+ 
+-/*
+- * Declaring vsnprintf with the C99 signature, even though we're
+- * claiming to be ANSI C. This is probably bad but is not known to not
+- * work.
+- */
+-#ifndef __APPLE__
+-extern int vsnprintf(char *, size_t, const char *, va_list);
+-#endif
+-
+ /* Time. */
+ 
+ time_t make_time_from_utc(struct tm *);



Home | Main Index | Thread Index | Old Index