1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/games/ptools/Makefile
Alejandro Pulver 611bbdeb72 PTools version 1.1.
This is a collection of utility programs for the game of Core War. The
programs in this archive work well with the pMARS system, but most programs
will also work with other simulators. Below is an overview of what we have:

* mts      - Short for "MARS Tournament Scheduler".
* mopt     - The "multiple optimizer" calculates optimal sets of constants for
             warriors.
* pname    - pname renames warrior files based on the ;name line.

These additional tools have been included in the port but are not part of the
original ptools package:

* p3-2     - For generating p^3 redcode snippets.
* corestep - For finding optimal step constants (similar to mopt).

Note that the port prefixes all of these programs with "ptools-" to avoid
conflicts and/or confusions with other ports.

WWW: http://www.koth.org/pmars/
2008-01-30 03:55:27 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: ptools
# Date created: 2008-01-15
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= ptools
PORTVERSION= 1.1
CATEGORIES= games
MASTER_SITES= http://www.koth.org/pmars/:koth \
http://www.infionline.net/~wtnewton/corewar/:corestep
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}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Accessory programs for pMARS (Core War simulator)
USE_ZIP= yes
USE_PERL5_RUN= yes
MAKEFILE= makefile.ptools
ALL_TARGET= mopt mts pname
NO_WRKSUBDIR= yes
MAN6= ptools-mopt.6 ptools-mts.6
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
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin/${PORTNAME}-${f}
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/p3-2.pl ${PREFIX}/bin/${PORTNAME}-p3-2
.for f in mopt.6 mts.6
${INSTALL_MAN} ${WRKSRC}/${f} ${MAN6PREFIX}/man/man6/${PORTNAME}-${f}
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
. for f in mopt.doc mts.doc pname.doc readme.ptools
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
. endfor
.endif
.include <bsd.port.mk>