Index: head/games/help_hannahs_horse/Makefile =================================================================== --- head/games/help_hannahs_horse/Makefile (revision 374562) +++ head/games/help_hannahs_horse/Makefile (revision 374563) @@ -1,69 +1,56 @@ # Created by: Rusmir Dusko # $FreeBSD$ PORTNAME= help_hannahs_horse PORTVERSION= 1.0 PORTREVISION= 2 CATEGORIES= games MASTER_SITES= SF/hannah/hannah/hannah-${DISTVERSION}/ \ SF/nemysisfreebsdp/${CATEGORIES}/:icons DISTFILES= hhh-${DISTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}_icons.tar.gz:icons DIST_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Pacman with a fast food twist LICENSE= GPLv2 OFL11 LICENSE_COMB= multi LICENSE_FILE_GPLv2= ${WRKSRC}/gpl.txt #LICENSE_FILE_OFL11= ${WRKSRC}/StansHandOFL.txt ${WRKSRC}/Ray_Dittmeier_Fonts.txt # framework doesn't support multiple files WRKSRC= ${WRKDIR}/hhh-2008-03-29 USES= gmake USE_SDL= sdl image mixer ttf ALL_TARGET= # empty +MAKE_ENV= DATA_INSTALL_DIR="${DATADIR}" \ + BIN_DIR="${PREFIX}/bin" PORTDOCS= CHANGELOG README -OPTIONS_DEFINE= DOCS INSTALLS_ICONS= yes ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 DESKTOP_ENTRIES="Help Hannah's Horse" "" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" "" -post-patch: - @${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 +OPTIONS_DEFINE= DOCS do-install: - ${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} ${STAGEDIR}${DATADIR}) -.endfor -.for f in *.ogg *.ttf *.dat *.png - ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR} -.endfor - -post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/hhh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "blue carrot default freeze hannah \ + images invert invis maps newanim pink red sounds stop \ + *.ogg *.ttf *.dat *.png" ${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/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Index: head/games/help_hannahs_horse/files/patch-Makefile =================================================================== --- head/games/help_hannahs_horse/files/patch-Makefile (nonexistent) +++ head/games/help_hannahs_horse/files/patch-Makefile (revision 374563) @@ -0,0 +1,40 @@ +--- Makefile.orig 2007-02-07 00:31:11.000000000 +0300 ++++ Makefile 2014-12-12 01:25:23.000000000 +0300 +@@ -4,11 +4,11 @@ + # Install options + # + # For local install, comment the next line and uncomment the one after +-DATA_INSTALL_DIR=/usr/local/games/hhh ++DATA_INSTALL_DIR?=/usr/local/games/hhh + #DATA_INSTALL_DIR=. + + # Where the binary goes (you might want /usr/bin instead) +-BIN_DIR=/usr/local/bin ++BIN_DIR?=/usr/local/bin + + # Where the hiscore table is saved: user's home dir/.hannah + #SCORE_DIR=${HOME}/.hannah +@@ -16,10 +16,10 @@ + + + # compiler options +-CXX = g++ +-CPPFLAGS = $(shell sdl-config --cflags) -DDATA_INSTALL_DIR=\"${DATA_INSTALL_DIR}\" #-DSCORE_DIR=\"${SCORE_DIR}\" +-CXXFLAGS = -O2 -Wall -g +-LIBS = $(shell sdl-config --libs) -lSDL_image -lSDL_ttf -lSDL_mixer ++CXX ?= g++ ++CPPFLAGS += $(shell sdl-config --cflags) -DDATA_INSTALL_DIR=\"${DATA_INSTALL_DIR}\" #-DSCORE_DIR=\"${SCORE_DIR}\" ++CXXFLAGS += -Wall ++LIBS += $(shell sdl-config --libs) -lSDL_image -lSDL_ttf -lSDL_mixer + + # target binary and directory name + OUT = hhh +@@ -39,7 +39,7 @@ + deps: $(SRCS) + gcc $(CPPFLAGS) -MM $^ > deps + +--include deps ++#-include deps + + + install: hhh Property changes on: head/games/help_hannahs_horse/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/help_hannahs_horse/pkg-plist =================================================================== --- head/games/help_hannahs_horse/pkg-plist (revision 374562) +++ head/games/help_hannahs_horse/pkg-plist (revision 374563) @@ -1,156 +1,157 @@ bin/help_hannahs_horse %%DATADIR%%/bgm1.ogg %%DATADIR%%/blue/default/blue1.png %%DATADIR%%/blue/default/blue2.png %%DATADIR%%/blue/default/blue3.png %%DATADIR%%/blue/default/blue4.png %%DATADIR%%/blue/default/blue5.png %%DATADIR%%/blue/default/blue6.png %%DATADIR%%/blue/default/blue7.png %%DATADIR%%/blue/default/sprite.dat %%DATADIR%%/blue/flash/blue1.png %%DATADIR%%/blue/flash/flash1.png %%DATADIR%%/blue/flash/sprite.dat %%DATADIR%%/carrot/default/carrot.png %%DATADIR%%/carrot/default/sprite.dat %%DATADIR%%/font.ttf %%DATADIR%%/freeze/default/clock.png %%DATADIR%%/freeze/default/sprite.dat %%DATADIR%%/hannah/default/hannah_down1.png %%DATADIR%%/hannah/default/hannah_down2.png %%DATADIR%%/hannah/default/sprite.dat %%DATADIR%%/hannah/die/die1.png %%DATADIR%%/hannah/die/die10.png %%DATADIR%%/hannah/die/die11.png %%DATADIR%%/hannah/die/die2.png %%DATADIR%%/hannah/die/die3.png %%DATADIR%%/hannah/die/die4.png %%DATADIR%%/hannah/die/die5.png %%DATADIR%%/hannah/die/die6.png %%DATADIR%%/hannah/die/die7.png %%DATADIR%%/hannah/die/die8.png %%DATADIR%%/hannah/die/die9.png %%DATADIR%%/hannah/die/sprite.dat %%DATADIR%%/hannah/invis/invis1.png %%DATADIR%%/hannah/invis/invis2.png %%DATADIR%%/hannah/invis/invis3.png %%DATADIR%%/hannah/invis/invis4.png %%DATADIR%%/hannah/invis/sprite.dat %%DATADIR%%/hiscore.dat %%DATADIR%%/images/bg_left.png %%DATADIR%%/images/bg_right2_1.png %%DATADIR%%/images/border.png %%DATADIR%%/images/congrats.png %%DATADIR%%/images/cross.png %%DATADIR%%/images/end_banner.png %%DATADIR%%/images/gate.png %%DATADIR%%/images/gradient.png %%DATADIR%%/images/grass.png %%DATADIR%%/images/grass2.png %%DATADIR%%/images/grass3.png %%DATADIR%%/images/grass4.png %%DATADIR%%/images/hedge.png %%DATADIR%%/images/hedge2.png %%DATADIR%%/images/hedge3.png %%DATADIR%%/images/hedge4.png %%DATADIR%%/images/howtoplay.png %%DATADIR%%/images/oneway.png %%DATADIR%%/images/pill.png %%DATADIR%%/images/powerpill.png %%DATADIR%%/images/red_door.png %%DATADIR%%/images/red_key.png %%DATADIR%%/images/story.old.png %%DATADIR%%/images/story.png %%DATADIR%%/images/story1.png %%DATADIR%%/images/story2.png %%DATADIR%%/invert/default/sprite.dat %%DATADIR%%/invert/default/switch.png %%DATADIR%%/invert/default/switch2.png %%DATADIR%%/invert/default/switch3.png %%DATADIR%%/invert/default/switch4.png %%DATADIR%%/invis/default/potion.png %%DATADIR%%/invis/default/sprite.dat %%DATADIR%%/maps/map1.dat %%DATADIR%%/maps/map10.dat %%DATADIR%%/maps/map11.dat %%DATADIR%%/maps/map12.dat %%DATADIR%%/maps/map13.dat %%DATADIR%%/maps/map14.dat %%DATADIR%%/maps/map15.dat %%DATADIR%%/maps/map2.dat %%DATADIR%%/maps/map3.dat %%DATADIR%%/maps/map4.dat %%DATADIR%%/maps/map5.dat %%DATADIR%%/maps/map6.dat %%DATADIR%%/maps/map7.dat %%DATADIR%%/maps/map8.dat %%DATADIR%%/maps/map9.dat %%DATADIR%%/newanim/blue/default/blue1.png %%DATADIR%%/newanim/blue/default/blue2.png %%DATADIR%%/newanim/blue/default/blue3.png %%DATADIR%%/newanim/blue/default/blue4.png %%DATADIR%%/newanim/blue/default/blue5.png %%DATADIR%%/newanim/blue/default/blue6.png %%DATADIR%%/newanim/blue/default/blue7.png %%DATADIR%%/newanim/pink/default/pink1.png %%DATADIR%%/newanim/pink/default/pink10.png %%DATADIR%%/newanim/pink/default/pink11.png %%DATADIR%%/newanim/pink/default/pink12.png %%DATADIR%%/newanim/pink/default/pink1a.png %%DATADIR%%/newanim/pink/default/pink2.png %%DATADIR%%/newanim/pink/default/pink3.png %%DATADIR%%/newanim/pink/default/pink4.png %%DATADIR%%/newanim/pink/default/pink5.png %%DATADIR%%/newanim/pink/default/pink6.png %%DATADIR%%/newanim/pink/default/pink7.png %%DATADIR%%/newanim/pink/default/pink8.png %%DATADIR%%/newanim/pink/default/pink9.png %%DATADIR%%/newanim/pink/default/pinksquish.png %%DATADIR%%/pink/default/pink1.png %%DATADIR%%/pink/default/pink10.png %%DATADIR%%/pink/default/pink11.png %%DATADIR%%/pink/default/pink12.png %%DATADIR%%/pink/default/pink1a.png %%DATADIR%%/pink/default/pink2.png %%DATADIR%%/pink/default/pink3.png %%DATADIR%%/pink/default/pink4.png %%DATADIR%%/pink/default/pink5.png %%DATADIR%%/pink/default/pink6.png %%DATADIR%%/pink/default/pink7.png %%DATADIR%%/pink/default/pink8.png %%DATADIR%%/pink/default/pink9.png %%DATADIR%%/pink/default/pinksquish.png %%DATADIR%%/pink/default/sprite.dat %%DATADIR%%/pink/flash/flash1.png %%DATADIR%%/pink/flash/pink1.png %%DATADIR%%/pink/flash/sprite.dat %%DATADIR%%/red/default/red1.png %%DATADIR%%/red/default/red2.png %%DATADIR%%/red/default/red3.png %%DATADIR%%/red/default/red4.png %%DATADIR%%/red/default/red5.png %%DATADIR%%/red/default/red6.png %%DATADIR%%/red/default/red7.png %%DATADIR%%/red/default/red8.png %%DATADIR%%/red/default/sprite.dat %%DATADIR%%/red/flash/flash1.png %%DATADIR%%/red/flash/red1.png %%DATADIR%%/red/flash/sprite.dat %%DATADIR%%/sounds/DripC.wav %%DATADIR%%/sounds/chomp.wav %%DATADIR%%/sounds/crunch.wav %%DATADIR%%/sounds/drip.wav %%DATADIR%%/sounds/gulp.wav %%DATADIR%%/sounds/scream.wav %%DATADIR%%/sounds/uh-oh.wav %%DATADIR%%/sounds/yeah.wav %%DATADIR%%/stop/default/sprite.dat %%DATADIR%%/stop/default/stop.png %%DATADIR%%/story.png %%DATADIR%%/subgamefont.ttf share/icons/hicolor/32x32/apps/help_hannahs_horse.png share/icons/hicolor/48x48/apps/help_hannahs_horse.png share/icons/hicolor/64x64/apps/help_hannahs_horse.png share/icons/hicolor/72x72/apps/help_hannahs_horse.png share/icons/hicolor/96x96/apps/help_hannahs_horse.png share/pixmaps/help_hannahs_horse.png +@dir %%DATADIR%%/default