aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/oracle-java/oracle-jse-jdk.inc
blob: 6f131257a06826a2c2b6374da1f8f2bf44e8858c (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
SUMMARY = "Oracle Java SE Development Kit binaries"
DESCRIPTION = "This is the proprietary JDK from Sun/Oracle, with the Hotspot JVM. It is\
 provided by Sun/Oracle only in binary format.\
 Java Platform, Standard Edition (Java SE) lets you develop and deploy Java\
 applications on desktops and servers, as well as in today's demanding\
 embedded environments. Java offers the rich user interface, performance,\
 versatility, portability, and security that today's applications require.\
 To develop Java applications and applets, you need the JDK (Java Development\
 Kit), which includes the JRE."

JDK_JRE = "jdk"
require oracle-jse.inc

do_install_class-native() {
    install -d -m 0755 ${D}${libdir}
    install -d -m 0755 ${D}${bindir}
    cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${libdir}/
    for prog in java javac; do
	( cd ${D}${bindir} && ln -sf ${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin/$prog )
    done

    ( cd ${D}${libdir}/${JDK_JRE}${PV}_${PV_UPDATE}/bin ; \
      ln -sf javah gjavah ; \
      ln -sf jar fastjar )
}

BBCLASSEXTEND = "native"

RPROVIDES_${PN} += "java2-development"
PROVIDES += "virtual/javac virtual/java-initial"