diff options
author | danilo <danilo@FreeBSD.org> | 2013-11-02 11:42:07 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2013-11-02 11:42:07 +0800 |
commit | 306e07d5660670068ebe379175c3bbf550a5129a (patch) | |
tree | 44e65c17f3f9cecaa038f255a58cb47abc61f564 /games/highmoon | |
parent | 94d77db3548221e9a77bc13628dd1a4c8449a34d (diff) | |
download | freebsd-ports-gnome-306e07d5660670068ebe379175c3bbf550a5129a.tar.gz freebsd-ports-gnome-306e07d5660670068ebe379175c3bbf550a5129a.tar.zst freebsd-ports-gnome-306e07d5660670068ebe379175c3bbf550a5129a.zip |
- Add stage support
- Convert USE_GMAKE to USES
- Add DOCS option
Diffstat (limited to 'games/highmoon')
-rw-r--r-- | games/highmoon/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/games/highmoon/Makefile b/games/highmoon/Makefile index 2fe7d940ffa0..7e42665e5ffe 100644 --- a/games/highmoon/Makefile +++ b/games/highmoon/Makefile @@ -13,13 +13,14 @@ COMMENT= Duel in the universe WRKSRC= ${WRKDIR}/HighMoon USE_SDL= image sdl -USE_GMAKE= yes +USES= gmake MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" CXXFLAGS+= `${SDL_CONFIG} --cflags` LDFLAGS+= `${SDL_CONFIG} --libs` -lSDL_image -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + post-patch: @${FIND} ${WRKSRC}/src -type f | ${XARGS} ${REINPLACE_CMD} -e \ 's|SDL/SDL|SDL|g ; \ @@ -29,14 +30,12 @@ post-patch: s|-round(|-rint(|g' do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/ufo ${PREFIX}/bin/${PORTNAME} - @${MKDIR} ${DATADIR}/gfx - ${INSTALL_DATA} ${WRKSRC}/gfx/* ${DATADIR}/gfx - @${MKDIR} ${DATADIR}/snd - ${INSTALL_DATA} ${WRKSRC}/snd/* ${DATADIR}/snd -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} -.endif + ${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 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |