1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/games/optimax/Makefile

51 lines
1.3 KiB
Makefile

# Created by: alepulver
# $FreeBSD$
PORTNAME= optimax
PORTVERSION= 0.63
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://www.corewar.info/optimax/dload/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}_unix
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
fsh94nop0.3.zip \
fsh88.zip \
fsh94draft01.zip
MAINTAINER= ports@FreeBSD.org
COMMENT= A Core War optimizer written in Perl
RUN_DEPENDS= p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk
USES= perl5
USE_ZIP= yes
USE_PERL5= run
WRKSRC= ${WRKDIR}/publish_${PORTVERSION:S/.//}
BUILD_WRKSRC= ${WRKSRC}/optimars/optimars_0.1
ALL_TARGET= exmars
NO_STAGE= yes
post-extract:
@${RM} -rf ${WRKSRC}/fsh94nop0.2
@${MV} ${WRKDIR}/fsh* ${WRKDIR}/optimax/fsh* ${WRKSRC}
post-patch:
@${REINPLACE_CMD} -e 's|-O6|${CFLAGS} -O3|; s|^CCFLAGS +=.*||' \
${BUILD_WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -i "" -e 's|^#!/.*|#!${PERL}|' ${WRKSRC}/*.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/opti06_3.pl ${PREFIX}/bin/${PORTNAME}
${INSTALL_SCRIPT} ${WRKSRC}/remote.pl ${PREFIX}/bin/${PORTNAME}-remote
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/optimars ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/optitools.pm ${SITE_PERL}
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${CP} -r *.red fsh* templates phase3.lst tables \
${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.unix ${DOCSDIR}
.endif
.include <bsd.port.mk>