surpport seeking the recorded video
[vuplus_openembedded] / recipes / classpath / classpath.inc
1 DESCRIPTION = "GNU Classpath standard Java libraries"
2 HOMEPAGE = "http://www.gnu.org/software/classpath/"
3 SECTION = "libs"
4 PRIORITY = "optional"
5 LICENSE = "Classpath"
6 PBN = "classpath"
7
8 DEPENDS = "virtual/javac-native fastjar-native zip-native gmp antlr-native"
9 RPROVIDES = ""
10
11 RDEPENDS_${PN} = "${PBN}-common (>= ${PV})"
12 RDEPENDS_${PN}-examples = "java2-runtime ${PN}-awt"
13 RDEPENDS_${PN}-tools = "java2-runtime"
14
15 RPROVIDES_${PN} = "${PBN}"
16 RPROVIDES_${PN}-common = "${PBN}-common"
17 RPROVIDES_${PN}-gtk = "${PBN}-awt"
18
19 SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz"
20           
21
22 S = "${WORKDIR}/${PBN}-${PV}"
23
24 export JAVA = "java"
25
26 EXTRA_OECONF = "\
27   --with-glibj \
28   --with-ecj=javac \
29   --with-fastjar=fastjar \
30   --includedir=${includedir}/classpath \
31   --with-vm=java \
32   --disable-Werror \
33   --with-antlr-jar=${STAGING_DATADIR_JAVA_NATIVE}/antlr.jar \
34   "
35
36 inherit autotools java
37
38 do_configure_prepend () {
39
40         cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}
41 }
42         
43
44 do_stage() {
45         install -d ${STAGING_INCDIR}/classpath
46         install -m 0644 include/jni.h ${STAGING_INCDIR}/classpath
47         install -m 0644 include/jni_md.h ${STAGING_INCDIR}/classpath/
48         install -m 0644 include/jawt.h ${STAGING_INCDIR}/classpath
49         install -m 0644 include/jawt_md.h ${STAGING_INCDIR}/classpath/
50
51         install -d ${STAGING_DATADIR}/classpath
52         install -m 0644 lib/glibj.zip ${STAGING_DATADIR}/classpath  
53 }
54
55 do_install() {
56         autotools_do_install
57         mv ${D}${libdir}/security ${D}${libdir}/${PBN}
58 }
59
60 # Defines the packages that this classpath recipe creates.
61 # This allows the classpath-minimal variants to override this
62 # again.
63 CPPACKAGES = "${PBN}-common ${PN}-examples \
64              ${PN}-tools ${PN}-tools-doc \
65              ${PN}-gtk ${PN}-gconf"
66
67 PACKAGES =+ "${CPPACKAGES}"
68
69 FILES_${PN}-dev += "${libdir}/${PBN}/*.la ${incdir}/${PBN}"
70
71 FILES_${PBN}-common = "${datadir}/${PBN}/glibj.zip ${libdir}/logging.properties ${libdir}/${PBN}/security"
72 FILES_${PN}-examples = "${datadir}/${PBN}/examples"
73
74 FILES_${PN}-tools = "${datadir}/${PBN}/tools.zip ${bindir}"
75 FILES_${PN}-tools-doc = "${mandir}"
76
77 FILES_${PN}-dbg += "${libdir}/${PBN}/.debug"
78 FILES_${PN}-doc = "${infodir}"
79
80 # gcjwebplugin - not built yet
81 #FILES_${PN}-gcjwebplugin = "${libdir}/${PBN}/libgcjwebplugin.so"
82 FILES_${PN}-gtk = "${libdir}/${PBN}/libgtkpeer.so ${libdir}/${PBN}/libjawt.so"
83 FILES_${PN}-gconf = "${libdir}/${PBN}/libgconfpeer.so"
84 FILES_${PN} = "${libdir}/${PBN}/lib*so*"
85