diff --git a/games/monsterz/Makefile b/games/monsterz/Makefile index 8588ee291454..cb5e54e684a4 100644 --- a/games/monsterz/Makefile +++ b/games/monsterz/Makefile @@ -1,49 +1,49 @@ PORTNAME= monsterz -PORTVERSION= 0.8 +PORTVERSION= 0.9 DISTVERSIONPREFIX= v CATEGORIES= games MAINTAINER= thierry@FreeBSD.org COMMENT= Arcade puzzle game WWW= https://github.com/0-wiz-0/monsterz LICENSE= WTFPL -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYGAME} USE_GITHUB= yes GH_ACCOUNT= 0-wiz-0 USES= python shebangfix SHEBANG_FILES= monsterz.py MAKE_ENV= prefix=${PREFIX} PORTDOCS= AUTHORS README.md TODO SCOREDIR= /var/games PLIST_SUB= SCOREDIR=${SCOREDIR} OPTIONS_DEFINE= DOCS pre-configure: ${REINPLACE_CMD} '/test -f/ s|scorefile)|&.sample|g' \ ${WRKSRC}/Makefile post-install: .for d in graphics sound (cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) .endfor ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${STAGEDIR}${DATADIR} (cd ${STAGEDIR}${PREFIX} \ && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d ${DATADIR} \ -f ${DATADIR:S;${PREFIX}/;;} \ && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d ${DATADIR}\ -f ${DATADIR:S;${PREFIX}/;;}) ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/monsterz post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/games/monsterz/distinfo b/games/monsterz/distinfo index 4f23c2909e17..bf20a98d402c 100644 --- a/games/monsterz/distinfo +++ b/games/monsterz/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1737823301 -SHA256 (0-wiz-0-monsterz-v0.8_GH0.tar.gz) = a4f0c845abc3d3b1ab3d08f404852bc2e1e10d512c23b4098e0d49e679a1f079 -SIZE (0-wiz-0-monsterz-v0.8_GH0.tar.gz) = 2316029 +TIMESTAMP = 1747901570 +SHA256 (0-wiz-0-monsterz-v0.9_GH0.tar.gz) = e54e3945ad1fb55002f47c39351ee87fb1f8e555aba22b759c7af21d21877534 +SIZE (0-wiz-0-monsterz-v0.9_GH0.tar.gz) = 2319426 diff --git a/games/monsterz/files/patch-Makefile b/games/monsterz/files/patch-Makefile index fbb366ab6af4..eade9d80637c 100644 --- a/games/monsterz/files/patch-Makefile +++ b/games/monsterz/files/patch-Makefile @@ -1,47 +1,39 @@ ---- Makefile.orig 2007-12-17 22:05:00 UTC +--- Makefile.orig 2025-05-17 14:19:52 UTC +++ Makefile @@ -1,8 +1,8 @@ - -prefix = /usr/local --gamesdir = ${prefix}/games --datadir = ${prefix}/share --pkgdatadir = $(datadir)/games/monsterz +-gamesdir = $(prefix)/games +-datadir = $(prefix)/share +prefix? = /usr/local -+gamesdir = ${prefix}/bin -+datadir = ${prefix}/share/monsterz ++gamesdir = $(prefix)/bin ++datadir = $(prefix)/share/monsterz + mandir = $(prefix)/share/man +-pkgdatadir = $(datadir)/games/monsterz +pkgdatadir = $(datadir) + applicationsdir = $(datadir)/applications scoredir = /var/games scorefile = $(scoredir)/monsterz - -@@ -22,7 +22,7 @@ INKSCAPE = inkscape -z - all: monsterz - - monsterz: monsterz.c -- $(CC) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\" -DSCOREFILE=\"$(scorefile)\" -o monsterz -+ $(CC) $(CFLAGS) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\" -DSCOREFILE=\"$(scorefile)\" -o monsterz - - bitmap: $(BITMAP) - -@@ -42,17 +42,17 @@ graphics/logo.png: graphics/graphics.svg - install: all - mkdir -p $(DESTDIR)$(gamesdir) - cp monsterz $(DESTDIR)$(gamesdir)/ +@@ -53,8 +53,8 @@ install: all + $(INSTALL_DIR) $(DESTDIR)$(applicationsdir) + $(INSTALL_DIR) $(DESTDIR)$(mandir)/man6 + $(INSTALL_PROGRAM) monsterz $(DESTDIR)$(gamesdir)/ - chown root:games $(DESTDIR)$(gamesdir)/monsterz - chmod g+s $(DESTDIR)$(gamesdir)/monsterz + #chown root:games $(DESTDIR)$(gamesdir)/monsterz + #chmod g+s $(DESTDIR)$(gamesdir)/monsterz - mkdir -p $(DESTDIR)$(pkgdatadir)/graphics - mkdir -p $(DESTDIR)$(pkgdatadir)/sound - cp monsterz.py $(DESTDIR)$(pkgdatadir)/ - cp $(BITMAP) $(DESTDIR)$(pkgdatadir)/graphics/ - cp $(SOUND) $(MUSIC) $(DESTDIR)$(pkgdatadir)/sound/ - mkdir -p $(DESTDIR)$(scoredir) + $(INSTALL_DIR) $(DESTDIR)$(pkgdatadir)/graphics + $(INSTALL_DIR) $(DESTDIR)$(pkgdatadir)/sound + $(INSTALL_SCRIPT) monsterz.py $(DESTDIR)$(pkgdatadir)/ +@@ -63,9 +63,9 @@ install: all + $(INSTALL_DATA) monsterz.desktop $(DESTDIR)$(applicationsdir) + $(INSTALL_DATA) monsterz.6 $(DESTDIR)$(mandir)/man6 + $(INSTALL_DIR) $(DESTDIR)$(scoredir) - test -f $(DESTDIR)$(scorefile) || echo "" > $(DESTDIR)$(scorefile) - chown root:games $(DESTDIR)$(scorefile) - chmod g+w $(DESTDIR)$(scorefile) + test -f $(DESTDIR)$(scorefile) || /usr/bin/touch $(DESTDIR)$(scorefile) + #chown root:games $(DESTDIR)$(scorefile) + #chmod g+w $(DESTDIR)$(scorefile) uninstall: rm -f $(DESTDIR)$(gamesdir)/monsterz diff --git a/games/monsterz/pkg-plist b/games/monsterz/pkg-plist index 7c7f758f17be..00ea9c04b5b2 100644 --- a/games/monsterz/pkg-plist +++ b/games/monsterz/pkg-plist @@ -1,24 +1,26 @@ @(,games,2555) bin/monsterz +share/man/man6/monsterz.6.gz %%DATADIR%%/__pycache__/monsterz.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc %%DATADIR%%/__pycache__/monsterz.cpython-%%PYTHON_SUFFIX%%.pyc +%%DATADIR%%/applications/monsterz.desktop %%DATADIR%%/graphics/background.png %%DATADIR%%/graphics/bigtiles.png %%DATADIR%%/graphics/board.png %%DATADIR%%/graphics/graphics.svg %%DATADIR%%/graphics/icon.png %%DATADIR%%/graphics/logo.png %%DATADIR%%/graphics/pattern.png %%DATADIR%%/graphics/tiles.png %%DATADIR%%/monsterz.py %%DATADIR%%/sound/applause.wav %%DATADIR%%/sound/boing.wav %%DATADIR%%/sound/click.wav %%DATADIR%%/sound/ding.wav %%DATADIR%%/sound/duh.wav %%DATADIR%%/sound/grunt.wav %%DATADIR%%/sound/laugh.wav %%DATADIR%%/sound/music.s3m %%DATADIR%%/sound/pop.wav %%DATADIR%%/sound/warning.wav %%DATADIR%%/sound/whip.wav @sample(games,games,664) %%SCOREDIR%%/monsterz.sample