2013-09-20 19:36:33 +02:00
|
|
|
# Created by: alepulver
|
2008-01-30 04:55:27 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ptools
|
|
|
|
PORTVERSION= 1.1
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.koth.org/pmars/:koth \
|
|
|
|
http://www.infionline.net/~wtnewton/corewar/:corestep
|
2013-10-21 16:12:26 +02:00
|
|
|
PKGNAMESUFFIX= -game
|
2008-01-30 04:55:27 +01:00
|
|
|
DISTFILES= ${PORTNAME}${PORTVERSION:S/.//}.zip:koth \
|
|
|
|
pmars08s.zip:koth \
|
|
|
|
p3-2.pl:koth \
|
|
|
|
corestep.c:corestep
|
|
|
|
EXTRACT_ONLY= ${DISTFILES:C/:[[:alpha:]]+$//:N*.pl:N*.c}
|
|
|
|
|
2011-02-27 05:54:41 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2008-01-30 04:55:27 +01:00
|
|
|
COMMENT= Accessory programs for pMARS (Core War simulator)
|
|
|
|
|
2014-03-10 15:49:26 +01:00
|
|
|
USES= perl5 zip
|
2013-08-03 15:44:00 +02:00
|
|
|
USE_PERL5= run
|
2008-01-30 04:55:27 +01:00
|
|
|
MAKEFILE= makefile.ptools
|
|
|
|
ALL_TARGET= mopt mts pname
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2014-02-21 14:36:56 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2008-01-30 04:55:27 +01:00
|
|
|
post-build:
|
|
|
|
(${ECHO_CMD} "#!${PERL}"; ${CAT} ${DISTDIR}/p3-2.pl) \
|
|
|
|
> ${WRKSRC}/p3-2.pl
|
|
|
|
${CC} ${CFLAGS} -o ${WRKSRC}/corestep ${DISTDIR}/corestep.c -lm
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for f in corestep mopt mts pname
|
2013-10-21 16:12:26 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${f}
|
2008-01-30 04:55:27 +01:00
|
|
|
.endfor
|
2013-10-21 16:12:26 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/p3-2.pl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-p3-2
|
2008-01-30 04:55:27 +01:00
|
|
|
.for f in mopt.6 mts.6
|
2013-10-21 16:12:26 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${MAN6PREFIX}/man/man6/${PORTNAME}-${f}
|
2008-01-30 04:55:27 +01:00
|
|
|
.endfor
|
2013-10-21 16:12:26 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-10-30 12:37:21 +01:00
|
|
|
.for f in mopt.doc mts.doc pname.doc readme.ptools
|
2013-10-21 16:12:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
2014-10-30 12:37:21 +01:00
|
|
|
.endfor
|
2008-01-30 04:55:27 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|