summaryrefslogtreecommitdiffstats
path: root/recipes-core/classpath/classpath.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/classpath/classpath.inc')
-rw-r--r--recipes-core/classpath/classpath.inc86
1 files changed, 86 insertions, 0 deletions
diff --git a/recipes-core/classpath/classpath.inc b/recipes-core/classpath/classpath.inc
new file mode 100644
index 0000000..dfe4a68
--- /dev/null
+++ b/recipes-core/classpath/classpath.inc
@@ -0,0 +1,86 @@
1DESCRIPTION = "GNU Classpath standard Java libraries"
2HOMEPAGE = "http://www.gnu.org/software/classpath/"
3SECTION = "libs"
4PRIORITY = "optional"
5LICENSE = "Classpath"
6PBN = "classpath"
7
8
9inherit autotools java
10
11DEPENDS = "virtual/javac-native fastjar-native zip-native gettext-native gmp antlr-native gtk+ gconf libxtst"
12
13RPROVIDES_${PN} = ""
14
15RDEPENDS_${PN} = "${PBN}-common (>= ${PV})"
16RDEPENDS_${PN}-examples = "java2-runtime ${PN}-awt"
17RDEPENDS_${PN}-tools = "java2-runtime"
18
19RPROVIDES_${PN} = "${PBN}"
20RPROVIDES_${PN}-common = "${PBN}-common"
21RPROVIDES_${PN}-gtk = "${PBN}-awt"
22
23SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz"
24
25S = "${WORKDIR}/${PBN}-${PV}"
26
27export JAVA = "java"
28
29EXTRA_OECONF = "\
30 --with-glibj \
31 --with-ecj=javac \
32 --with-fastjar=fastjar \
33 --includedir=${includedir}/classpath \
34 --with-vm=java \
35 --disable-Werror \
36 --with-antlr-jar=${STAGING_DATADIR_JAVA_NATIVE}/antlr.jar \
37 --disable-alsa \
38 --disable-dssi \
39 --disable-qt4-peer \
40 --disable-plugin \
41 --enable-gconf-peer \
42 --enable-gtk-peer \
43 --enable-local-sockets \
44 --with-vm=java \
45 "
46
47
48EXTRA_OECONF += "\
49 "
50
51do_configure_prepend () {
52 cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}
53}
54
55
56do_install() {
57 autotools_do_install
58 mv ${D}${libdir}/security ${D}${libdir}/${PBN}
59}
60
61# Defines the packages that this classpath recipe creates.
62# This allows the classpath-minimal variants to override this
63# again.
64CPPACKAGES = "${PBN}-common ${PN}-examples \
65 ${PN}-tools ${PN}-tools-doc \
66 ${PN}-gtk ${PN}-gconf"
67
68PACKAGES =+ "${CPPACKAGES}"
69
70FILES_${PN}-dev += "${libdir}/${PBN}/*.la ${incdir}/${PBN}"
71
72FILES_${PBN}-common = "${datadir}/${PBN}/glibj.zip ${libdir}/logging.properties ${libdir}/${PBN}/security"
73FILES_${PN}-examples = "${datadir}/${PBN}/examples"
74
75FILES_${PN}-tools = "${datadir}/${PBN}/tools.zip ${bindir}"
76FILES_${PN}-tools-doc = "${mandir}"
77
78FILES_${PN}-dbg += "${libdir}/${PBN}/.debug"
79FILES_${PN}-doc = "${infodir}"
80
81# gcjwebplugin - not built yet
82#FILES_${PN}-gcjwebplugin = "${libdir}/${PBN}/libgcjwebplugin.so"
83FILES_${PN}-gtk = "${libdir}/${PBN}/libgtkpeer.so ${libdir}/${PBN}/libjawt.so"
84FILES_${PN}-gconf = "${libdir}/${PBN}/libgconfpeer.so"
85FILES_${PN} = "${libdir}/${PBN}/lib*so*"
86