blob: fb7ea3cce864f68f91756d06444b9b5412baaa08 (
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
44
45
46
47
48
49
50
51
52
53
54
55
|
DESCRIPTION = "Unix socket, debug and hexdump libraries"
LICENSE = "LGPL"
SECTION = "libs"
HOMEPAGE = "http://www.matthew.ath.cx/projects/java"
AUTHOR = "Matthew Johnson <web@matthew.ath.cx>"
PR = "r1"
inherit java-library
DEPENDS = "classpath-native classpath fastjar-native"
SRC_URI = "http://www.matthew.ath.cx/projects/java/libmatthew-java-${PV}.tar.gz"
S = "${WORKDIR}/libmatthew-java-${PV}"
do_compile() {
oe_runmake \
JCFLAGS="-source 1.5" \
JAVAC="javac" \
JAR="fastjar" \
JAVAH="gjavah" \
INCLUDES="-I${STAGING_INCDIR}/classpath" \
LDFLAGS="-fpic -shared -lc ${LDFLAGS}" \
LD="${CC}"
}
do_stage() {
oe_jarinstall -s cgi-0.5.jar cgi.jar
oe_jarinstall -s debug-disable-1.1.jar debug-disable.jar
oe_jarinstall -s debug-enable-1.1.jar debug-enable.jar
oe_jarinstall -s hexdump-0.1.jar hexdump.jar
oe_jarinstall -s io-0.1.jar io.jar
oe_jarinstall -s unix-0.2.jar unix.jar
}
do_install() {
oe_jarinstall cgi-0.5.jar cgi.jar
oe_jarinstall debug-disable-1.1.jar debug-disable.jar
oe_jarinstall debug-enable-1.1.jar debug-enable.jar
oe_jarinstall hexdump-0.1.jar hexdump.jar
oe_jarinstall io-0.1.jar io.jar
oe_jarinstall unix-0.2.jar unix.jar
oe_libinstall -so libcgi-java ${D}${libdir_jni}
oe_libinstall -so libunix-java ${D}${libdir_jni}
}
PACKAGES += "${PN}-jni ${PN}-jni-dbg"
RDEPENDS_${JPN} = "${PN}-jni"
FILES_${PN}-jni = "${libdir_jni}/lib*.so"
FILES_${PN}-jni-dbg = "${libdir_jni}/.debug/lib*.so"
|