Source
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup deprecated 1.0
name scotty
version 3.0.0
revision 9
categories net
maintainers nomaintainer
description Network management extensions to Tcl that enables \
TCP/UDP connections, DNS queries, and SNMP. The graphical \
network mapper tkined is also included.
long_description ${description}
homepage https://wiki.tcl-lang.org/page/Scotty
platforms darwin
license Tcl/Tk
worksrcdir ${name}/trunk
master_sites macports
checksums rmd160 e61fcc86c0f9bddfd356497b1f3c160cab946495 \
sha256 ebf65199b3205d309056df1de3f6e8a9ed672ce1de82c72e4be527f42e1cabff \
size 10969088
distfiles ${name}-${version}-rev2813.tar.bz2
use_bzip2 yes
#fetch.type svn
#svn.url https://subversion.eecs.iu-bremen.de/svn/schoenw/src/scotty
depends_lib port:tcl \
port:tk \
port:zlib
patchfiles patch-Makefile.in.diff \
patch-configure.in.diff \
patch-tnm-library-init.tcl.diff
startupitem.create yes
startupitem.name nmicmpd
startupitem.executable "${prefix}/bin/nmicmpd"
autoconf.dir ${worksrcpath}/unix
configure.dir ${worksrcpath}/unix
build.dir ${worksrcpath}/unix
use_autoconf yes
configure.args --exec_prefix=${prefix} \
--with-tcl=${prefix} \
--with-tk=${prefix}
configure.cflags-append -DBIND_8_COMPAT \
-DUSE_INTERP_RESULT \
-DUSE_INTERP_ERRORLINE
destroot.target install sinstall
post-patch {
reinplace "s|\$(INSTALL_ROOT)|${destroot}|g" \
${worksrcpath}/unix/Makefile.in
reinplace "s|\$(BIN_INSTALL_DIR)/nmicmpd|${prefix}/bin/nmicmpd|g" \
${worksrcpath}/unix/Makefile.in