aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/openjdk-langtools/openjdk-langtools-native_0.0+jdk7-b31.bb
blob: b258742fc49b4dc93eff511a965034cea95d26af (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
DESCRIPTION = "Java Language tools (sun-javac, javah, javap, javadoc and apt) from OpenJDK"
HOMEPAGE = "http://http://openjdk.java.net/groups/compiler"
LICENSE  = "GPL"

PR = "r3"

DEPENDS = "classpath-native fastjar-native ecj-initial virtual/java-native"

S = "${WORKDIR}/icepick-0.0+hg20080118"

SRC_URI = "\
	http://jalimo.evolvis.org/repository/sources/icepick-0.0+hg20080118.tar.bz2;name=archive \
	http://jalimo.evolvis.org/repository/sources/openjdk-langtools-jdk7-b31.tar.bz2;name=langtools \
	file://${PV}-build-fix.patch;apply=yes \
	"	

inherit java autotools native

EXTRA_OECONF = "\
	--with-javac=${STAGING_BINDIR}/ecj-initial \
	--with-vm=${STAGING_BINDIR}/java \
	--with-fastjar=${STAGING_BINDIR}/fastjar \
	--with-classpath=${STAGING_DATADIR}/classpath/glibj.zip \
	--with-langtools-src-dir=${WORKDIR}/openjdk-langtools-jdk7-b31 \
  "

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}
}

SRC_URI[archive.md5sum] = "ce7b1827e6f4cbe73b9ffa90b0d45a6a"
SRC_URI[archive.sha256sum] = "63170836095f8451498c813a1f93a9ec70a1164d82aa30650c0f2216ca4377ab"
SRC_URI[langtools.md5sum] = "670931f67b2e4ac46c6e0cd15418f2fa"
SRC_URI[langtools.sha256sum] = "f8b8820e410c137d279d14dec7e7a93217cc371acdfe1b3343b2278d1728932e"