aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/webkit/arora.inc
blob: 83bc2c1f5791a378b6dea345f24bc1fbe5f21814 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
DESCRIPTION = "Arora is a lightweight cross-platform web browser"
LICENE = "GPLv2"
HOMEPAGE = "http://code.google.com/p/arora/"

PR = "r3"

SRC_URI = "http://arora.googlecode.com/files/arora-${PV}.tar.gz;name=arora"

S = "${WORKDIR}/arora-${PV}"

export QT_LIBINFIX

do_configure_prepend() {
	sed -i -e s:lrelease-qt4:${OE_QMAKE_LRELEASE}:g ${S}/src/locale/locale.pri
}

# Huge hack ahead:
# Something is putting '.libs' in the Makefiles, which we do now want. The problem is that qmake generates makefiles during 'make all' *sigh*
do_compile_prepend() {
	( oe_runmake src/Makefile tools/Makefile
	  cd ${S}/tools ; oe_runmake cacheinfo/Makefile htmlToXBel/Makefile placesimport/Makefile
	)

	for i in $(find ${S} -name 'Makefile') ; do
		sed -i -e 's:/.libs::g' $i
		make || true
	done

}

do_install() {
	sed -i -e s:/usr/local:${D}${prefix}:g install.pri	
	sed -i -e s:$(INSTALL_ROOT)/OE/angstrom-dev/work/armv7a-angstrom-linux-gnueabi/arora-0.10.1-r0/image/:$(INSTALL_ROOT)/:g src/Makefile

	for i in $(find ${S} -name 'Makefile') ; do
		sed -i -e s:/usr/local:${prefix}:g $i
	done

	oe_runmake -e INSTALL_ROOT=${D} install
	cp -r ${D}/${D}/* ${D}/ || true
	cp -r ${D}/usr/local/* ${D}${prefix} || true
	rm -rf ${D}/usr/local ${D}/${D}

	if [ "$QT_LIBINFIX" = "E" ] ; then
		mv ${D}${bindir}/arora ${D}${bindir}/aroraE
	fi

}

PACKAGES =+ "arora-data"
FILES_arora-data += "${datadir}/pixmaps ${datadir}/applications ${datadir}/arora ${datadir}/gnome-control-center ${datadir}/icons"

RDEPENDS_${PN} += "arora-data"