Date: Mon, 20 Aug 2012 18:09:28 +0000 (UTC) From: Jason Helfman <jgh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r302826 - head/games/bubble-chains Message-ID: <201208201809.q7KI9SKL072910@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jgh Date: Mon Aug 20 18:09:28 2012 New Revision: 302826 URL: http://svn.freebsd.org/changeset/ports/302826 Log: - port requires data installation - use portname variable for plist - optionsNG on DOCS PR: 170722 Submitted by: maintainer, nemysis@gmx.ch Modified: head/games/bubble-chains/Makefile (contents, props changed) Modified: head/games/bubble-chains/Makefile ============================================================================== --- head/games/bubble-chains/Makefile Mon Aug 20 18:06:19 2012 (r302825) +++ head/games/bubble-chains/Makefile Mon Aug 20 18:09:28 2012 (r302826) @@ -7,7 +7,7 @@ PORTNAME= bubble-chains PORTVERSION= 0.1.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://bubble-chains.sintegrial.com/files/ DISTNAME= chains-${DISTVERSION} @@ -31,9 +31,9 @@ USE_QT4= moc_build qmake_build rcc_build MAKE_JOBS_SAFE= yes -PLIST_FILES= bin/bubble-chains \ - share/pixmaps/bubble-chains.ico \ - share/pixmaps/bubble-chains.png +PLIST_FILES= bin/${PORTNAME} \ + share/pixmaps/${PORTNAME}.ico \ + share/pixmaps/${PORTNAME}.png PLIST_DIRSTRY= share/applications PORTDATA= * @@ -50,6 +50,8 @@ post-patch: @${REINPLACE_CMD} -e 's|/usr/local/games/chains|${DATADIR}|' \ ${WRKSRC}/main.cpp ${WRKSRC}/Game.pro +.include <bsd.port.options.mk> + do-configure: @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ ${QMAKE} ${QMAKEFLAGS} @@ -58,20 +60,18 @@ do-install: # Executable ${INSTALL_PROGRAM} ${WRKSRC}/bin/chains ${PREFIX}/bin/${PORTNAME} +# Data + ${MKDIR} ${DATADIR} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}) + # Pixmaps and Desktop ${INSTALL_DATA} ${WRKSRC}/images/logo.png \ ${PREFIX}/share/pixmaps/${PORTNAME}.png ${INSTALL_DATA} ${WRKSRC}/icon.ico \ ${PREFIX}/share/pixmaps/${PORTNAME}.ico -# Data -.if !defined (NOPORTDATA) - ${MKDIR} ${DATADIR} - @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}) -.endif - # Documentation -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208201809.q7KI9SKL072910>