aboutsummaryrefslogtreecommitdiffstats
path: root/games/monsterz/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/monsterz/Makefile')
-rw-r--r--games/monsterz/Makefile36
1 files changed, 24 insertions, 12 deletions
diff --git a/games/monsterz/Makefile b/games/monsterz/Makefile
index 4e7239c5e642..e9ec2f61c01e 100644
--- a/games/monsterz/Makefile
+++ b/games/monsterz/Makefile
@@ -3,9 +3,13 @@
PORTNAME= monsterz
PORTVERSION= 0.7.1
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= games
-MASTER_SITES= http://sam.zoy.org/monsterz/
+MASTER_SITES= http://sam.zoy.org/monsterz/ \
+ SF/nemysisfreebsdp/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Monsterz - arcade puzzle game
@@ -13,26 +17,34 @@ COMMENT= Monsterz - arcade puzzle game
LICENSE= WTFPL
LICENSE_NAME= Do What The [expletive] You Want To Public License, Version 2
LICENSE_FILE= ${WRKSRC}/COPYING
-LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT}
-BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+RUN_DEPENDS= ${PYGAME}
USE_PYTHON= yes
MAKE_ENV= prefix=${PREFIX}
+PORTDOCS= AUTHORS README TODO
+
SCOREDIR= /var/games
PLIST_SUB= SCOREDIR=${SCOREDIR}
-PORTDOCS= AUTHORS COPYING INSTALL README TODO
+DESKTOP_ENTRIES="Monsterz" "${COMMENT}" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" false
+
+.include <bsd.port.options.mk>
post-install:
- ${STRIP_CMD} ${PREFIX}/games/monsterz
- ${LN} -sf ${PREFIX}/games/monsterz ${PREFIX}/bin
- @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/games/monsterz
- @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/games/monsterz
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+.for d in graphics sound
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
+.endfor
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${DATADIR}
+ @${PYTHON_CMD} -m compileall ${DATADIR}
+ @${PYTHON_CMD} -O -m compileall ${DATADIR}
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
+
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif