aboutsummaryrefslogtreecommitdiff
path: root/games/exmars
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-10-30 11:37:15 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-10-30 11:37:15 +0000
commitab1603f575ab811670eb8f2c2beb82f1dd5a4391 (patch)
tree6fe3d1ccff922c18f882e989ca3b18870efeaffd /games/exmars
parentc705e638679d398582a0e759d27ab177b2cb4397 (diff)
downloadports-ab1603f575ab811670eb8f2c2beb82f1dd5a4391.tar.gz
ports-ab1603f575ab811670eb8f2c2beb82f1dd5a4391.zip
- Simplify installation and OPTIMIZED_FLAGS handling
- Drop @dirrm* from plist
Notes
Notes: svn path=/head/; revision=371744
Diffstat (limited to 'games/exmars')
-rw-r--r--games/exmars/Makefile10
-rw-r--r--games/exmars/pkg-plist5
2 files changed, 3 insertions, 12 deletions
diff --git a/games/exmars/Makefile b/games/exmars/Makefile
index 926eec32bf61..6a618b68e224 100644
--- a/games/exmars/Makefile
+++ b/games/exmars/Makefile
@@ -10,12 +10,13 @@ MASTER_SITES= http://corewar.co.uk/ankerl/
MAINTAINER= ports@FreeBSD.org
COMMENT= Memory Array Redcode Simulator, just like exhaust and pMARS
-REINPLACE_ARGS= -i ''
ALL_TARGET= ${PORTNAME}
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
+OPTIMIZED_CFLAGS_CFLAGS=-O3 -fomit-frame-pointer
+
.include <bsd.port.options.mk>
post-patch:
@@ -23,16 +24,11 @@ post-patch:
@${REINPLACE_CMD} -e 's|pmars|pmars-server| ; \
s|\./exmars|exmars|' \
${WRKSRC}/bench.sh
-
-# Enable/disable compilation optimizations.
-.if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
@${REINPLACE_CMD} -e 's|$${OPT}|${CFLAGS}|' ${WRKSRC}/${MAKEFILE}
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
- @${MKDIR} ${STAGEDIR}${DATADIR}
- ${CP} -R ${WRKSRC}/warriors ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} warriors ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/bench.sh ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
diff --git a/games/exmars/pkg-plist b/games/exmars/pkg-plist
index 84f691981cbe..5f398ce2e0f6 100644
--- a/games/exmars/pkg-plist
+++ b/games/exmars/pkg-plist
@@ -38,8 +38,3 @@ bin/exmars
%%DATADIR%%/warriors/pspace/rotpendragon2.red
%%DATADIR%%/warriors/pspace/sunset.red
%%DATADIR%%/warriors/pspace/unheardof.red
-@dirrm %%DATADIR%%/warriors/pspace
-@dirrm %%DATADIR%%/warriors/error
-@dirrm %%DATADIR%%/warriors/94nop
-@dirrm %%DATADIR%%/warriors
-@dirrm %%DATADIR%%