summaryrefslogtreecommitdiff
path: root/recipes/jcraft/jsch_0.1.40.bb
blob: c267bc0205cbcc0d9b2f94fc6d9edd0e1f02377b (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
DESCRIPTION = "SSH implementation in Java"
LICENSES = "BSD"

HOMEPAGE = "http://www.jcraft.com/jsch"

SRC_URI = "${SOURCEFORGE_MIRROR}/jsch/jsch-${PV}.zip"

inherit java-library

DEPENDS = "fastjar-native jzlib"
DEPENDS_virtclass-native = "fastjar-native jzlib-native"

RDEPENDS_${PN} = "libjzlib-java"
RDEPENDS_${PN}_virtclass-native = ""

PR = "r2"

do_compile() {
  mkdir -p build

  oe_makeclasspath cp -s jzlib

  javac -sourcepath src -cp $cp -d build `find src -name "*.java"`

  fastjar -C build -c -f ${JARFILENAME} .
}

SRC_URI[md5sum] = "b59cec19a487e95aed68378976b4b566"
SRC_URI[sha256sum] = "ca9d2ae08fd7a8983fb00d04f0f0c216a985218a5eb364ff9bee73870f28e097"

NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"