summaryrefslogtreecommitdiff
path: root/packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb')
-rw-r--r--packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb24
1 files changed, 22 insertions, 2 deletions
diff --git a/packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb b/packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb
index 3f90e4a7dd..abeea96a0a 100644
--- a/packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb
+++ b/packages/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb
@@ -1,8 +1,10 @@
-DESCRIPTION = "Java Language tools (javac, javah, javap, javadoc and apt) from OpenJDK"
+DESCRIPTION = "Java Language tools (sun-javac, javah, javap, javadoc and apt) from OpenJDK"
HOMEPAGE = "http://http://openjdk.java.net/groups/compiler"
LICENSE = "GPL"
-DEPENDS = "classpath-native fastjar-native ecj-initial"
+PR = "r3"
+
+DEPENDS = "classpath-native fastjar-native ecj-initial virtual/java-native"
S = "${WORKDIR}/icepick-0.0+hg20080118"
@@ -23,3 +25,21 @@ EXTRA_OECONF = "\
"
export JAVAC_OPTS="-bootclasspath ${STAGING_DATADIR_JAVA}/share/classpath/glibj.zip -source 5.0"
+
+do_stage() {
+ # Do install step manually to fine control installation names.
+ install -d ${bindir}
+ install -m 0755 tools/apt ${bindir}
+ install -m 0755 tools/javadoc ${bindir}
+ install -m 0755 tools/javah ${bindir}
+ install -m 0755 tools/javap ${bindir}
+
+ # Provide javac as sun-javac to not clash with the binary of the same
+ # name in ecj-bootstrap-native.
+ # This way ecj-bootstrap-native and openjdk-langtools-native can coexist
+ # in staging dir.
+ install -m 0755 tools/javac ${bindir}/sun-javac
+
+ install -d ${libdir}
+ install -m 0644 tools.jar ${libdir}
+}