Date: Thu, 17 Oct 2013 01:58:09 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330595 - head/games/redeclipse Message-ID: <201310170158.r9H1w9IV033591@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Thu Oct 17 01:58:08 2013 New Revision: 330595 URL: http://svnweb.freebsd.org/changeset/ports/330595 Log: - Support staging - Convert USE_GMAKE to USES Modified: head/games/redeclipse/Makefile Modified: head/games/redeclipse/Makefile ============================================================================== --- head/games/redeclipse/Makefile Thu Oct 17 01:57:58 2013 (r330594) +++ head/games/redeclipse/Makefile Thu Oct 17 01:58:08 2013 (r330595) @@ -15,18 +15,19 @@ LICENSE= MIT ZLIB MANUAL_PACKAGE_BUILD= huge -USE_GMAKE= yes +USES= gmake GNU_CONFIGURE= yes USE_BZIP2= yes CONFIGURE_WRKSRC= ${WRKSRC}/src/enet CONFIGURE_ARGS= --enable-shared=no --enable-static=yes -USE_AUTOTOOLS= aclocal:env automake:env autoconf:env +USE_AUTOTOOLS= aclocal automake autoconf:env +AUTOMAKE_ARGS= -ia BUILD_WRKSRC= ${WRKSRC}/src WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} ALL_TARGET= libenet -SUB_FILES= redeclipse redeclipse_server +SUB_FILES= ${PORTNAME} ${PORTNAME}_server PORTDATA= * PORTDOCS= * @@ -34,11 +35,11 @@ PORTDOCS= * OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS OPTIONS_MULTI= COMPONENTS OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED -OPTIONS_DEFAULT=CLIENT DEDICATED OPTIMIZED_CFLAGS +OPTIONS_DEFAULT=CLIENT DEDICATED OPTIMIZED_CFLAGS DOCS + CLIENT_DESC= Build client DEDICATED_DESC= Build dedicated server -NO_STAGE= yes .include <bsd.port.options.mk> .if ${ARCH} == "sparc64" @@ -48,21 +49,21 @@ BROKEN= does not build on sparc64 .if ${PORT_OPTIONS:MCLIENT} USE_GL= yes USE_SDL= image mixer sdl -PLIST_FILES+= bin/redeclipse libexec/redeclipse share/pixmaps/redeclipse.ico -BINARIES+= redeclipse +PLIST_FILES+= bin/${PORTNAME} libexec/${PORTNAME} share/pixmaps/${PORTNAME}.ico +BINARIES+= ${PORTNAME} ALL_TARGET+= client DESKTOP_ENTRIES="Red Eclipse" \ "${COMMENT}" \ - "${PREFIX}/share/pixmaps/redeclipse.ico" \ - "redeclipse" \ - "Game;" \ - false + "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \ + "${PORTNAME}" \ + "Game;Shooter;" \ + "" .endif .if ${PORT_OPTIONS:MDEDICATED} -PLIST_FILES+= bin/redeclipse_server libexec/redeclipse_server -BINARIES+= redeclipse_server +PLIST_FILES+= bin/${PORTNAME}_server libexec/${PORTNAME}_server +BINARIES+= ${PORTNAME}_server ALL_TARGET+= server .endif @@ -73,25 +74,15 @@ CXXFLAGS+= -O3 -fomit-frame-pointer do-install: .for f in ${BINARIES} - ${INSTALL_SCRIPT} ${WRKDIR}/${f} ${PREFIX}/bin - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f} ${PREFIX}/libexec + ${INSTALL_SCRIPT} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f} ${STAGEDIR}${PREFIX}/libexec .endfor -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${DOCSDIR}/ -.endif -.if !defined(NOPORTDATA) - ${MKDIR} ${DATADIR} - cd ${WRKSRC} && ${COPYTREE_SHARE} "game data" ${DATADIR}/ -.endif + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${STAGEDIR}${DOCSDIR}/ + ${MKDIR} ${STAGEDIR}${DATADIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} "game data" ${STAGEDIR}${DATADIR}/ .if ${PORT_OPTIONS:MCLIENT} - ${INSTALL_DATA} ${WRKSRC}/src/redeclipse.ico ${PREFIX}/share/pixmaps/ + ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.ico ${STAGEDIR}${PREFIX}/share/pixmaps/ .endif -#post-install: -# @${FIND} ${DATADIR} -type f | \ -# ${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST} -# @${FIND} ${DATADIR} -type d | ${SORT} -r | \ -# ${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST} - .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310170158.r9H1w9IV033591>