distname cku[lindex [split ${version} .] end]
homepage http://www.columbia.edu/kermit/ckermit.html
master_sites ftp://kermit.columbia.edu/kermit/archives/ \
http://kermit.columbia.edu/ftp/archives/ \
ftp://ftp.icm.edu.pl/pub/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
patchfiles patch-makefile patch-ckuus5.c
set major [ string index ${os.version} 0 ]
set minor [ string index ${os.version} 2 ]
build.target freebsd${major}${minor}
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
file mkdir ${destroot}${prefix}/share/doc/kermit
livecheck.regex {<td><b>Version:</b></td>\n<td>([0-9\.]+)</td>}