summaryrefslogtreecommitdiff
path: root/games/exmars
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-04-24 21:04:45 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-04-24 21:04:45 +0000
commit04e1166add22f7e62928a2b9d908a121b9fe7715 (patch)
treefbcec0a5326a49b1a15de0273457ceae20bc6e4a /games/exmars
parent- Fix OPTIONS handling. (diff)
- Remove USE_REINPLACE.
- Remove '@' from installation commands. - Format tabs. - Fix OPTIONS handling. - Bump PORTREVISION. Approved by: garga (mentor)
Notes
Notes: svn path=/head/; revision=160383
Diffstat (limited to 'games/exmars')
-rw-r--r--games/exmars/Makefile35
1 files changed, 16 insertions, 19 deletions
diff --git a/games/exmars/Makefile b/games/exmars/Makefile
index 7a53f7a3a996..3d00eae2a398 100644
--- a/games/exmars/Makefile
+++ b/games/exmars/Makefile
@@ -7,6 +7,7 @@
PORTNAME= exmars
PORTVERSION= 0.01
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= pav
@@ -14,55 +15,51 @@ MASTER_SITE_SUBDIR= pav
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Memory Array Redcode Simulator, just like exhaust and pMARS
-USE_REINPLACE= yes
REINPLACE_ARGS= -i ''
-
ALL_TARGET= ${PORTNAME}
-OPTIONS= OPTIMIZED_CFLAGS "Use optimized cflags (for FreeBSD >= 5.X)" on
+OPTIONS= OPTIMIZED_CFLAGS "Enable compilaton optimizations (>= 5.X)" on
do-install:
-# Program
- @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+# Program.
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-# Data
- @${MKDIR} ${DATADIR}
- @${CP} -R ${WRKSRC}/warriors ${DATADIR}
- @${INSTALL_SCRIPT} ${WRKSRC}/bench.sh ${DATADIR}
+# 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
+# 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
post-patch:
-# Fix bench.sh
+# Fix bench.sh.
@${REINPLACE_CMD} -e 's|pmars|pmars-server| ; \
- s|\./exmars|exmars|' \
- ${WRKSRC}/bench.sh
+ s|\./exmars|exmars|' \
+ ${WRKSRC}/bench.sh
-# Fix Makefile
+# Fix Makefile.
@${REINPLACE_CMD} -e 's|\($${OPT}\)|${CFLAGS} \1|' ${WRKSRC}/${MAKEFILE}
-# Enable/disable compilation optimizations
-.if !defined(WITH_OPTIMIZED_CFLAGS) || ${OSVERSION} < 500035
+# Enable/disable compilation optimizations.
+.if defined(WITHOUT_OPTIMIZED_CFLAGS) || ${OSVERSION} < 500035
@${REINPLACE_CMD} -e 's|$${OPT}||' ${WRKSRC}/${MAKEFILE}
.endif
-# Adjust optimization flags for all architectures
+# Adjust optimization flags for all architectures.
.for f in ${BADCFLAGS}
@${REINPLACE_CMD} -e 's|${f}||g' ${WRKSRC}/${MAKEFILE}
.endfor