From owner-svn-ports-all@FreeBSD.ORG Thu Feb 27 08:45:17 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1011C680; Thu, 27 Feb 2014 08:45:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F04A11B07; Thu, 27 Feb 2014 08:45:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1R8jG6a030309; Thu, 27 Feb 2014 08:45:16 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1R8jGjD030307; Thu, 27 Feb 2014 08:45:16 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201402270845.s1R8jGjD030307@svn.freebsd.org> From: Martin Wilke Date: Thu, 27 Feb 2014 08:45:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r346261 - in head/games/fmars: . files 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.17 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: Thu, 27 Feb 2014 08:45:17 -0000 Author: miwi Date: Thu Feb 27 08:45:16 2014 New Revision: 346261 URL: http://svnweb.freebsd.org/changeset/ports/346261 QAT: https://qat.redports.org/buildarchive/r346261/ Log: - Update MASTER_SITES and WWW: line - Support CC properly - Convert to USES - Stage support PR: 187042 Deleted: head/games/fmars/files/ Modified: head/games/fmars/Makefile head/games/fmars/pkg-descr Modified: head/games/fmars/Makefile ============================================================================== --- head/games/fmars/Makefile Thu Feb 27 08:43:08 2014 (r346260) +++ head/games/fmars/Makefile Thu Feb 27 08:45:16 2014 (r346261) @@ -5,62 +5,44 @@ PORTNAME= fmars PORTVERSION= 0.0.207 PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= http://users.v-lo.krakow.pl/~michal/ +MASTER_SITES= http://corewar.co.uk/janeczek/ MAINTAINER= ports@FreeBSD.org COMMENT= Fast Memory Array Redcode Simulator -DEPRECATED= No more public distfiles -EXPIRATION_DATE= 2014-03-07 - LICENSE= GPLv2 BUILD_DEPENDS= guile:${PORTSDIR}/lang/guile USE_BZIP2= yes -USE_GMAKE= yes - +USES= gmake ALL_TARGET= x${PORTNAME} -OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS +OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS OPTIONS_DEFAULT= OPTIMIZED_CFLAGS -NO_STAGE= yes -.include +OPTIMIZED_CFLAGS_CFLAGS=-fomit-frame-pointer post-patch: -# Fix Makefile. - @${REINPLACE_CMD} -e 's|\($$(OPT)\)|${CFLAGS} \1| ; \ - s|gcc|${CC}|g' \ - ${WRKSRC}/${MAKEFILE} - -# Enable/disable compilation optimizations. -.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS) - @${REINPLACE_CMD} -e 's|$$(OPT)||' ${WRKSRC}/${MAKEFILE} -.endif + @${REINPLACE_CMD} -e \ + 's|^\(CC\) |#\1 | ; \ + s|^\(CFLAGS\) |#\1 | ; \ + s|^\(OPTS\) |#\1 | ; \ + s|gcc -E|$$(CC) -E|' ${WRKSRC}/Makefile do-install: # Program. - ${INSTALL_PROGRAM} ${WRKSRC}/x${PORTNAME} ${PREFIX}/bin/${PORTNAME} + (cd ${WRKSRC} && ${INSTALL_PROGRAM} x${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME}) # Data. - ${MKDIR} ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} .for d in rc rc-test - ${CP} -R ${WRKSRC}/${d} ${DATADIR} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) .endfor # Documentation (optional). -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} -.endif - -post-install: -# Fix permissions. - @${CHOWN} -R ${BINOWN}:${BINGRP} ${DATADIR} - @${FIND} ${DATADIR} -type f -print0 | \ - ${XARGS} -0 ${CHMOD} 644 - @${FIND} ${DATADIR} -type d -print0 | \ - ${XARGS} -0 ${CHMOD} 755 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR}) -.include +.include Modified: head/games/fmars/pkg-descr ============================================================================== --- head/games/fmars/pkg-descr Thu Feb 27 08:43:08 2014 (r346260) +++ head/games/fmars/pkg-descr Thu Feb 27 08:45:16 2014 (r346261) @@ -1,14 +1,15 @@ fmars is Fast Memory Array Redcode Simulator -A specialized simulator for the game of Corewars. It's designed to be of -particular use in automated redcode optimizers and evolvers. fmars borrows the -idea from Martin Ankerl's qmars and pushes it to the extreme. +A specialized simulator for the game of Corewars. It's designed to be +of particular use in automated redcode optimizers and evolvers. fmars +borrows the idea from Martin Ankerl's qmars and pushes it to the +extreme. -It generates source code with special case for every possible opcode/addressing -mode combination. This allows some optimizations that aren't possible in other -simulators. +It generates source code with special case for every possible +opcode/addressing mode combination. This allows some optimizations +that aren't possible in other simulators. -fmars is compatible with pMARS with an exception for p-space, which is not yet -implemented. +fmars is compatible with pMARS with an exception for p-space, which +is not yet implemented. -WWW: http://www.v-lo.krakow.pl/~michal/fmars.html +WWW: http://corewar.co.uk/janeczek/