pkgsrc/net/tcl-scotty/Makefile
he 5b73f85427 Make tcl-scotty build with minimal warnings and install again.
This change is the result of a large sweep triggered by the new
Tcl which has const'ified many interfaces -- this follows suit with
many corresponding changes internally in scotty => lots of new
patches.

Also, change so as to not access interp->errorLine and
interp->result directly, use the accessor functions instead,
and turn off the corresponding compatibility defines.

The old patch files have been renamed and expanded, the new
scheme for naming patch files is used.

Only minimal functionality testing is done, but what has been
done shows that it basically works again.

PKGREVISION bumped.
2014-03-05 13:52:29 +00:00

55 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2014/03/05 13:52:29 he Exp $
#
DISTNAME= scotty-${DIST_VERS}
PKGNAME= tcl-scotty-${DIST_VERS}
PKGREVISION= 10
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
.include "../../mk/bsd.prefs.mk"
MAKE_FLAGS+= CFLAGS=${CFLAGS:Q} GDMO_LIBS=
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"