head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.16 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.14 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.12 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.10 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.8 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.6 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.4 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.2 pkgsrc-2024Q2-base:1.2; locks; strict; comment @# @; 1.2 date 2024.05.07.10.13.14; author nia; state Exp; branches; next 1.1; commitid hAkOQqBYPhshl39F; 1.1 date 2024.05.07.08.40.19; author nia; state Exp; branches; next ; commitid mWL1F2dlN7MmP29F; desc @@ 1.2 log @ccleste: fix build on darwin @ text @$NetBSD: patch-Makefile,v 1.1 2024/05/07 08:40:19 nia Exp $ Honour pkgsrc CFLAGS/LDFLAGS. Use sdl2-config --libs to fix cocoa linking on Darwin. --- Makefile.orig 2021-11-24 14:25:50.000000000 +0000 +++ Makefile @@@@ -4,18 +4,18 @@@@ SDL_VER?=2 ifeq ($(SDL_VER),2) SDL_CONFIG=sdl2-config - SDL_LD=-lSDL2 -lSDL2_mixer + SDL_LD=$$(sdl2-config --libs) -lSDL2_mixer else ifeq ($(SDL_VER),1) SDL_CONFIG=sdl-config - SDL_LD=-lSDL -lSDL_mixer + SDL_LD=$$(sdl-config --libs) -lSDL_mixer else SDL_CONFIG=$(error "invalid SDL version '$(SDL_VER)'. possible values are '1' and '2'") endif endif -CFLAGS=-Wall -g -O2 `$(SDL_CONFIG) --cflags` -LDFLAGS=$(SDL_LD) +CFLAGS+=-std=c99 -Wall `$(SDL_CONFIG) --cflags` +LDFLAGS+=$(SDL_LD) CELESTE_CC=$(CC) ifneq ($(USE_FIXEDP),) @ 1.1 log @Import games/ccleste Celeste is a platform game developed and published by indie studio Maddy Makes Games. The player controls Madeline, a young woman with anxiety and depression who aims to climb Celeste Mountain. During her climb, she encounters several characters, including a personification of her self-doubt known as Badeline, who attempts to stop her from climbing the mountain. This is a C source port of the original Celeste (Celeste Classic for the PICO-8), designed to be portable. @ text @d1 1 a1 1 $NetBSD$ d4 1 d8 13 a20 1 @@@@ -14,8 +14,8 @@@@ else @