ca-certificates: run c_rehash
[openembedded.git] / recipes / webkit / arora.inc
1 DESCRIPTION = "Arora is a lightweight cross-platform web browser"
2 LICENE = "GPLv2"
3 HOMEPAGE = "http://code.google.com/p/arora/"
4
5 PR = "r2"
6
7 SRC_URI = "http://arora.googlecode.com/files/arora-${PV}.tar.gz;name=arora"
8
9 S = "${WORKDIR}/arora-${PV}"
10
11 do_configure_prepend() {
12         sed -i -e s:lrelease-qt4:${OE_QMAKE_LRELEASE}:g ${S}/src/locale/locale.pri
13 }
14
15 # Huge hack ahead:
16 # Something is putting '.libs' in the Makefiles, which we do now want. The problem is that qmake generates makefiles during 'make all' *sigh*
17 do_compile_prepend() {
18         ( oe_runmake src/Makefile tools/Makefile
19           cd ${S}/tools ; oe_runmake cacheinfo/Makefile htmlToXBel/Makefile placesimport/Makefile
20         )
21
22         for i in $(find ${S} -name 'Makefile') ; do
23                 sed -i -e 's:/.libs::g' $i
24                 make || true
25         done
26
27 }
28
29 do_install() {
30         sed -i -e s:/usr/local:${D}${prefix}:g install.pri      
31         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
32
33         for i in $(find ${S} -name 'Makefile') ; do
34                 sed -i -e s:/usr/local:${prefix}:g $i
35         done
36
37         oe_runmake -e INSTALL_ROOT=${D} install
38         cp -r ${D}/${D}/* ${D}/ || true
39         cp -r ${D}/usr/local/* ${D}${prefix} || true
40         rm -rf ${D}/usr/local ${D}/${D}
41 }
42
43 FILES_${PN} += "${datadir}/arora ${datadir}/gnome-control-center ${datadir}/icons"
44
45