blob: bd13d97a10bbb11dea798d4e4b87d741056e55fe (
plain) (
blame)
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
|
# 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= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
BUILD_DEPENDS= makedepend:devel/makedepend
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= tar:bzip2
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} ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_SCRIPT} bench.exhaust bench.exmars \
bench.pmars bench.qmars ${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} warriors ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>
|