summaryrefslogtreecommitdiff
path: root/net/tcl-scotty/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/tcl-scotty/Makefile')
-rw-r--r--net/tcl-scotty/Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/net/tcl-scotty/Makefile b/net/tcl-scotty/Makefile
index 31db79a2cab..22504f0b7bf 100644
--- a/net/tcl-scotty/Makefile
+++ b/net/tcl-scotty/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.24 2009/08/20 15:24:59 jwise Exp $
+# $NetBSD: Makefile,v 1.25 2011/09/02 08:06:55 he Exp $
#
DISTNAME= scotty-${DIST_VERS}
PKGNAME= tcl-scotty-${DIST_VERS}
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= net tcl
MASTER_SITES= ftp://ftp.ibr.cs.tu-bs.de/pub/local/tkined/
@@ -11,13 +11,18 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nosuchname.net/scotty/
COMMENT= Network management extensions to TCL
+LICENSE= 2-clause-bsd
+
BUILDLINK_API_DEPENDS.tcl+= tcl>=8.4.6nb4
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= destdir
DIST_VERS= 2.1.11
-WRKSRC= ${WRKDIR}/${DISTNAME}/unix
+CONFIGURE_DIRS= unix
+BUILD_DIRS= unix
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-tcl-config=${BUILDLINK_PREFIX.tcl}/lib \
--enable-multicast \
@@ -27,17 +32,21 @@ CONFIGURE_ENV+= TARGET=scotty
USE_LIBTOOL= yes
USE_TOOLS+= lex yacc
+INSTALL_TARGET= tnm-install install-man sinstall
+
.include "../../lang/tcl/buildlink3.mk"
post-extract:
- @${RM} -f ${WRKSRC}/../doc/http.n
- @${RM} -f ${WRKSRC}/../doc/tkined.1
+ cd ${WRKSRC}/${BUILD_DIRS} && ${RM} -f ../doc/http.n
+ cd ${WRKSRC}/${BUILD_DIRS} && ${RM} -f ../doc/tkined.1
-do-install:
- @${CP} ${WRKSRC}/../tnm/ntping/ntping.8 ${WRKSRC}/../doc
- @cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} tnm-install install-man sinstall
+pre-install:
+ cd ${WRKSRC}/${BUILD_DIRS} && ${INSTALL} ../tnm/ntping/ntping.8 ../doc
post-install:
- cd ${PREFIX}/bin && ${LN} -f -s scotty${DIST_VERS} scotty
+ 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 "../../mk/bsd.pkg.mk"