[directfb] fix segmentation fault on exit
[vuplus_openvuplus_3.0] / meta-bsp / recipes-graphics / directfb / directfb-armv7ahf-vfp-neon_1.7.7.inc
1 require directfb-${MACHINE}.inc
2
3 GFX_FILE = "directfb_1.7-7_gfxdriver_${MACHINE}_${GFXPR}.tar.gz"
4
5 PR .= "-vuplus3_${GFXPR}"
6
7 GFX_URI ?= "http://archive.vuplus.com/download/build_support/vuplus/${GFX_FILE};name=gfxdriver "
8
9 SRC_URI += "\
10         file://vuplus-conf.patch \
11         file://vuplus-prevent-VT.patch \
12         file://disable_linux_input_patch.diff \
13         ${GFX_URI}\
14 "
15
16 EXTRA_OECONF += "\
17         --with-inputdrivers=linuxinput \
18         --disable-devmem \
19         --disable-video4linux \
20         --without-tools \
21 "
22
23 PRIVATE_LIBS_${PN} = "\
24         ${@base_contains("VUPLUS_FEATURES", "dvbproxy", "libinit.so", "", d)} \
25 "
26
27 do_install_append() {
28         install -d ${D}/etc
29         install -d ${D}/usr/lib/directfb-${RV}/systems
30         install -d ${D}/usr/lib/directfb-${RV}/gfxdrivers
31
32         install -m 0644 ${WORKDIR}/directfb-vuplus/etc/directfbrc ${D}/etc/directfbrc
33         cp -avr ${WORKDIR}/directfb-vuplus/usr/lib/directfb-${RV}/systems/* ${D}/usr/lib/directfb-${RV}/systems/
34         rm -f ${D}/usr/lib/directfb-${RV}/systems/libdirectfb_dummy.so
35         rm -f ${D}/usr/lib/directfb-${RV}/systems/libdirectfb_fbdev.so
36         install -m 0755 ${WORKDIR}/directfb-vuplus/usr/lib/directfb-${RV}/gfxdrivers/* ${D}/usr/lib/directfb-${RV}/gfxdrivers/
37
38         cp -avr ${WORKDIR}/directfb-vuplus/usr/lib/libinit* ${D}/usr/lib/
39 }
40
41 do_package_qa() {
42 }
43
44 FILES_${PN} += "\
45         /etc/directfbrc \
46         /usr/lib/libinit* \
47         /usr/lib/directfb-${RV}/systems/libdirectfb_dvb_proxy_sys* \
48         /usr/lib/directfb-${RV}/gfxdrivers/* \
49 "
50
51 FILES_${PN}-dbg += "\
52         /usr/lib/.debug/libinit* \
53         /usr/lib/directfb-${RV}/systems/.debug/* \
54         /usr/lib/directfb-${RV}/gfxdrivers/.debug/* \
55 "
56
57 BBCLASSEXTEND = "native"
58 PACKAGE_ARCH := "${MACHINE_ARCH}"
59