merge with org.openembedded.dev
[openembedded.git] / recipes / hsqldb / hsqldb_1.8.0.10.bb
1 DESCRIPTION = "Lightweight 100% Java SQL Database Engine"
2 # BSD-like
3 LICENSE = "HypersonicSQL"
4
5 AUTHOR = "HSQLDB Development Group"
6 HOMEPAGE = "http://hsqldb.org"
7
8 SRC_URI = "${SOURCEFORGE_MIRROR}/hsqldb/hsqldb_1_8_0_10.zip"
9
10 S = "${WORKDIR}/${PN}"
11
12 inherit java-library
13
14 DEPENDS = "fastjar-native servlet2.4"
15
16 do_compile() {
17   # Build instructions according to build/buildJDK14.bat
18         mkdir -p classes
19
20         oe_makeclasspath cp -s servlet-api-2.4
21
22         javac -sourcepath src -cp $cp -d build `find src -name "*.java" -and -not -wholename "*test*"`
23
24         mkdir -p classes/org/hsqldb/util
25         mkdir -p classes/org/hsqldb/util/sqltool
26         mkdir -p classes/org/hsqldb/resources
27
28         cp src/org/hsqldb/util/*.gif classes/org/hsqldb/util/
29         cp src/org/hsqldb/util/*.png classes/org/hsqldb/util/
30         cp src/org/hsqldb/util/*.properties classes/org/hsqldb/util/
31         cp src/org/hsqldb/util/sqltool/*.text classes/org/hsqldb/util/sqltool/
32
33         cp src/org/hsqldb/resources/*.properties classes/org/hsqldb/resources
34
35   fastjar -C classes -c -f ${JARFILENAME} .
36 }