svn commit: r328210 - in head/games/smashbattle: . files
Rusmir Dusko
nemysis at FreeBSD.org
Tue Sep 24 22:49:34 UTC 2013
Author: nemysis
Date: Tue Sep 24 22:49:33 2013
New Revision: 328210
URL: http://svnweb.freebsd.org/changeset/ports/328210
Log:
- Change Makefile header
- Bump portrevision
- Change maintainer email gmx.ch --> FreeBSD.org
- USES gmake
- Use pkg-plist instead of PLIST_FILES and PLIST_DIRS
- Change REINPLACE_CMD, fix build with Clang
- Use REINPLACE_CMD instead of simple patches
- Mute dir install
- Update WWW
Approved by: wg/pawel (mentors)
Added:
head/games/smashbattle/pkg-plist (contents, props changed)
Deleted:
head/games/smashbattle/files/patch-Makefile
Modified:
head/games/smashbattle/Makefile
head/games/smashbattle/pkg-descr
Modified: head/games/smashbattle/Makefile
==============================================================================
--- head/games/smashbattle/Makefile Tue Sep 24 22:45:30 2013 (r328209)
+++ head/games/smashbattle/Makefile Tue Sep 24 22:49:33 2013 (r328210)
@@ -1,53 +1,50 @@
-# Created by: nemysis at gmx.ch
+# Created by: nemysis <nemysis at gmx.ch>
# $FreeBSD$
PORTNAME= smashbattle
PORTVERSION= 110224
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/beta-${PORTVERSION}
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
-MAINTAINER= nemysis at gmx.ch
+MAINTAINER= nemysis at FreeBSD.org
COMMENT= 8-bit style platform battle game
WRKSRC= ${WRKDIR}/${DISTNAME}/battle/Battle
USE_ZIP= yes
EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME}
-USE_GMAKE= yes
+USES= gmake
+USE_SDL= sdl image mixer
USE_DOS2UNIX= *.cpp *.h *.ini Makefile
ALL_TARGET= battle
-USE_SDL= sdl image mixer
NO_STAGE= yes
pre-extract:
@${MKDIR} ${WRKDIR}/${DISTNAME}
-PLIST_FILES= bin/${PORTNAME} \
- share/applications/${PORTNAME}.desktop \
- share/applications/${PORTNAME}fs.desktop \
- share/pixmaps/${PORTNAME}.png
-PLIST_DIRSTRY= share/applications
-
-PORTDATA= *
-
SUB_FILES= ${PORTNAME}
.include <bsd.port.options.mk>
post-patch:
+ @${REINPLACE_CMD} \
+ -e 's|CC=|CC?=|' \
+ -e 's|CFLAGS=-c -Wall|CFLAGS += $$(shell sdl-config --cflags) -c -Wall|' \
+ -e 's|LDFLAGS=-lSDL -lSDL_mixer -lz -lstdc++|LDFLAGS += $$(shell $${SDL_CONFIG} --libs) -lSDL -lSDL_mixer -lz -lstdc++ -lm|' \
+ ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/usr/share/games/smashbattle/gfx/SB.png|${PORTNAME}|' \
-e 's|/usr/local/bin/smashbattle|${PORTNAME}|' \
- ${WRKSRC}/linux/${PORTNAME}.desktop ${WRKSRC}/linux/${PORTNAME}fs.desktop
+ ${WRKSRC}/linux/*.desktop
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/battle ${DATADIR}/${PORTNAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "gfx music sfx stage" ${DATADIR})
- ${INSTALL_DATA} ${WRKSRC}/gfx/SB.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
- ${MKDIR} ${PREFIX}/share/applications
- ${INSTALL_DATA} ${WRKSRC}/linux/${PORTNAME}.desktop ${PREFIX}/share/applications/
- ${INSTALL_DATA} ${WRKSRC}/linux/${PORTNAME}fs.desktop ${PREFIX}/share/applications/
+ ${INSTALL_PROGRAM} ${WRKSRC}/battle ${DATADIR}/${PORTNAME}
+ ${LN} -sf ${DATADIR}/gfx/SB.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+ @${MKDIR} ${PREFIX}/share/applications/
+# ${INSTALL_DATA} ${WRKSRC}/linux/*.desktop ${PREFIX}/share/applications/
+ ${INSTALL_DATA} ${WRKSRC}/linux/*.desktop ${DESKTOPDIR}
.include <bsd.port.mk>
Modified: head/games/smashbattle/pkg-descr
==============================================================================
--- head/games/smashbattle/pkg-descr Tue Sep 24 22:45:30 2013 (r328209)
+++ head/games/smashbattle/pkg-descr Tue Sep 24 22:49:33 2013 (r328210)
@@ -3,4 +3,4 @@ three or four player face off against ea
The game was inspired by the mario battle minigame from mario 3
when we started developing, but changed a lot over time.
-WWW: http://smashbattle.condor.tv/
+WWW: http://smashbattle.demontpx.com/
Added: head/games/smashbattle/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/smashbattle/pkg-plist Tue Sep 24 22:49:33 2013 (r328210)
@@ -0,0 +1,99 @@
+bin/smashbattle
+share/applications/smashbattle.desktop
+share/applications/smashbattlefs.desktop
+share/pixmaps/smashbattle.png
+%%DATADIR%%/gfx/SB.bmp
+%%DATADIR%%/gfx/SB.ico
+%%DATADIR%%/gfx/SB.png
+%%DATADIR%%/gfx/anton.bmp
+%%DATADIR%%/gfx/arjan.bmp
+%%DATADIR%%/gfx/berry.bmp
+%%DATADIR%%/gfx/bert.bmp
+%%DATADIR%%/gfx/bg_black.bmp
+%%DATADIR%%/gfx/bg_blue.bmp
+%%DATADIR%%/gfx/bg_grey.bmp
+%%DATADIR%%/gfx/bg_orange.bmp
+%%DATADIR%%/gfx/bg_white.bmp
+%%DATADIR%%/gfx/bomb.bmp
+%%DATADIR%%/gfx/cannon.bmp
+%%DATADIR%%/gfx/chick.bmp
+%%DATADIR%%/gfx/common.bmp
+%%DATADIR%%/gfx/cups.bmp
+%%DATADIR%%/gfx/donja.bmp
+%%DATADIR%%/gfx/eva.bmp
+%%DATADIR%%/gfx/font_l.bmp
+%%DATADIR%%/gfx/font_m.bmp
+%%DATADIR%%/gfx/font_s.bmp
+%%DATADIR%%/gfx/gatling.bmp
+%%DATADIR%%/gfx/gijs.bmp
+%%DATADIR%%/gfx/jay.bmp
+%%DATADIR%%/gfx/jeremy.bmp
+%%DATADIR%%/gfx/jeroen.bmp
+%%DATADIR%%/gfx/kim.bmp
+%%DATADIR%%/gfx/marcel.bmp
+%%DATADIR%%/gfx/okke.bmp
+%%DATADIR%%/gfx/peter.bmp
+%%DATADIR%%/gfx/player1hp.bmp
+%%DATADIR%%/gfx/player2hp.bmp
+%%DATADIR%%/gfx/pmarkers.bmp
+%%DATADIR%%/gfx/powerups.bmp
+%%DATADIR%%/gfx/props.bmp
+%%DATADIR%%/gfx/rob.bmp
+%%DATADIR%%/gfx/rutger.bmp
+%%DATADIR%%/gfx/ruud.bmp
+%%DATADIR%%/gfx/shield.bmp
+%%DATADIR%%/gfx/steven.bmp
+%%DATADIR%%/gfx/tedje.bmp
+%%DATADIR%%/gfx/tiles.bmp
+%%DATADIR%%/gfx/tobias.bmp
+%%DATADIR%%/gfx/ton.bmp
+%%DATADIR%%/gfx/weapons.bmp
+%%DATADIR%%/music/a_hero_rises.ogg
+%%DATADIR%%/music/graveyard.ogg
+%%DATADIR%%/music/hydro_dreams.ogg
+%%DATADIR%%/music/space_farer.ogg
+%%DATADIR%%/music/victory.ogg
+%%DATADIR%%/sfx/airstrike.wav
+%%DATADIR%%/sfx/bounce.wav
+%%DATADIR%%/sfx/countdown.wav
+%%DATADIR%%/sfx/explode.wav
+%%DATADIR%%/sfx/go.wav
+%%DATADIR%%/sfx/hit.wav
+%%DATADIR%%/sfx/item.wav
+%%DATADIR%%/sfx/jump.wav
+%%DATADIR%%/sfx/laser.wav
+%%DATADIR%%/sfx/pause.wav
+%%DATADIR%%/sfx/select.wav
+%%DATADIR%%/sfx/select_character.wav
+%%DATADIR%%/sfx/shield.wav
+%%DATADIR%%/sfx/shoot.wav
+%%DATADIR%%/sfx/youlose.wav
+%%DATADIR%%/smashbattle
+%%DATADIR%%/stage/blastbowl.lvl
+%%DATADIR%%/stage/boulderdash.lvl
+%%DATADIR%%/stage/chick_invasion.lvl
+%%DATADIR%%/stage/chick_invasion_ii.lvl
+%%DATADIR%%/stage/chicken_run.lvl
+%%DATADIR%%/stage/commongrounds.lvl
+%%DATADIR%%/stage/ducknhunt.lvl
+%%DATADIR%%/stage/easy_does_it.lvl
+%%DATADIR%%/stage/lamoustache.lvl
+%%DATADIR%%/stage/piepit.lvl
+%%DATADIR%%/stage/pitfall.lvl
+%%DATADIR%%/stage/pitofdeath.lvl
+%%DATADIR%%/stage/platformalley.lvl
+%%DATADIR%%/stage/pogostick.lvl
+%%DATADIR%%/stage/rabbithole.lvl
+%%DATADIR%%/stage/slipnslide.lvl
+%%DATADIR%%/stage/snowfight.lvl
+%%DATADIR%%/stage/stayhigh.lvl
+%%DATADIR%%/stage/thefunnel.lvl
+%%DATADIR%%/stage/titlescreen.lvl
+%%DATADIR%%/stage/trainingdojo.lvl
+%%DATADIR%%/stage/tryout.lvl
+ at dirrm %%DATADIR%%/stage
+ at dirrm %%DATADIR%%/sfx
+ at dirrm %%DATADIR%%/music
+ at dirrm %%DATADIR%%/gfx
+ at dirrm %%DATADIR%%
+ at dirrmtry share/applications
More information about the svn-ports-all
mailing list