blob: 48d54bb5fa828bfc6f372a6602bdd4687b7ef3db (
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
|
# classpath-native OE build file
# Copyright (C) 2006, Rene Wagner. All Rights Reserved
# Released under the MIT license (see org.handhelds.familiar/COPYING.MIT)
# NOTE: This is supposed to be used in conjunction with a VM (JamVM)
# to run build tools only. Don't compile any target java code
# against this!
include classpath_${PV}.bb
inherit native
DEPENDS = "jikes-native zip-native"
EXTRA_OECONF += "--disable-gtk-peer"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/classpath"
S = "${WORKDIR}/classpath-${PV}"
STAGE_TEMP="${WORKDIR}/temp-staging"
do_stage() {
rm -rf ${STAGE_TEMP}
mkdir -p ${STAGE_TEMP}
make DESTDIR="${STAGE_TEMP}" install
# stage class library
mkdir -p ${STAGING_DATADIR}/classpath
for i in `find ${STAGE_TEMP} -name 'glibj.zip'`; do
install -m 0644 $i ${STAGING_DATADIR}/classpath
done
# stage JNI libraries
mkdir -p ${STAGING_LIBDIR}/classpath
for i in `find ${STAGE_TEMP} -name '*.so*'`; do
install -m 0644 $i ${STAGING_LIBDIR}/classpath
done
rm -rf ${STAGE_TEMP}
}
|