source: trunk/dports/comms/kermit/Portfile @ 3173

Last change on this file since 3173 was 3173, checked in by jkh, 16 years ago

Mass-merge of destroot target changes. Before committing this, I also
laid down a PRE_DESTROOT_TARGET so we can easily compare the before and
after photos (or, in extremis, revert this change). I doubt that will be
necessary, however, since things appear to be working quite well with this
change and it's better to do it sooner rather than later since it changes the
rules about what commands/variables to use in new ports.

Approved by: fkr

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.6 2003/08/05 09:28:58 jkh Exp $
2
3PortSystem 1.0
4name                    kermit
5version                 8.0.206
6categories              comms
7maintainers             daved@nostrum.com
8distname                cku206
9platforms               darwin freebsd
10master_sites            ftp://kermit.columbia.edu/kermit/archives/ \
11                        ftp://ftp.icm.edu.pl/pub/kermit/archives/
12checksums               md5 d16f433e9a347f96d09962be5d8ab71f
13homepage                http://www.kermit-project.org/
14description             Serial and network communications package.
15long_description        C-Kermit is a combined serial and network \
16                        communication software package offering \
17                        a consistent, medium-independent, \
18                        cross-platform approach to connection \
19                        establishment, terminal sessions, file \
20                        transfer, character-set translation, \
21                        numeric and alphanumeric paging, and \
22                        automation of communication tasks.
23
24worksrcdir
25build.target
26
27variant darwin {
28        build.target            macosx102nc
29}
30
31variant freebsd {
32        set major               [ string index ${os.version} 0 ]
33        set minor               [ string index ${os.version} 2 ]
34        build.target            freebsd${major}${minor}
35}
36
37configure {
38        reinplace "s|^BINDIR = /usr/local|BINDIR = ${prefix}|" \
39                ${workdir}/makefile
40        reinplace "s|^MANDIR = /usr|MANDIR = ${prefix}|" ${workdir}/makefile
41        reinplace "s|^INFODIR =|INFODIR = ${prefix}/share/kermit|" \
42                ${workdir}/makefile
43        reinplace "s|/usr/local|${prefix}|g" ${workdir}/ckuus5.c
44        reinplace "973,996d" ${workdir}/makefile
45}
46
47pre-destroot { system "install -d ${destroot}${prefix}/bin"
48              system "install -d ${destroot}${prefix}/man/man1"
49              system "install -d ${destroot}${prefix}/share/kermit"
50            }
Note: See TracBrowser for help on using the repository browser.