63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= iceicepenguin
|
|
PORTVERSION= 1.5.1
|
|
PORTREVISION= 6
|
|
CATEGORIES= games python
|
|
MASTER_SITES= SF/${PORTNAME}/Default/Ice%20Ice%20Penguin/ \
|
|
SF/nemysisfreebsdp/games/:icons
|
|
DISTFILES= iip.${DISTVERSION}-final${EXTRACT_SUFX} \
|
|
${PORTNAME}_icons_1${EXTRACT_SUFX}:icons
|
|
DIST_SUBDIR= python
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Remake of an old SEGA Dreamcast game called Chu Chu Rocket
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${PYGAME}
|
|
|
|
WRKSRC= ${WRKDIR}/"ice ice penguin"
|
|
|
|
USES= python:run shebangfix zip
|
|
SHEBANG_FILES= iceicepengui.py
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
PORTDOCS= CHANGELOG.txt readme.txt
|
|
|
|
INSTALLS_ICONS= yes
|
|
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
|
|
|
|
SUB_FILES= ${PORTNAME}
|
|
|
|
DESKTOP_ENTRIES="Ice Ice Penguin" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-install:
|
|
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
|
|
${WRKDIR}/${PORTNAME}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.for d in fonts gfx lvls menu sfx
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
|
|
|
|
.for s in ${ICON_SIZES}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
|
|
.endfor
|
|
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|