Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / ckermit / ckermit_209.oe
1 DESCRIPTION = "C-Kermit is a combined serial and network communication \
2 software package offering a consistent, medium-independent, \
3 cross-platform approach to connection establishment, terminal \
4 sessions, file transfer, character-set translation, and automation \
5 of communication tasks."
6 SECTION = "console/network"
7 SRC_URI = "ftp://kermit.columbia.edu/kermit/archives/cku${PV}.tar.gz \
8            file://cross.patch;patch=1 \
9            file://compile.patch;patch=1"
10
11 export CC_FOR_BUILD = "${BUILD_CC}"
12 export CC2 = "${CC}"
13 export BINDIR = "${bindir}"
14 export MANDIR = "${mandir}/man1"
15 export INFODIR = "${infodir}"
16
17 python do_unpack () {
18         oe.mkdirhier(oe.data.expand('${S}', d))
19         oe.build.exec_func('base_do_unpack', d, [ '${S}' ])
20 }
21
22 do_compile () {
23         # read $(SourceTree)/ckccfg.txt to understand this :-)
24         oe_runmake wermit \
25                 CFLAGS="${CFLAGS} -DLINUX -DCK_POSIX_SIG \
26                 -DNOTCPOPTS -DLINUXFSSTND -DNOCOTFMC -DPOSIX -DUSE_STRERROR \
27                 -DNOSYSLOG -DHAVE_PTMX -DNO_DNS_SRV -DNOGFTIMER \
28                 -DNOB_50 -DNOB_75 -DNOB_134 -DNOB_150 -DNOB_200 \
29                 -DNOB_1800 -DNOB_3600 -DNOB_7200 -DNOB_76K -DNOB_230K \
30                 -DNOB_460K -DNOB_921K \
31                 -DNOAPC -DNOCSETS -DNONET -DNOUNICODE -DNOHELP -DNODEBUG \
32                 -DNOFRILLS -DNOFTP -DNODIAL -DNOPUSH -DNOIKSD -DNOHTTP -DNOFLOAT \
33                 -DNOSERVER -DNOSEXP -DNORLOGIN -DNOOLDMODEMS -DNOSSH -DNOLISTEN \
34                 -DNORESEND -DNOAUTODL -DNOSTREAMING -DNOHINTS -DNOCKXYZ -DNOLEARN \
35                 -DNORECALL -DNOMKDIR -DNOPERMS -DNOCKTIMERS -DNOCKREGEX -DNOREALPATH \
36                 -DCK_SMALL -DNOLOGDIAL -DNORENAME -DNOWHATAMI"
37 }
38
39 do_install () {
40         install -d ${D}/${BINDIR} ${D}/${MANDIR} ${D}/${INFODIR}
41         oe_runmake 'DESTDIR=${D}' 'MANDIR=${D}/${MANDIR}' install
42 }