blob: ed488e7fcc24d6f240af00b51eec06b40e60f175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Created by: alepulver
# $FreeBSD$
PORTNAME= qmars
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://martin.ankerl.com/files/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Quicker Mars - heavily optimized mars simulator
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_BZIP2= yes
MAKE_JOBS_UNSAFE= yes
post-patch:
@${REINPLACE_CMD} -e 's|g++|$${CXX}| ; \
s|-O3|$${CXXFLAGS}|' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's|\./||' ${WRKSRC}/bench.*
@${REINPLACE_CMD} -e 's|pmars|&-server|' ${WRKSRC}/bench.pmars
@${REINPLACE_CMD} -e 's|Warrior::||' ${WRKSRC}/warrior.hpp
@${REINPLACE_CMD} -e 's|Parser::||' ${WRKSRC}/parser.hpp
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
@${MKDIR} ${DATADIR}
.for i in bench.exhaust bench.exmars bench.pmars bench.qmars
(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${i} ${DATADIR})
.endfor
@(cd ${WRKSRC} && ${COPYTREE_SHARE} warriors ${DATADIR})
.include <bsd.port.mk>
|