freebsd-ports/games/optimax/Makefile
Dirk Meyer de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00

52 lines
1.4 KiB
Makefile

# New ports collection makefile for: optimax
# Date created: 2008-01-15
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= optimax
PORTVERSION= 0.63
PORTREVISION= 3
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= alepulver@FreeBSD.org
COMMENT= A Core War optimizer written in Perl
RUN_DEPENDS= ${SITE_PERL}/mach/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk
USE_ZIP= yes
USE_PERL5_RUN= yes
WRKSRC= ${WRKDIR}/publish_${PORTVERSION:S/.//}
BUILD_WRKSRC= ${WRKSRC}/optimars/optimars_0.1
ALL_TARGET= exmars
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>