From owner-svn-ports-all@freebsd.org Tue Sep 22 23:43:55 2015 Return-Path: Delivered-To: svn-ports-all@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 3F8D3A067F0; Tue, 22 Sep 2015 23:43:55 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::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 1EFD210E0; Tue, 22 Sep 2015 23:43:55 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8MNhsYB007601; Tue, 22 Sep 2015 23:43:54 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8MNhsp4007600; Tue, 22 Sep 2015 23:43:54 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201509222343.t8MNhsp4007600@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Tue, 22 Sep 2015 23:43:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r397597 - head/games/bloodfrontier X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 23:43:55 -0000 Author: amdmi3 Date: Tue Sep 22 23:43:54 2015 New Revision: 397597 URL: https://svnweb.freebsd.org/changeset/ports/397597 Log: - Switch to options helpers Modified: head/games/bloodfrontier/Makefile Modified: head/games/bloodfrontier/Makefile ============================================================================== --- head/games/bloodfrontier/Makefile Tue Sep 22 22:36:17 2015 (r397596) +++ head/games/bloodfrontier/Makefile Tue Sep 22 23:43:54 2015 (r397597) @@ -13,6 +13,10 @@ COMMENT= Single- and multi-player first- LICENSE= ZLIB +BROKEN_ia64= does not compile +BROKEN_powerpc= does not compile +BROKEN_sparc64= does not compile + USES= tar:bzip2 gmake GNU_CONFIGURE= yes CONFIGURE_WRKSRC= ${WRKSRC}/src/enet @@ -30,43 +34,36 @@ OPTIONS_MULTI= COMPONENTS OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED OPTIONS_DEFAULT= CLIENT DEDICATED OPTIMIZED_CFLAGS -CLIENT_DESC= Build client -CLIENT_USE= GL=gl SDL=image,mixer,sdl XORG=x11 -CLIENT_ALL_TARGET= client -CLIENT_PLIST_FILES= bin/bfclient libexec/bfclient \ - share/pixmaps/${PORTNAME}.ico -DEDICATED_DESC= Build dedicated server -DEDICATED_PLIST_FILES= bin/bfserver libexec/bfserver -DEDICATED_ALL_TARGET= server +CLIENT_DESC= Build client +CLIENT_USE= GL=gl SDL=image,mixer,sdl XORG=x11 +CLIENT_ALL_TARGET= client +CLIENT_PLIST_FILES= bin/bfclient libexec/bfclient \ + share/pixmaps/${PORTNAME}.ico + +CLIENT_DESKTOP_ENTRIES= "Blood Frontier" \ + "" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \ + "bfclient" \ + "Game;Shooter;" \ + "" +DEDICATED_DESC= Build dedicated server +DEDICATED_PLIST_FILES= bin/bfserver libexec/bfserver +DEDICATED_ALL_TARGET= server + OPTIMIZED_CFLAGS_CFLAGS= -O3 -fomit-frame-pointer OPTIMIZED_CFLAGS_CXXFLAGS= -O3 -fomit-frame-pointer -.include - -.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" -BROKEN= Does not compile on ia64, powerpc, or sparc64 -.endif - -.if ${PORT_OPTIONS:MCLIENT} -DESKTOP_ENTRIES="Blood Frontier" \ - "${COMMENT}" \ - "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \ - "bfclient" \ - "Game;Shooter;" \ - "" -.endif - do-install: -.for f in ${PLIST_FILES:Mbin/*} - ${INSTALL_SCRIPT} ${WRKDIR}/${f:T} ${STAGEDIR}${PREFIX}/${f} -.endfor -.for f in ${PLIST_FILES:Mlibexec/*} - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${f:T} ${STAGEDIR}${PREFIX}/${f:H} -.endfor -.if ${PORT_OPTIONS:MCLIENT} + (cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${STAGEDIR}${DATADIR}) + +do-install-CLIENT-on: + ${INSTALL_SCRIPT} ${WRKDIR}/bfclient ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bfclient ${STAGEDIR}${PREFIX}/libexec/ ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.ico \ ${STAGEDIR}${PREFIX}/share/pixmaps -.endif - (cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${STAGEDIR}${DATADIR}) + +do-install-DEDICATED-on: + ${INSTALL_SCRIPT} ${WRKDIR}/bfserver ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bfserver ${STAGEDIR}${PREFIX}/libexec/ .include