Files

61 lines
2.2 KiB
Tcl

# -*- 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
name kermit
version 9.0.302
categories comms
maintainers nomaintainer
distname cku[lindex [split ${version} .] end]
platforms darwin freebsd
license BSD
homepage https://www.kermitproject.org/ck90.html
master_sites https://www.kermitproject.org/ftp/kermit/archives/
description Serial and network communications package.
long_description C-Kermit is a combined serial and network \
communication software package offering \
a consistent, medium-independent, \
cross-platform approach to connection \
establishment, terminal sessions, file \
transfer, character-set translation, \
numeric and alphanumeric paging, and \
automation of communication tasks.
checksums rmd160 ef3a71b5a42868c80408ac09662d00b71da0b0c8 \
sha256 0d5f2cd12bdab9401b4c836854ebbf241675051875557783c332a6a40dac0711 \
size 3122219
extract.mkdir yes
build.target
patchfiles patch-makefile \
patch-ckuus5.c \
main_type.patch \
implicit.patch
platform darwin {
build.target macosx
}
platform freebsd {
set major [ string index ${os.version} 0 ]
set minor [ string index ${os.version} 2 ]
build.target freebsd${major}${minor}
}
configure {
reinplace "s|@@prefix@@|${prefix}|g" ${worksrcpath}/ckuus5.c ${worksrcpath}/makefile
reinplace {s| CC=$(CC) | CC="$(CC)" |g} ${worksrcpath}/makefile
reinplace {s| CC2=$(CC2) | CC2="$(CC2)" |g} ${worksrcpath}/makefile
reinplace "s|CC= cc|CC= ${configure.cc} [get_canonical_archflags]|g" ${worksrcpath}/makefile
reinplace "s|CC2= cc|CC2= ${configure.cc} [get_canonical_archflags]|g" ${worksrcpath}/makefile
}
pre-destroot {
file mkdir ${destroot}${prefix}/share/doc/kermit
}
livecheck.type regexm
livecheck.regex {<td><b>Version:</b></td>\n<td>([0-9\.]+)</td>}