pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/fallingtime games/fallingtime: fix build on NetB...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/35c8b7534ffd
branches:  trunk
changeset: 390067:35c8b7534ffd
user:      he <he%pkgsrc.org@localhost>
date:      Thu Dec 15 18:45:07 2022 +0000

description:
games/fallingtime: fix build on NetBSD/macppc.

...where we need -std=gnu99 for alloca().
Use BUILDLINK_TRANSFORM to transform command line, otherwise
-std=c99 sneaks in and overrides, causing link failure.
Can't find where patch-pkg_default.gcw0.desktop is, not in CVS repository...

diffstat:

 games/fallingtime/Makefile |  7 +++++--
 games/fallingtime/distinfo |  3 +--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 968cee52a1f3 -r 35c8b7534ffd games/fallingtime/Makefile
--- a/games/fallingtime/Makefile        Thu Dec 15 14:45:57 2022 +0000
+++ b/games/fallingtime/Makefile        Thu Dec 15 18:45:07 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2022/09/11 12:51:39 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2022/12/15 18:45:07 he Exp $
 
 DISTNAME=      fallingtime-1.0.2
 PKGREVISION=   7
@@ -15,7 +15,10 @@
 WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
 USE_CMAKE=     yes
 USE_TOOLS+=    pkg-config
-USE_LANGUAGES= c99 c++
+USE_LANGUAGES= gnu99 c++
+
+# Also needed for alloca(), c99 creeps in and overrides otherwise...
+BUILDLINK_TRANSFORM+=  opt:-std=c99:-std=gnu99
 
 CMAKE_ARGS+=   -DINSTALL_PREFIX=${PREFIX}/libexec
 CMAKE_ARGS+=   -DINSTALL_DATA_PREFIX=${PREFIX}/share/fallingtime
diff -r 968cee52a1f3 -r 35c8b7534ffd games/fallingtime/distinfo
--- a/games/fallingtime/distinfo        Thu Dec 15 14:45:57 2022 +0000
+++ b/games/fallingtime/distinfo        Thu Dec 15 18:45:07 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:43:57 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/12/15 18:45:07 he Exp $
 
 BLAKE2s (fallingtime-1.0.2.tar.gz) = 9424053f5b42acc276afc313f08f986ec5556c5f18da01b7c719229f5d992b13
 SHA512 (fallingtime-1.0.2.tar.gz) = ada433b2a43558eea10b9e63564fc467640df96d5c3b6007610b9a4987e6f3cc6d5b0ef155da513d4f651be2a8e3cd9cdc59d6cbbeec5a58d66f408de1cd4929
@@ -6,4 +6,3 @@
 SHA1 (patch-CMakeLists.txt) = 27d7c488cdd24162f49f3391c75e7b8afb8ba521
 SHA1 (patch-cfgpath.h) = 95f82b5c981136a43b68764b33ded926e4dd807a
 SHA1 (patch-chipmunk_include_chipmunk_chipmunk.h) = 076caf52ccd588c59f0448050350af7209f6360e
-SHA1 (patch-pkg_default.gcw0.desktop) = c3cc6d289369cbfb49ea3adf2f068c49717a71af



Home | Main Index | Thread Index | Old Index