mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
53 lines
1.4 KiB
Makefile
53 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= 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
|
|
|
|
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>
|