From owner-svn-ports-head@freebsd.org Wed May 11 13:06:49 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1611B369F7; Wed, 11 May 2016 13:06:49 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 937F81D44; Wed, 11 May 2016 13:06:49 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4BD6mbY064419; Wed, 11 May 2016 13:06:48 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4BD6mfu064418; Wed, 11 May 2016 13:06:48 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201605111306.u4BD6mfu064418@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Wed, 11 May 2016 13:06:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414989 - head/games/bouncy X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2016 13:06:49 -0000 Author: amdmi3 Date: Wed May 11 13:06:48 2016 New Revision: 414989 URL: https://svnweb.freebsd.org/changeset/ports/414989 Log: - Switch to options helpers Modified: head/games/bouncy/Makefile Modified: head/games/bouncy/Makefile ============================================================================== --- head/games/bouncy/Makefile Wed May 11 13:05:34 2016 (r414988) +++ head/games/bouncy/Makefile Wed May 11 13:06:48 2016 (r414989) @@ -27,10 +27,6 @@ USES= python:2 PORTDOCS= README.txt -OPTIONS_DEFINE= DOCS SHADER -SHADER_DESC= Hardware shader support -OPTIONS_DEFAULT= SHADER - INSTALLS_ICONS= yes SUB_FILES= ${PORTNAME} @@ -38,16 +34,18 @@ SUB_FILES= ${PORTNAME} DESKTOP_ENTRIES="Bouncy the Hungry Rabbit" "" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" "" -.include +OPTIONS_DEFINE= DOCS SHADER +OPTIONS_DEFAULT=SHADER + +SHADER_DESC= Hardware shader support post-patch: @${FIND} ${WRKSRC} -name '*.py' | ${XARGS} \ ${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|' @${FIND} ${WRKSRC} -name "*.bak" -delete -.if ${PORT_OPTIONS:MSHADER} +post-patch-SHADER-on: @${REINPLACE_CMD} -i '' '/#try/,/# print/s/#//' ${WRKSRC}/objects.py -.endif do-build: @${PYTHON_CMD} -m compileall ${WRKSRC} @@ -68,6 +66,7 @@ do-install: ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}