aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squeak/squeak-nox_3.4-2.bb
blob: a11af9bb3678fc887cc3a2fd42e67e73c65f68eb (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
DESCRIPTION = "Squeak VM for QtEmbedded"
SECTION = "devel"
PRIORITY = "optional"
LICENSE = "Squeak License"
HOMEPAGE = "http://www.squeak.org"
DEPENDS = "virtual/libqpe"
PROVIDES = "virtual/squeak-nox"
PR = "r1"

SRC_URI = "http://keepcool.kf.tu-berlin.de/public/mitarbeiter/sadowski/qtopia-squeak-${PV}_patched.tar.gz \
           file://Makefile.in"
S = "${WORKDIR}"

EXTRA_OECONF = ' --host=arm-linux --without-x --without-npsqueak --with-audio=oss'

inherit palmtop

do_configure() {
	cp platforms/unix/vm/aio.h platforms/unix/vm/sqaio.h
	cp ${WORKDIR}/Makefile.in platforms/unix/vm/Makefile.in
	rm -rf build
	mkdir build
	cd build
	../platforms/unix/config/configure ${EXTRA_OECONF}
}

do_compile() {
	cd build
	make
}

do_install() {
	install -d ${D}${palmtopdir}/bin/
	install -m 0755 ${WORKDIR}/build/squeak-nox ${D}${palmtopdir}/bin/
	install -d ${D}/${palmtopdir}/apps/Applications/
	install -m 0644 squeak.desktop ${D}/${palmtopdir}/apps/Applications/squeak.desktop
	install -d ${D}/${palmtopdir}/pics/
	install -m 0644 SqueakLogo.png ${D}/${palmtopdir}/pics/SqueakLogo.png
	install -d ${D}/${palmtopdir}/share/apps/squeak/
	install -m 0644 README ${D}/${palmtopdir}/share/apps/squeak/
}