summaryrefslogtreecommitdiff
path: root/net/tcl-scotty/Makefile
blob: da3464f0126318b9ce8afc65169ef5c148e1a67a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $NetBSD: Makefile,v 1.29 2012/11/07 14:33:54 he Exp $
#

DISTNAME=	scotty-${DIST_VERS}
PKGNAME=	tcl-scotty-${DIST_VERS}
PKGREVISION=	8
CATEGORIES=	net tcl
MASTER_SITES=	ftp://ftp.ibr.cs.tu-bs.de/pub/local/tkined/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.nosuchname.net/scotty/
COMMENT=	Network management extensions to TCL

LICENSE=	2-clause-bsd

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT= destdir

DIST_VERS=	2.1.11

CONFIGURE_DIRS=	unix
BUILD_DIRS=	unix

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-tcl-config=${BUILDLINK_PREFIX.tcl}/lib	\
		--enable-multicast				\
		--enable-gdmo --without-tk-config
CONFIGURE_ENV+=	TARGET=scotty

USE_LIBTOOL=	yes
USE_TOOLS+=	lex yacc

PLIST_SUBST+=	MACHINE="${MACHINE}"

INSTALL_TARGET= tnm-install install-man sinstall

post-extract:
	cd ${WRKSRC}/${BUILD_DIRS} && ${RM} -f ../doc/http.n
	cd ${WRKSRC}/${BUILD_DIRS} && ${RM} -f ../doc/tkined.1

pre-install:
	cd ${WRKSRC}/${BUILD_DIRS} && ${INSTALL} ../tnm/ntping/ntping.8 ../doc

post-install:
	cd ${DESTDIR}/${PREFIX}/bin && ${LN} -f -s scotty${DIST_VERS} scotty
	cd ${DESTDIR}/${PREFIX}/lib/tcl/tnm${DIST_VERS}; \
		sed -e 's:${DESTDIR}/::' <pkgIndex.tcl >pkgIndex.tcl.new; \
		rm -f pkgIndex.tcl; mv pkgIndex.tcl.new pkgIndex.tcl

.include "../../lang/tcl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"