summaryrefslogtreecommitdiff
path: root/ckermit/ckermit_209.oe
blob: 1f512159bdd7d297fd64444f6babe7d3e0c95814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
DEPENDS = "virtual/libc"
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, and automation \
of communication tasks."

SRC_URI = "ftp://kermit.columbia.edu/kermit/archives/cku${PV}.tar.gz \
	   file://${FILESDIR}/cross.patch;patch=1 \
	   file://${FILESDIR}/compile.patch;patch=1"

export CC_FOR_BUILD = "${BUILD_CC}"
export CC2 = "${CC}"
export BINDIR = "${bindir}"
export MANDIR = "${mandir}/man1"
export INFODIR = "${infodir}"

python do_unpack () {
	oe.mkdirhier(oe.data.expand('${S}', d))
	oe.build.exec_func('base_do_unpack', d, [ '${S}' ])
}

do_compile () {
	# read $(SourceTree)/ckccfg.txt to understand this :-)
	oe_runmake wermit \
		CFLAGS="${CFLAGS} -DLINUX -DCK_POSIX_SIG \
		-DNOTCPOPTS -DLINUXFSSTND -DNOCOTFMC -DPOSIX -DUSE_STRERROR \
		-DNOSYSLOG -DHAVE_PTMX -DNO_DNS_SRV -DNOGFTIMER \
		-DNOB_50 -DNOB_75 -DNOB_134 -DNOB_150 -DNOB_200 \
		-DNOB_1800 -DNOB_3600 -DNOB_7200 -DNOB_76K -DNOB_230K \
		-DNOB_460K -DNOB_921K \
		-DNOAPC -DNOCSETS -DNONET -DNOUNICODE -DNOHELP -DNODEBUG \
		-DNOFRILLS -DNOFTP -DNODIAL -DNOPUSH -DNOIKSD -DNOHTTP -DNOFLOAT \
		-DNOSERVER -DNOSEXP -DNORLOGIN -DNOOLDMODEMS -DNOSSH -DNOLISTEN \
		-DNORESEND -DNOAUTODL -DNOSTREAMING -DNOHINTS -DNOCKXYZ -DNOLEARN \
		-DNORECALL -DNOMKDIR -DNOPERMS -DNOCKTIMERS -DNOCKREGEX -DNOREALPATH \
		-DCK_SMALL -DNOLOGDIAL -DNORENAME -DNOWHATAMI"
}

do_install () {
	install -d ${D}/${BINDIR} ${D}/${MANDIR} ${D}/${INFODIR}
	oe_runmake 'DESTDIR=${D}' 'MANDIR=${D}/${MANDIR}' install
}