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!diff -r1.34 -r1.35 pkgsrc/games/neverball/Makefile
(leot)
@@ -1,26 +1,29 @@ | @@ -1,26 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.34 2018/01/14 17:34:00 rillig Exp $ | 1 | # $NetBSD: Makefile,v 1.35 2018/10/12 09:37:25 leot Exp $ | |
2 | 2 | |||
3 | DISTNAME= neverball-1.6.0 | 3 | DISTNAME= neverball-1.6.0 | |
4 | PKGREVISION= 1 | 4 | PKGREVISION= 2 | |
5 | CATEGORIES= games | 5 | CATEGORIES= games | |
6 | MASTER_SITES= http://neverball.org/ | 6 | MASTER_SITES= http://neverball.org/ | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://neverball.org/ | 9 | HOMEPAGE= https://neverball.org/ | |
10 | COMMENT= Puzzle/action game similar to Super Monkey Ball | 10 | COMMENT= Puzzle/action game similar to Super Monkey Ball | |
11 | LICENSE= gnu-gpl-v2 | |||
11 | 12 | |||
12 | USE_TOOLS+= gmake pax | 13 | USE_TOOLS+= gmake pax | |
13 | 14 | |||
15 | USE_LANGUAGES= c99 | |||
16 | ||||
14 | # Avoiding multiples patches... | 17 | # Avoiding multiples patches... | |
15 | BUILDLINK_FNAME_TRANSFORM.SDL+= -e "s|/SDL/|/|g" | 18 | BUILDLINK_FNAME_TRANSFORM.SDL+= -e "s|/SDL/|/|g" | |
16 | BUILDLINK_FNAME_TRANSFORM.SDL_ttf+= -e "s|/SDL/|/|g" | 19 | BUILDLINK_FNAME_TRANSFORM.SDL_ttf+= -e "s|/SDL/|/|g" | |
17 | 20 | |||
18 | MAKE_ENV+= ENABLE_NLS=0 | 21 | MAKE_ENV+= ENABLE_NLS=0 | |
19 | 22 | |||
20 | SHAREDIR= ${PREFIX}/share/${PKGBASE} | 23 | SHAREDIR= ${PREFIX}/share/${PKGBASE} | |
21 | 24 | |||
22 | INSTALLATION_DIRS= bin share/doc/${PKGBASE} share/${PKGBASE} | 25 | INSTALLATION_DIRS= bin share/doc/${PKGBASE} share/${PKGBASE} | |
23 | 26 | |||
24 | LDFLAGS.DragonFly= -lX11 -lm | 27 | LDFLAGS.DragonFly= -lX11 -lm | |
25 | LDFLAGS.SunOS+= -lX11 -lm | 28 | LDFLAGS.SunOS+= -lX11 -lm | |
26 | 29 |
@@ -1,8 +1,9 @@ | @@ -1,8 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.10 2015/11/03 20:57:00 agc Exp $ | 1 | $NetBSD: distinfo,v 1.11 2018/10/12 09:37:25 leot Exp $ | |
2 | 2 | |||
3 | SHA1 (neverball-1.6.0.tar.gz) = 3faebf15fea9361358a416176b9689f966c456ea | 3 | SHA1 (neverball-1.6.0.tar.gz) = 3faebf15fea9361358a416176b9689f966c456ea | |
4 | RMD160 (neverball-1.6.0.tar.gz) = 3489fcec1efe38c0faac62fe08573117a0f63c9f | 4 | RMD160 (neverball-1.6.0.tar.gz) = 3489fcec1efe38c0faac62fe08573117a0f63c9f | |
5 | SHA512 (neverball-1.6.0.tar.gz) = 174d05308aee3a5e693782c54dd389439752b3597f28193771041d30f6c4236a5d055b2fcca9460b1005e9f000ddb3cbc01b86ea15c2abbf6e5a7996e836f787 | 5 | SHA512 (neverball-1.6.0.tar.gz) = 174d05308aee3a5e693782c54dd389439752b3597f28193771041d30f6c4236a5d055b2fcca9460b1005e9f000ddb3cbc01b86ea15c2abbf6e5a7996e836f787 | |
6 | Size (neverball-1.6.0.tar.gz) = 37772911 bytes | 6 | Size (neverball-1.6.0.tar.gz) = 37772911 bytes | |
7 | SHA1 (patch-ab) = 3cca20f42390d22c73c03171f725fe562f73cb0d | 7 | SHA1 (patch-ab) = 3cca20f42390d22c73c03171f725fe562f73cb0d | |
8 | SHA1 (patch-share_common.h) = f7f68029ab39d10dd025557c14f122b9980e437c | |||
8 | SHA1 (patch-share_solid__draw.h) = 85b3271eb10056f19d79688fca305464063752ba | 9 | SHA1 (patch-share_solid__draw.h) = 85b3271eb10056f19d79688fca305464063752ba |
$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 *);