aboutsummaryrefslogtreecommitdiff
path: root/games/barbie_seahorse_adventures/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/barbie_seahorse_adventures/Makefile')
-rw-r--r--games/barbie_seahorse_adventures/Makefile35
1 files changed, 20 insertions, 15 deletions
diff --git a/games/barbie_seahorse_adventures/Makefile b/games/barbie_seahorse_adventures/Makefile
index 4218d72ed97d..fbb0dc092449 100644
--- a/games/barbie_seahorse_adventures/Makefile
+++ b/games/barbie_seahorse_adventures/Makefile
@@ -1,18 +1,15 @@
-# Created by: nemysis@gmx.ch
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= barbie_seahorse_adventures
-PORTVERSION= 1.0
-PORTREVISION= 3
+PORTVERSION= 1.1
CATEGORIES= games python
-MASTER_SITES= http://www.imitationpickles.org/barbie/files/ \
- SF/nemysisfreebsdp/:icons
-DISTFILES= barbie-${DISTVERSION}${EXTRACT_SUFX} \
- ${PORTNAME}_icons.tar.gz:icons
+MASTER_SITES= http://www.imitationpickles.org/barbie/files/
+DISTNAME= barbie-${DISTVERSION}
+EXTRACT_SUFX= .tgz
DIST_SUBDIR= python
MAINTAINER= nemysis@FreeBSD.org
-
COMMENT= You are a seahorse and you want to go to the moon!
LICENSE= GPLv2
@@ -21,38 +18,46 @@ RUN_DEPENDS= ${PYGAME}
WRKSRC= ${WRKDIR}/barbie-${DISTVERSION}
-USE_PYTHON= yes
+USE_PYTHON= 2
NO_BUILD= yes
-PORTDOCS= CHANGES.txt LEVELS.txt NOTES.txt README.txt TODO.txt
+PORTDOCS= CHANGES.txt LEVELS.txt NOTES.txt README.txt
+OPTIONS_DEFINE= DOCS
INSTALLS_ICONS= yes
-ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
+ICON_SIZES= 32x32 64x64 128x128
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Barbie Seahorse Adventures" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
+post-extract:
+ @cd ${WRKSRC} && ${RM} -f data/REMOVE_ME.txt data/sample.txt \
+ lib/pgu/LICENSE.txt
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/leveledit.py ${WRKSRC}/tileedit.py
@${FIND} ${WRKSRC} -name "*.bak" -delete
+.for s in 32 64 128
+ @cd ${WRKSRC} && \
+ ${MV} icon${s}.png ${PORTNAME}_${s}x${s}.png
+.endfor
do-install:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
${WRKDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
- @${MKDIR} ${STAGEDIR}${DATADIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data lib" ${STAGEDIR}${DATADIR})
+ ${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 \
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
- ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+ ${LN} -sf ${PREFIX}/share/icons/hicolor/64x64/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}