Date: Fri, 17 Aug 2012 17:46:32 +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: r302690 - head/games/twind Message-ID: <201208171746.q7HHkWEd002517@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Aug 17 17:46:32 2012 New Revision: 302690 URL: http://svn.freebsd.org/changeset/ports/302690 Log: - Switch to optionsNG PR: ports/170671 Submitted by: nemysis <nemysis@gmx.ch> Modified: head/games/twind/Makefile Modified: head/games/twind/Makefile ============================================================================== --- head/games/twind/Makefile Fri Aug 17 17:43:59 2012 (r302689) +++ head/games/twind/Makefile Fri Aug 17 17:46:32 2012 (r302690) @@ -15,15 +15,20 @@ COMMENT= Match and remove all of the blo LICENSE= GPLv2 +OPTIONS_DEFINE= DATA +OPTIONS_DEFAULT= DATA + USE_SDL= sdl image mixer MAKE_JOBS_SAFE= yes -PLIST_FILES= bin/twind \ +PLIST_FILES= bin/${PORTNAME} \ share/pixmaps/${PORTNAME}.png PORTDATA= * PORTDOCS= AUTHORS CREDITS ChangeLog NEWS README TODO +.include <bsd.port.options.mk> + do-build: cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \ -DDATA_PREFIX=\"${DATADIR}/\" -DAUDIO -DLINUX \ @@ -31,17 +36,22 @@ do-build: do-install: # Executable ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin -# Pixmaps - ${INSTALL_DATA} ${WRKSRC}/graphics/twind.png ${PREFIX}/share/pixmaps/${PORTNAME}.png + # Data +.if ${PORT_OPTIONS:MDATA} ${MKDIR} ${DATADIR} @(cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics music sound" ${DATADIR}) +.endif + +# Pixmaps + ${INSTALL_DATA} ${WRKSRC}/graphics/${PORTNAME}.png ${PREFIX}/share/pixmaps/ + # Documentation -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS} +. for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor +. endfor .endif .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208171746.q7HHkWEd002517>