42e20fa84f181d6b32d5fb890689a4b847e40bbf
[vuplus_openembedded] / putty / putty_cvs.oe
1 DESCRIPTION = "PuTTY is a free implementation of Telnet and SSH for Win32 and Unix platforms"
2 SECTION = "console/network"
3
4 SRC_URI = "cvs://cvsuser:anonymous@cvs.tartarus.org/home/cvs;module=putty \
5            file://lib.pro \
6            file://plink.pro \
7            file://pscp.pro \
8            file://psftp.pro"
9
10 TARGETS = "lib plink pscp psftp"
11 PV = "0.54-cvs-${CVSDATE}"
12
13 S = "${WORKDIR}/putty"
14
15 inherit qmake-base
16
17 do_configure() {
18         for t in ${TARGETS}
19         do
20                 install -m 0644 ${WORKDIR}/$t.pro .
21         done
22         cd charset && perl sbcsgen.pl
23 }
24
25 do_compile() {
26         for t in ${TARGETS}
27         do
28                 rm -f Makefile
29                 qmake -makefile -o Makefile -spec ${QMAKESPEC} $t.pro
30                 oe_runmake
31         done
32 }
33
34 do_install() {
35         install -d ${D}/${libdir}
36         oe_libinstall -so libputty ${D}/${libdir}
37         install -d ${D}/${bindir}/
38         install -m 0755 plink ${D}/${bindir}/ssh
39         install -m 0755 pscp ${D}/${bindir}/scp
40         install -m 0755 psftp ${D}/${bindir}/sftp
41 }
42