mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
aa0fc158c7
PR: ports/147908 Submitted by: Andrius Morkunas <hinokind@gmail.com> Feature safe: yes
73 lines
1.7 KiB
Makefile
73 lines
1.7 KiB
Makefile
# New ports collection makefile for: scotty-current
|
|
# Date created: 06 June 2000
|
|
# Whom: Sergey Osokin aka oZZ <ports@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= scotty
|
|
PORTVERSION= 20000221
|
|
PORTREVISION= 5
|
|
CATEGORIES= net-mgmt tcl tk
|
|
MASTER_SITES= ftp://ftp.ibr.cs.tu-bs.de/pub/local/tkined/devel/
|
|
DISTNAME= ${PORTNAME}-00-02-21
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Network management extensions to tcl
|
|
|
|
.ifdef (WITHOUT_X11)
|
|
PKGNAMESUFFIX= -nox11
|
|
LIB_DEPENDS= tcl84.1:${PORTSDIR}/lang/tcl84
|
|
.else
|
|
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
|
|
.endif
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-tcl=${PREFIX}/lib/tcl8.4 \
|
|
--enable-multicast
|
|
|
|
.ifdef (WITHOUT_X11)
|
|
CONFIGURE_ARGS+=--with-tk=no
|
|
.else
|
|
CONFIGURE_ARGS+=--with-tk=${PREFIX}/lib/tk8.4
|
|
CONFIGURE_ENV+= wish=${PREFIX}/bin/wish8.4
|
|
.endif
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
|
|
MAN1= scotty.1
|
|
MAN8= nmicmpd.8 nmtrapd.8
|
|
MANN= Tnm.n TnmDialog.n TnmDisman.n TnmEther.n TnmIetf.n\
|
|
TnmInet.n TnmMap.n TnmMib.n TnmSnmp.n TnmTerm.n\
|
|
dns.n icmp.n job.n map.n mib.n netdb.n \
|
|
ntp.n snmp.n sunrpc.n syslog.n udp.n
|
|
PLIST_SUB= SCOTTY_VERSION=3.0.0 TKINED_VERSION=1.5.0
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
INSTALL_TARGET= tnm-install sinstall
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
MAN1+= tkined.1
|
|
MANN+= ined.n
|
|
PLIST_SUB+= X11=''
|
|
INSTALL_TARGET+=tki-install
|
|
.else
|
|
PLIST_SUB+= X11='@comment '
|
|
.endif
|
|
|
|
LATEST_LINK= scotty3
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
${MV} ${WRKSRC}/scotty.c ${WRKSRC}/scotty.c.orig
|
|
${CP} -p ${FILESDIR}/scotty.c ${WRKSRC}/scotty.c
|
|
|
|
post-install:
|
|
${RM} -f ${PREFIX}/bin/scotty ${PREFIX}/bin/tkined
|
|
${LN} -s scotty3.0.0 ${PREFIX}/bin/scotty
|
|
.ifndef WITHOUT_X11
|
|
${LN} -s tkined1.5.0 ${PREFIX}/bin/tkined
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|