git: da72c7e3698a - main - games/candycrisis: Add new port

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Wed, 14 Jun 2023 16:00:21 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=da72c7e3698aeb9504f9ca3b60a58ccf0e3339bf

commit da72c7e3698aeb9504f9ca3b60a58ccf0e3339bf
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-06-14 15:59:52 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-06-14 16:00:18 +0000

    games/candycrisis: Add new port
    
    An exciting combination of pure action and puzzle gaming.
    
    This is an unofficial source port of the old Mac game "Candy Crisis".
    This version has an optional widescreen mode.
---
 games/Makefile                         |   1 +
 games/candycrisis/Makefile             |  38 +++++++++
 games/candycrisis/distinfo             |   3 +
 games/candycrisis/files/candycrisis.in |   4 +
 games/candycrisis/pkg-descr            |   4 +
 games/candycrisis/pkg-plist            | 147 +++++++++++++++++++++++++++++++++
 6 files changed, 197 insertions(+)

diff --git a/games/Makefile b/games/Makefile
index 3ea58d7c1d30..9c12548deed5 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -138,6 +138,7 @@
     SUBDIR += bzflag
     SUBDIR += bzflag-server
     SUBDIR += cake
+    SUBDIR += candycrisis
     SUBDIR += caph
     SUBDIR += cardpics
     SUBDIR += cataclysm-dda
diff --git a/games/candycrisis/Makefile b/games/candycrisis/Makefile
new file mode 100644
index 000000000000..155ff3be2046
--- /dev/null
+++ b/games/candycrisis/Makefile
@@ -0,0 +1,38 @@
+PORTNAME=	candycrisis
+PORTVERSION=	3.0.0
+DISTVERSIONPREFIX=	v
+CATEGORIES=	games
+
+MAINTAINER=	ehaupt@FreeBSD.org
+COMMENT=	Pure action and puzzle gaming
+WWW=		https://github.com/jorio/CandyCrisis
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		cmake desktop-file-utils pkgconfig sdl
+USE_GITHUB=	yes
+GH_ACCOUNT=	jorio
+GH_PROJECT=	CandyCrisis
+USE_SDL=	sdl2
+
+DESKTOP_ENTRIES=	"Candy Crisis" \
+			"An exciting combination of pure action and puzzle gaming!" \
+			"candycrisis" \
+			"candycrisis" \
+			"Game;" \
+			""
+
+SUB_FILES=	candycrisis
+
+do-install:
+	${MKDIR} ${STAGEDIR}${DATADIR}/CandyCrisisResources
+	${INSTALL_SCRIPT} ${WRKDIR}/candycrisis ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/CandyCrisis \
+		${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${INSTALL_WRKSRC}/CandyCrisisResources/* \
+		${STAGEDIR}${DATADIR}/CandyCrisisResources/
+	${INSTALL_DATA} ${WRKSRC}/packaging/candycrisis-desktopicon.png \
+		${STAGEDIR}${PREFIX}/share/icons/candycrisis.png
+
+.include <bsd.port.mk>
diff --git a/games/candycrisis/distinfo b/games/candycrisis/distinfo
new file mode 100644
index 000000000000..21290dc40bf9
--- /dev/null
+++ b/games/candycrisis/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1686742815
+SHA256 (jorio-CandyCrisis-v3.0.0_GH0.tar.gz) = 4f71790e5c3d5c6e40df4bf8ea17e3fd6a022e84e5da58a788b3bd518738744c
+SIZE (jorio-CandyCrisis-v3.0.0_GH0.tar.gz) = 5792700
diff --git a/games/candycrisis/files/candycrisis.in b/games/candycrisis/files/candycrisis.in
new file mode 100644
index 000000000000..564db1c986ac
--- /dev/null
+++ b/games/candycrisis/files/candycrisis.in
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd %%DATADIR%%
+exec %%DATADIR%%/CandyCrisis
diff --git a/games/candycrisis/pkg-descr b/games/candycrisis/pkg-descr
new file mode 100644
index 000000000000..83d35b629978
--- /dev/null
+++ b/games/candycrisis/pkg-descr
@@ -0,0 +1,4 @@
+An exciting combination of pure action and puzzle gaming.
+
+This is an unofficial source port of the old Mac game "Candy Crisis".
+This version has an optional widescreen mode.
diff --git a/games/candycrisis/pkg-plist b/games/candycrisis/pkg-plist
new file mode 100644
index 000000000000..fc7ba2e0a589
--- /dev/null
+++ b/games/candycrisis/pkg-plist
@@ -0,0 +1,147 @@
+bin/candycrisis
+%%DATADIR%%/CandyCrisis
+%%DATADIR%%/CandyCrisisResources/PICT_1000.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1001.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1002.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1004.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1100.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1101.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1102.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1104.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1200.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1201.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1202.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1204.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1300.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1301.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1302.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1304.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1400.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1401.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1402.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1404.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1500.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1501.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1502.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1504.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1505.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1600.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1601.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1602.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1604.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1700.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1701.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1702.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1704.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1800.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1801.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1802.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1804.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1805.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1900.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1901.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1902.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_1904.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_200.png
+%%DATADIR%%/CandyCrisisResources/PICT_2000.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2001.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2002.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2004.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_201.png
+%%DATADIR%%/CandyCrisisResources/PICT_202.png
+%%DATADIR%%/CandyCrisisResources/PICT_203.png
+%%DATADIR%%/CandyCrisisResources/PICT_204.png
+%%DATADIR%%/CandyCrisisResources/PICT_205.png
+%%DATADIR%%/CandyCrisisResources/PICT_206.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2100.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2101.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2102.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2104.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2105.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2300.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2301.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_2302.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_250.png
+%%DATADIR%%/CandyCrisisResources/PICT_251.png
+%%DATADIR%%/CandyCrisisResources/PICT_252.png
+%%DATADIR%%/CandyCrisisResources/PICT_253.png
+%%DATADIR%%/CandyCrisisResources/PICT_254.png
+%%DATADIR%%/CandyCrisisResources/PICT_255.png
+%%DATADIR%%/CandyCrisisResources/PICT_256.png
+%%DATADIR%%/CandyCrisisResources/PICT_257.png
+%%DATADIR%%/CandyCrisisResources/PICT_258.png
+%%DATADIR%%/CandyCrisisResources/PICT_259.png
+%%DATADIR%%/CandyCrisisResources/PICT_260.png
+%%DATADIR%%/CandyCrisisResources/PICT_300.png
+%%DATADIR%%/CandyCrisisResources/PICT_301.png
+%%DATADIR%%/CandyCrisisResources/PICT_302.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_303.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_304.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_305.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_306.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_307.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_308.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_309.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_310.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_500.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_5000.png
+%%DATADIR%%/CandyCrisisResources/PICT_5001.png
+%%DATADIR%%/CandyCrisisResources/PICT_5002.png
+%%DATADIR%%/CandyCrisisResources/PICT_5003.png
+%%DATADIR%%/CandyCrisisResources/PICT_5004.png
+%%DATADIR%%/CandyCrisisResources/PICT_5005.png
+%%DATADIR%%/CandyCrisisResources/PICT_5006.png
+%%DATADIR%%/CandyCrisisResources/PICT_5007.png
+%%DATADIR%%/CandyCrisisResources/PICT_5008.png
+%%DATADIR%%/CandyCrisisResources/PICT_5009.png
+%%DATADIR%%/CandyCrisisResources/PICT_501.jpg
+%%DATADIR%%/CandyCrisisResources/PICT_5010.png
+%%DATADIR%%/CandyCrisisResources/PICT_5011.png
+%%DATADIR%%/CandyCrisisResources/PICT_5013.png
+%%DATADIR%%/CandyCrisisResources/PICT_502.png
+%%DATADIR%%/CandyCrisisResources/PICT_5100.png
+%%DATADIR%%/CandyCrisisResources/PICT_5101.png
+%%DATADIR%%/CandyCrisisResources/PICT_5102.png
+%%DATADIR%%/CandyCrisisResources/PICT_5103.png
+%%DATADIR%%/CandyCrisisResources/PICT_5104.png
+%%DATADIR%%/CandyCrisisResources/PICT_5105.png
+%%DATADIR%%/CandyCrisisResources/PICT_5106.png
+%%DATADIR%%/CandyCrisisResources/PICT_5107.png
+%%DATADIR%%/CandyCrisisResources/PICT_5108.png
+%%DATADIR%%/CandyCrisisResources/PICT_5109.png
+%%DATADIR%%/CandyCrisisResources/PICT_5110.png
+%%DATADIR%%/CandyCrisisResources/PICT_5111.png
+%%DATADIR%%/CandyCrisisResources/PICT_5113.png
+%%DATADIR%%/CandyCrisisResources/mod_128.mod
+%%DATADIR%%/CandyCrisisResources/mod_129.s3m
+%%DATADIR%%/CandyCrisisResources/mod_130.s3m
+%%DATADIR%%/CandyCrisisResources/mod_131.mod
+%%DATADIR%%/CandyCrisisResources/mod_132.s3m
+%%DATADIR%%/CandyCrisisResources/mod_133.s3m
+%%DATADIR%%/CandyCrisisResources/mod_134.s3m
+%%DATADIR%%/CandyCrisisResources/mod_135.s3m
+%%DATADIR%%/CandyCrisisResources/mod_136.s3m
+%%DATADIR%%/CandyCrisisResources/mod_137.s3m
+%%DATADIR%%/CandyCrisisResources/mod_138.s3m
+%%DATADIR%%/CandyCrisisResources/mod_139.mod
+%%DATADIR%%/CandyCrisisResources/mod_140.mod
+%%DATADIR%%/CandyCrisisResources/mod_141.mod
+%%DATADIR%%/CandyCrisisResources/mod_142.s3m
+%%DATADIR%%/CandyCrisisResources/snd_128.wav
+%%DATADIR%%/CandyCrisisResources/snd_129.wav
+%%DATADIR%%/CandyCrisisResources/snd_130.wav
+%%DATADIR%%/CandyCrisisResources/snd_131.wav
+%%DATADIR%%/CandyCrisisResources/snd_132.wav
+%%DATADIR%%/CandyCrisisResources/snd_133.wav
+%%DATADIR%%/CandyCrisisResources/snd_134.wav
+%%DATADIR%%/CandyCrisisResources/snd_135.wav
+%%DATADIR%%/CandyCrisisResources/snd_136.wav
+%%DATADIR%%/CandyCrisisResources/snd_137.wav
+%%DATADIR%%/CandyCrisisResources/snd_138.wav
+%%DATADIR%%/CandyCrisisResources/snd_139.wav
+%%DATADIR%%/CandyCrisisResources/snd_140.wav
+%%DATADIR%%/CandyCrisisResources/snd_141.wav
+%%DATADIR%%/CandyCrisisResources/snd_142.wav
+%%DATADIR%%/CandyCrisisResources/snd_143.wav
+%%DATADIR%%/CandyCrisisResources/snd_144.wav
+share/icons/candycrisis.png