mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# Ports collection makefile for: MaRS
|
|
# Date created: Mon Nov 18, 1996
|
|
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mars
|
|
PORTVERSION= 2.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= cad
|
|
MASTER_SITES= ftp://ftp.cs.umd.edu/pub/sdag/MaRS/
|
|
DISTNAME= MaRS-${PORTVERSION}
|
|
.if !defined(NOPORTDOCS)
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MaRS-2-doc${EXTRACT_SUFX}
|
|
.endif
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
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
|
|
|
|
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
|
|
@${CHMOD} a+rx ${PREFIX}/share/doc/mars
|
|
@(cd ${PREFIX}/share/doc ; \
|
|
${TAR} xfpz /${DISTDIR}/MaRS-2-doc${EXTRACT_SUFX} ; \
|
|
[ -d mars ] && ${RM} -rf mars; \
|
|
${MV} doc mars )
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|