Date: Tue, 4 Dec 2012 00:56:47 +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: r308180 - head/games/formido Message-ID: <201212040056.qB40ul6d002461@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Tue Dec 4 00:56:47 2012 New Revision: 308180 URL: http://svnweb.freebsd.org/changeset/ports/308180 Log: - OptionsNG - Trim header Feature safe: yes Modified: head/games/formido/Makefile Modified: head/games/formido/Makefile ============================================================================== --- head/games/formido/Makefile Mon Dec 3 23:20:38 2012 (r308179) +++ head/games/formido/Makefile Tue Dec 4 00:56:47 2012 (r308180) @@ -1,9 +1,5 @@ -# New ports collection makefile for: formido -# Date created: 19 Nov 2005 -# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru> -# +# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru> # $FreeBSD$ -# PORTNAME= formido PORTVERSION= 1.0 @@ -25,11 +21,13 @@ CC= ${CXX} MAKE_ENV= DATDIR="${DATADIR}" HISCOREDIR="${HISCOREDIR}" \ LINKFLAGS="${CXXFLAGS}" DEFAULT_CONFIG_FILE="${DATADIR}/formido.cfg" -OPTIONS= MUSIC "Install music (6MB)" on +OPTIONS_DEFINE= MUSIC +OPTIONS_DEFAULT=MUSIC +MUSIC_DESC= Install music (6MB) -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.ifdef(WITH_MUSIC) +.if ${PORT_OPTIONS:MMUSIC} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-music${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} PLIST_SUB+= MUSIC:="" @@ -46,7 +44,7 @@ do-install: ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/formido.cfg ${DATADIR} -.ifdef(WITH_MUSIC) +.if ${PORT_OPTIONS:MMUSIC} cd ${DATADIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${PORTNAME}-music${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS} ${CHOWN} root:wheel ${DATADIR}/*.ogg ${CHMOD} 644 ${DATADIR}/*.ogg @@ -54,11 +52,11 @@ do-install: ${CHGRP} games ${PREFIX}/bin/formido ${CHMOD} g+s ${PREFIX}/bin/formido -post-install: .if !exists(${HISCOREDIR}) +post-install: ${MKDIR} ${HISCOREDIR} ${CHGRP} games ${HISCOREDIR} ${CHMOD} g+w ${HISCOREDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212040056.qB40ul6d002461>