Date: Sat, 16 Nov 2013 15:30:29 +0000 (UTC) From: Danilo Egea Gondolfo <danilo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334006 - in head/games/exmars: . files Message-ID: <201311161530.rAGFUTEf057521@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danilo Date: Sat Nov 16 15:30:29 2013 New Revision: 334006 URL: http://svnweb.freebsd.org/changeset/ports/334006 Log: - Add stage support - Simplify Makefile Modified: head/games/exmars/Makefile head/games/exmars/files/patch-Makefile Modified: head/games/exmars/Makefile ============================================================================== --- head/games/exmars/Makefile Sat Nov 16 15:19:56 2013 (r334005) +++ head/games/exmars/Makefile Sat Nov 16 15:30:29 2013 (r334006) @@ -16,31 +16,7 @@ ALL_TARGET= ${PORTNAME} OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPTIONS_DEFAULT= OPTIMIZED_CFLAGS -NO_STAGE= yes -do-install: -# Program. - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - -# Data. - ${MKDIR} ${DATADIR} - ${CP} -R ${WRKSRC}/warriors ${DATADIR} - ${INSTALL_SCRIPT} ${WRKSRC}/bench.sh ${DATADIR} - -.include <bsd.port.pre.mk> - -# Adjust optimization flags for all architectures. -.if ${ARCH} != "i386" -BADCFLAGS+= -malign-double -.endif -.if ${ARCH} != "amd64" && ${ARCH} != "i386" -BADCFLAGS+= -maccumulate-outgoing-args \ - -minline-all-stringops \ - -mno-align-stringops -.endif -.if ${ARCH} == "alpha" -BADCFLAGS+= -ffast-math \ - -fprefetch-loop-arrays -.endif +.include <bsd.port.options.mk> post-patch: # Fix bench.sh. @@ -48,17 +24,15 @@ post-patch: s|\./exmars|exmars|' \ ${WRKSRC}/bench.sh -# Fix Makefile. - @${REINPLACE_CMD} -e 's|\($${OPT}\)|${CFLAGS} \1|' ${WRKSRC}/${MAKEFILE} - # Enable/disable compilation optimizations. -.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS) - @${REINPLACE_CMD} -e 's|$${OPT}||' ${WRKSRC}/${MAKEFILE} +.if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} + @${REINPLACE_CMD} -e 's|$${OPT}|${CFLAGS}|' ${WRKSRC}/${MAKEFILE} .endif -# Adjust optimization flags for all architectures. -.for f in ${BADCFLAGS} - @${REINPLACE_CMD} -e 's|${f}||g' ${WRKSRC}/${MAKEFILE} -.endfor +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} + ${CP} -R ${WRKSRC}/warriors ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/bench.sh ${STAGEDIR}${DATADIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> Modified: head/games/exmars/files/patch-Makefile ============================================================================== --- head/games/exmars/files/patch-Makefile Sat Nov 16 15:19:56 2013 (r334005) +++ head/games/exmars/files/patch-Makefile Sat Nov 16 15:30:29 2013 (r334006) @@ -1,5 +1,5 @@ ---- Makefile.orig Thu Oct 16 04:59:17 2003 -+++ Makefile Thu Jul 7 15:32:24 2005 +--- ./Makefile.orig 2003-10-16 04:59:17.000000000 -0300 ++++ ./Makefile 2013-11-16 13:19:29.000000000 -0200 @@ -1,9 +1,9 @@ # default flags -CCFLAGS = -O3 -fomit-frame-pointer @@ -8,7 +8,7 @@ # my own highly tuned settings #CC = gcc-3.3.1 -#CCFLAGS = -O3 -fomit-frame-pointer -fforce-addr -funroll-all-loops -fstrict-aliasing -malign-double -fprefetch-loop-arrays -maccumulate-outgoing-args -minline-all-stringops -finline-functions -finline-limit=800 -ffast-math -mno-align-stringops -+OPT = -O3 -fomit-frame-pointer -fforce-addr -funroll-all-loops -fstrict-aliasing -malign-double -fprefetch-loop-arrays -maccumulate-outgoing-args -minline-all-stringops -finline-functions -finline-limit=800 -ffast-math -mno-align-stringops ++OPT = -O3 -fomit-frame-pointer -funroll-all-loops -fstrict-aliasing -fprefetch-loop-arrays -minline-all-stringops -finline-functions -ffast-math #CCFLAGS += -mfpmath=sse,387 -mmmx -msse -march=pentium3 # develomental flags
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311161530.rAGFUTEf057521>