pkgsrc-Changes archive

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

CVS commit: pkgsrc/games



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue May  7 08:40:19 UTC 2024

Modified Files:
        pkgsrc/games: Makefile
Added Files:
        pkgsrc/games/ccleste: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/games/ccleste/files: ccleste.sh
        pkgsrc/games/ccleste/patches: patch-Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.547 -r1.548 pkgsrc/games/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/games/ccleste/DESCR \
    pkgsrc/games/ccleste/Makefile pkgsrc/games/ccleste/PLIST \
    pkgsrc/games/ccleste/distinfo pkgsrc/games/ccleste/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/games/ccleste/files/ccleste.sh
cvs rdiff -u -r0 -r1.1 pkgsrc/games/ccleste/patches/patch-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/Makefile
diff -u pkgsrc/games/Makefile:1.547 pkgsrc/games/Makefile:1.548
--- pkgsrc/games/Makefile:1.547 Mon May  6 08:07:29 2024
+++ pkgsrc/games/Makefile       Tue May  7 08:40:18 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.547 2024/05/06 08:07:29 nia Exp $
+# $NetBSD: Makefile,v 1.548 2024/05/07 08:40:18 nia Exp $
 #
 
 COMMENT=       Games
@@ -66,6 +66,7 @@ SUBDIR+=      cataclysm-dda
 SUBDIR+=       cataclysm-dda-sdl
 SUBDIR+=       cbzone
 SUBDIR+=       ccgo
+SUBDIR+=       ccleste
 SUBDIR+=       cgoban
 SUBDIR+=       cgoban-java
 SUBDIR+=       chess-tui

Added files:

Index: pkgsrc/games/ccleste/DESCR
diff -u /dev/null pkgsrc/games/ccleste/DESCR:1.1
--- /dev/null   Tue May  7 08:40:19 2024
+++ pkgsrc/games/ccleste/DESCR  Tue May  7 08:40:19 2024
@@ -0,0 +1,8 @@
+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.
Index: pkgsrc/games/ccleste/Makefile
diff -u /dev/null pkgsrc/games/ccleste/Makefile:1.1
--- /dev/null   Tue May  7 08:40:19 2024
+++ pkgsrc/games/ccleste/Makefile       Tue May  7 08:40:19 2024
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2024/05/07 08:40:19 nia Exp $
+
+DISTNAME=      ccleste-1.4.0
+CATEGORIES=    games
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=lemon32767/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/lemon32767/ccleste
+COMMENT=       Portable version of the Celeste Classic 2D platform game
+#LICENSE=      # freeware
+
+USE_TOOLS+=    gmake pax
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    libexec
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/ccleste/data
+INSTALLATION_DIRS+=    share/pixmaps
+
+pre-configure:
+       ${SED} -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/ccleste.sh > \
+               ${WRKDIR}/ccleste.sh
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKDIR}/ccleste.sh \
+               ${DESTDIR}${PREFIX}/bin/ccleste
+       ${INSTALL_PROGRAM} ${WRKSRC}/ccleste \
+               ${DESTDIR}${PREFIX}/libexec/ccleste
+       ${INSTALL_DATA} ${FILESDIR}/ccleste.desktop \
+               ${DESTDIR}${PREFIX}/share/applications/ccleste.desktop
+       ${INSTALL_DATA} ${WRKSRC}/icon.png \
+               ${DESTDIR}${PREFIX}/share/pixmaps/ccleste.png
+       cd ${WRKSRC}/data && ${PAX} -rw -pp . \
+               ${DESTDIR}${PREFIX}/share/ccleste/data
+
+.include "options.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/games/ccleste/PLIST
diff -u /dev/null pkgsrc/games/ccleste/PLIST:1.1
--- /dev/null   Tue May  7 08:40:19 2024
+++ pkgsrc/games/ccleste/PLIST  Tue May  7 08:40:19 2024
@@ -0,0 +1,35 @@
+@comment $NetBSD: PLIST,v 1.1 2024/05/07 08:40:19 nia Exp $
+bin/ccleste
+libexec/ccleste
+share/applications/ccleste.desktop
+share/ccleste/data/font.bmp
+share/ccleste/data/gfx.bmp
+share/ccleste/data/mus0.ogg
+share/ccleste/data/mus10.ogg
+share/ccleste/data/mus20.ogg
+share/ccleste/data/mus30.ogg
+share/ccleste/data/mus40.ogg
+share/ccleste/data/snd0.wav
+share/ccleste/data/snd1.wav
+share/ccleste/data/snd13.wav
+share/ccleste/data/snd14.wav
+share/ccleste/data/snd15.wav
+share/ccleste/data/snd16.wav
+share/ccleste/data/snd2.wav
+share/ccleste/data/snd23.wav
+share/ccleste/data/snd3.wav
+share/ccleste/data/snd35.wav
+share/ccleste/data/snd37.wav
+share/ccleste/data/snd38.wav
+share/ccleste/data/snd4.wav
+share/ccleste/data/snd40.wav
+share/ccleste/data/snd5.wav
+share/ccleste/data/snd50.wav
+share/ccleste/data/snd51.wav
+share/ccleste/data/snd54.wav
+share/ccleste/data/snd55.wav
+share/ccleste/data/snd6.wav
+share/ccleste/data/snd7.wav
+share/ccleste/data/snd8.wav
+share/ccleste/data/snd9.wav
+share/pixmaps/ccleste.png
Index: pkgsrc/games/ccleste/distinfo
diff -u /dev/null pkgsrc/games/ccleste/distinfo:1.1
--- /dev/null   Tue May  7 08:40:19 2024
+++ pkgsrc/games/ccleste/distinfo       Tue May  7 08:40:19 2024
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2024/05/07 08:40:19 nia Exp $
+
+BLAKE2s (ccleste-1.4.0.tar.gz) = 0522734715f088f954605dac66007a62c896878ec398f07a5bd771c4c96be08e
+SHA512 (ccleste-1.4.0.tar.gz) = 29b4e052dee7dfb1fed2cfbeebc7d76b5a199b62360e59441844fa2295e1772afd0fd7a572b78e25573e7c176f27be6c8e22836b02d00938aa7e20bc589da926
+Size (ccleste-1.4.0.tar.gz) = 1537733 bytes
+SHA1 (patch-Makefile) = 3405f9fe6962464200f53bb5fb4b7e672e45fba7
Index: pkgsrc/games/ccleste/options.mk
diff -u /dev/null pkgsrc/games/ccleste/options.mk:1.1
--- /dev/null   Tue May  7 08:40:19 2024
+++ pkgsrc/games/ccleste/options.mk     Tue May  7 08:40:19 2024
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.1 2024/05/07 08:40:19 nia Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.ccleste
+
+PKG_OPTIONS_GROUP.sdl=         sdl sdl2
+PKG_OPTIONS_REQUIRED_GROUPS+=  sdl
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${MACHINE_PLATFORM:MDarwin-*-powerpc*}
+PKG_SUGGESTED_OPTIONS=         sdl
+.else
+PKG_SUGGESTED_OPTIONS=         sdl2
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Msdl2)
+MAKE_FLAGS+=   SDL_VER=2
+.  include "../../audio/SDL2_mixer/buildlink3.mk"
+.  include "../../devel/SDL2/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Msdl)
+MAKE_FLAGS+=   SDL_VER=1
+.  include "../../audio/SDL_mixer/buildlink3.mk"
+.  include "../../devel/SDL/buildlink3.mk"
+.endif

Index: pkgsrc/games/ccleste/files/ccleste.sh
diff -u /dev/null pkgsrc/games/ccleste/files/ccleste.sh:1.1
--- /dev/null   Tue May  7 08:40:19 2024
+++ pkgsrc/games/ccleste/files/ccleste.sh       Tue May  7 08:40:19 2024
@@ -0,0 +1,9 @@
+#!/bin/sh
+if ! [ -n "${XDG_CONFIG_HOME}" ]; then
+       export XDG_CONFIG_HOME="${HOME}/.config"
+fi
+if ! [ -d "${XDG_CONFIG_HOME}/ccleste" ]; then
+       mkdir -p "${XDG_CONFIG_HOME}/ccleste"
+fi
+export CCLESTE_INPUT_CFG_PATH=${XDG_CONFIG_HOME}/ccleste/ccleste-input-cfg.txt
+cd @PREFIX@/share/ccleste && exec @PREFIX@/libexec/ccleste

Index: pkgsrc/games/ccleste/patches/patch-Makefile
diff -u /dev/null pkgsrc/games/ccleste/patches/patch-Makefile:1.1
--- /dev/null   Tue May  7 08:40:19 2024
+++ pkgsrc/games/ccleste/patches/patch-Makefile Tue May  7 08:40:19 2024
@@ -0,0 +1,17 @@
+$NetBSD: patch-Makefile,v 1.1 2024/05/07 08:40:19 nia Exp $
+
+Honour pkgsrc CFLAGS/LDFLAGS.
+
+--- Makefile.orig      2021-11-24 14:25:50.000000000 +0000
++++ Makefile
+@@ -14,8 +14,8 @@ else
+ 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),)



Home | Main Index | Thread Index | Old Index