# $Id$ 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 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 extract.mkdir yes build.target patchfiles patch-makefile patch-ckuus5.c 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 {Version:\n([0-9\.]+)}