freebsd-ports/cad/mars/Makefile

60 lines
1.4 KiB
Makefile
Raw Normal View History

2000-02-13 04:25:05 +01:00
# Ports collection makefile for: MaRS
# Date created: Mon Nov 18, 1996
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
#
1999-08-25 06:58:03 +02:00
# $FreeBSD$
#
PORTNAME= mars
PORTVERSION= 2.1
PORTREVISION= 2
CATEGORIES= cad
MASTER_SITES= ftp://ftp.cs.umd.edu/pub/sdag/MaRS/
DISTNAME= MaRS-${PORTVERSION}
.if !defined(NOPORTDOCS)
1999-10-27 10:12:45 +02:00
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MaRS-2-doc${EXTRACT_SUFX}
.endif
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= gahr@FreeBSD.org
2003-02-20 18:07:10 +01:00
COMMENT= Maryland Routing Simulator
MAKE_JOBS_UNSAFE= yes
OPTIONS= X11 "Build with X11 support via Motif" on
.include <bsd.port.pre.mk>
NO_WRKSUBDIR= yes
.if defined(WITH_X11)
USE_MOTIF= yes
MAKEFILE= Makefile.XMotif
.else
MAKEFILE= Makefile.NoX
.endif
ALL_TARGET= depend mars
MAN1= mars.1
post-configure:
@${REINPLACE_CMD} -e 's/INFINITY/MARS_INFINITY/g' \
${WRKSRC}/include/route.h \
${WRKSRC}/comps/exBF.c \
${WRKSRC}/comps/exBF_ack.c \
${WRKSRC}/comps/route.c \
${WRKSRC}/comps/segal.c \
${WRKSRC}/comps/spf.c
2007-05-27 05:03:31 +02:00
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mars ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/man1/mars.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/mars
1999-08-22 21:01:07 +02:00
@${CHMOD} a+rx ${PREFIX}/share/doc/mars
@(cd ${PREFIX}/share/doc ; \
1999-10-27 10:12:45 +02:00
${TAR} xfpz /${DISTDIR}/MaRS-2-doc${EXTRACT_SUFX} ; \
[ -d mars ] && ${RM} -rf mars; \
${MV} doc mars )
.endif
.include <bsd.port.post.mk>