Index: head/games/highmoon/Makefile =================================================================== --- head/games/highmoon/Makefile (revision 351347) +++ head/games/highmoon/Makefile (revision 351348) @@ -1,41 +1,58 @@ # Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= highmoon PORTVERSION= 1.2.4 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= games MASTER_SITES= http://highmoon.gerdsmeier.net/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= games@FreeBSD.org COMMENT= Duel in the universe +LICENSE= GPLv2 + WRKSRC= ${WRKDIR}/HighMoon -USE_SDL= image sdl USES= gmake +USE_SDL= image sdl MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" CXXFLAGS+= `${SDL_CONFIG} --cflags` LDFLAGS+= `${SDL_CONFIG} --libs` -lSDL_image +PORTDOCS= AUTHORS NEWS README OPTIONS_DEFINE= DOCS +SUB_FILES= pkg-message + +DESKTOP_ENTRIES="HighMoon" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" "" + post-patch: @${FIND} ${WRKSRC}/src -type f | ${XARGS} ${REINPLACE_CMD} -e \ - 's|SDL/SDL|SDL|g ; \ - s|^#define __ENV|//#define __ENV|g ; \ - s|"gfx/|"${DATADIR}/gfx/|g ; \ - s|"snd/|"${DATADIR}/snd/|g ; \ - s|-round(|-rint(|g' + 's|SDL/SDL|SDL|; \ + s|^#define __ENV|//#define __ENV|; \ + s|"gfx/|(char\*)"${DATADIR}/gfx/|; \ + s|"snd/|(char\*)"${DATADIR}/snd/|; \ + s|-round(|-rint(|' + ${REINPLACE_CMD} -e \ + 's|planet_filename = ""|planet_filename = (char\*)""|; \ + s|u_filename = ""|u_filename = (char\*)""|; \ + s|c_filename = ""|c_filename = (char\*)""|' \ + ${WRKSRC}/src/galaxy.cpp + ${REINPLACE_CMD} -e 's|"HighMoon -|(char\*)"HighMoon -|; \ + s|"Highmoon -|(char\*)"HighMoon -|' \ + ${WRKSRC}/src/language.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ufo ${STAGEDIR}${PREFIX}/bin/${PORTNAME} - @${MKDIR} ${STAGEDIR}${DATADIR}/gfx - ${INSTALL_DATA} ${WRKSRC}/gfx/* ${STAGEDIR}${DATADIR}/gfx - @${MKDIR} ${STAGEDIR}${DATADIR}/snd - ${INSTALL_DATA} ${WRKSRC}/snd/* ${STAGEDIR}${DATADIR}/snd + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "gfx snd" ${STAGEDIR}${DATADIR}) + ${INSTALL_DATA} ${WRKSRC}/icon.png ${STAGEDIR}${DATADIR} + ${LN} -sf ${DATADIR}/icon.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png + @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Index: head/games/highmoon/files/patch-src__sound.cpp =================================================================== --- head/games/highmoon/files/patch-src__sound.cpp (nonexistent) +++ head/games/highmoon/files/patch-src__sound.cpp (revision 351348) @@ -0,0 +1,13 @@ +--- ./src/sound.cpp.orig 2006-03-25 22:10:32.000000000 +0100 ++++ ./src/sound.cpp 2014-04-15 17:58:18.532919123 +0200 +@@ -27,6 +27,10 @@ + + #include "sound.hpp" + ++#ifdef __clang__ ++#pragma clang diagnostic ignored "-Wtautological-constant-out-of-range-compare" ++#endif ++ + Soundset::Sample Soundset::sounds[ NUMBEROFCHANNELS ]; + bool Soundset::soundOn = true; + Property changes on: head/games/highmoon/files/patch-src__sound.cpp ___________________________________________________________________ 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/highmoon/files/pkg-message.in =================================================================== --- head/games/highmoon/files/pkg-message.in (nonexistent) +++ head/games/highmoon/files/pkg-message.in (revision 351348) @@ -0,0 +1,20 @@ +=============================================================================== + +HighMoon has been installed. + +All options are given in the command line or GUI shortcuts + + +You can use executable to start and see shortcuts + + highmoon --help + + +Or can use desktop file with shortcuts + + %%LOCALBASE%%/share/applications/highmoon.desktop + + +Have fun! + +=============================================================================== Property changes on: head/games/highmoon/files/pkg-message.in ___________________________________________________________________ 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/highmoon/pkg-descr =================================================================== --- head/games/highmoon/pkg-descr (revision 351347) +++ head/games/highmoon/pkg-descr (revision 351348) @@ -1,10 +1,10 @@ HighMoon is a game similar to "Artillery" or "Worms" -- but it takes place -in the universe. There is a planet system between two flying saucers. The -gravitational fields of the planets and moons change inevitably each -ballistic curve. It is not easy to eliminate an enemy. If you miss it, +in the universe. There is a planet system between two flying saucers. +The gravitational fields of the planets and moons change inevitably each +ballistic curve. It is not easy to eliminate an enemy. If you miss it, the shoots can change their direction and become dangerous to the attacker. HighMoon can be played against a computer or a human opponent in many planet systems. WWW: http://highmoon.gerdsmeier.net/ Index: head/games/highmoon/pkg-plist =================================================================== --- head/games/highmoon/pkg-plist (revision 351347) +++ head/games/highmoon/pkg-plist (revision 351348) @@ -1,44 +1,44 @@ bin/highmoon -%%PORTDOCS%%%%DOCSDIR%%/README %%DATADIR%%/gfx/c_shooting.gif %%DATADIR%%/gfx/c_thinking.gif %%DATADIR%%/gfx/cpktblue.gif %%DATADIR%%/gfx/cpktred.gif %%DATADIR%%/gfx/earth.gif %%DATADIR%%/gfx/explosionanim.gif %%DATADIR%%/gfx/extra.gif %%DATADIR%%/gfx/extra0.gif %%DATADIR%%/gfx/extra1.gif %%DATADIR%%/gfx/extra2.gif %%DATADIR%%/gfx/extra3.gif %%DATADIR%%/gfx/font.gif %%DATADIR%%/gfx/heavy.gif %%DATADIR%%/gfx/heavyback.gif %%DATADIR%%/gfx/heavybackk.gif %%DATADIR%%/gfx/highmoon.png %%DATADIR%%/gfx/hole.gif %%DATADIR%%/gfx/jupiter.gif %%DATADIR%%/gfx/mars.gif %%DATADIR%%/gfx/moon.gif %%DATADIR%%/gfx/moon_mask.gif %%DATADIR%%/gfx/saturn.gif %%DATADIR%%/gfx/shoot.gif %%DATADIR%%/gfx/shootback.gif %%DATADIR%%/gfx/shootbackk.gif %%DATADIR%%/gfx/stone.gif %%DATADIR%%/gfx/stone_mask.gif %%DATADIR%%/gfx/ufoblue.gif %%DATADIR%%/gfx/ufored.gif %%DATADIR%%/gfx/venus.gif +%%DATADIR%%/icon.png %%DATADIR%%/snd/applause.wav %%DATADIR%%/snd/click.wav %%DATADIR%%/snd/curve.wav %%DATADIR%%/snd/explosion.wav %%DATADIR%%/snd/kling.wav %%DATADIR%%/snd/laser.wav %%DATADIR%%/snd/pluck.wav %%DATADIR%%/snd/strom.wav +share/pixmaps/highmoon.png @dirrm %%DATADIR%%/snd @dirrm %%DATADIR%%/gfx @dirrm %%DATADIR%% -%%PORTDOCS%%@dirrm %%DOCSDIR%%