summaryrefslogtreecommitdiff
path: root/packages/cacao/cacao-cldc_0.98.bb
blob: f7797206de61da94e618e8de364780cb2b7918fc (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

require cacao.inc

SRC_URI +="file://midpath.patch;patch=1 \
           file://offsets_make.patch;patch=1 \
	   file://classpath_var.patch;patch=1 \
	   file://libmath.patch;patch=1 \
	   file://arm_mmap.patch;patch=1 \
          "
SRC_URI_append_arm = "file://offset.h_arm.patch;patch=1"

DEPENDS = "cacaoh-cldc-native ecj-native classpath-minimal-native virtual/cldc-api-1.1 libtool zlib"
RDEPENDS = "virtual/cldc-api-1.1"
RPROVIDES = "virtual/java"

EXTRA_OECONF += "--with-classpath-libdir=${STAGING_LIBDIR}/classpath-minimal \
                 --with-classpath-includedir=${STAGING_INCDIR}/classpath-minimal \
		 --enable-jni \
                 --enable-java=cldc1.1 \
                 --with-classpath=cldc1.1 \
                 --with-classpath-classes=${STAGING_LIBDIR}/java/cldc1.1.jar \
		 --with-target-classpath-classes=${libdir}/java/cldc1.1.jar \
		 --with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh \
		 --disable-libjvm \
                "

PACKAGES = "${PN} ${PN}-doc ${PN}-dbg" 

FILES_${PN} = "${bindir}/cacao"
FILES_${PN}-doc = "${datadir}/man"
FILES_${PN}-dbg = "${bindir}/.debug ${libdir}/.debug/lib*.so*"

ALTERNATIVE_NAME = "java"
ALTERNATIVE_PATH = "${bindir}/cacao"
ALTERNATIVE_PRIORITY = "10"