diff options
author | he <he@pkgsrc.org> | 2022-12-15 18:45:07 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2022-12-15 18:45:07 +0000 |
commit | e6282f81972488817d5a2d302020fa7f2684cd16 (patch) | |
tree | a9048de325b7917e439cf1460526393dbc92d8c0 /games | |
parent | f357f63b5701e4801abab76e6342bb96b7cb902d (diff) | |
download | pkgsrc-e6282f81972488817d5a2d302020fa7f2684cd16.tar.gz |
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 (limited to 'games')
-rw-r--r-- | games/fallingtime/Makefile | 7 | ||||
-rw-r--r-- | games/fallingtime/distinfo | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/games/fallingtime/Makefile b/games/fallingtime/Makefile index 7fe080a4f65..078d3c851ff 100644 --- a/games/fallingtime/Makefile +++ b/games/fallingtime/Makefile @@ -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 @@ EXTRACT_USING= bsdtar 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 --git a/games/fallingtime/distinfo b/games/fallingtime/distinfo index 5fb63313b4e..b9eca525b8d 100644 --- a/games/fallingtime/distinfo +++ b/games/fallingtime/distinfo @@ -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 @@ Size (fallingtime-1.0.2.tar.gz) = 1879166 bytes 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 |