svn commit: r337528 - head/games/help_hannahs_horse
Rusmir Dusko
nemysis at FreeBSD.org
Thu Dec 26 14:47:30 UTC 2013
Author: nemysis
Date: Thu Dec 26 14:47:29 2013
New Revision: 337528
URL: http://svnweb.freebsd.org/changeset/ports/337528
Log:
- Change Makefile header
- Change master sites
- USES gmake instead of USE_GMAKE
- Add DOCS Option
- Change Desktop entry file
- Support STAGEDIR
- Break lines around 80 characters
- Mute dir install
Approved by: pawel / wg (mentors, implicit)
Modified:
head/games/help_hannahs_horse/Makefile
Modified: head/games/help_hannahs_horse/Makefile
==============================================================================
--- head/games/help_hannahs_horse/Makefile Thu Dec 26 14:42:19 2013 (r337527)
+++ head/games/help_hannahs_horse/Makefile Thu Dec 26 14:47:29 2013 (r337528)
@@ -1,11 +1,11 @@
-# Created by: nemysis at gmx.ch
+# Created by: nemysis <nemysis at gmx.ch>
# $FreeBSD$
PORTNAME= help_hannahs_horse
PORTVERSION= 1.0
CATEGORIES= games
MASTER_SITES= SF/hannah/hannah/hannah-${DISTVERSION}/ \
- SF/nemysisfreebsdp/:icons
+ SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= hhh-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}_icons.tar.gz:icons
DIST_SUBDIR= ${PORTNAME}
@@ -18,51 +18,50 @@ LICENSE_COMB= dual
WRKSRC= ${WRKDIR}/hhh-2008-03-29
+USES= gmake
USE_SDL= sdl image mixer ttf
-USE_GMAKE= yes
ALL_TARGET= # empty
PORTDOCS= CHANGELOG README TODO
+OPTIONS_DEFINE= DOCS
+
INSTALLS_ICONS= yes
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
-DESKTOP_ENTRIES="Help Hannah's Horse" "${COMMENT}" "${PORTNAME}.png" \
- "${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="Help Hannah's Horse" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local/games/hhh|${DATADIR}|' \
- -e 's|/usr/local/bin|${PREFIX}/bin|' \
- -e 's|CXX = g++|CXX ?= g++|' \
- -e 's|CXXFLAGS = -O2 -Wall -g|CXXFLAGS +=|' \
- -e 's|OUT = hhh|OUT = ${PORTNAME}|' \
- -e 's|-include deps|#-include deps|' \
+ @${REINPLACE_CMD} -e 's|/usr/local/games/hhh|${DATADIR}| ; \
+ s|/usr/local/bin|${PREFIX}/bin| ; \
+ s|CXX = g++|CXX ?= g++}| ; \
+ s|CXXFLAGS = -O2 -Wall -g|CXXFLAGS +=| ; \
+ s|OUT = hhh|OUT = ${PORTNAME}| ; \
+ s|-include deps|#-include deps|' \
${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
-.for d in blue carrot default freeze hannah images invert invis maps newanim pink red sounds stop
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
+.for d in blue carrot default freeze hannah images invert invis maps newanim \
+ pink red sounds stop
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
.for d in *.ogg *.ttf *.dat *.png
- @(cd ${WRKSRC} && ${INSTALL_DATA} ${d} ${DATADIR})
+ @(cd ${WRKSRC} && ${INSTALL_DATA} ${d} ${STAGEDIR}${DATADIR})
.endfor
post-install:
.for s in ${ICON_SIZES}
- ${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
- ${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
- ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
+ ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list