1 INSANE_SKIP_${PN} = "dev-so"
3 DEPENDS += "efl-native"
5 # Build efl native with the fewest dependency possible
6 DEPENDS_class-native = ""
7 DEPENDS_class-native += "zlib-native"
8 DEPENDS_class-native += "tiff-native"
9 DEPENDS_class-native += "openssl-native"
10 DEPENDS_class-native += "curl-native"
11 DEPENDS_class-native += "fontconfig-native"
12 DEPENDS_class-native += "freetype-native"
13 DEPENDS_class-native += "wayland-native"
14 DEPENDS_class-native += "glib-2.0-native"
15 DEPENDS_class-native += "lua-native"
16 DEPENDS_class-native += "libpng-native"
17 DEPENDS_class-native += "pixman-native"
18 DEPENDS_class-native += "libcheck-native"
19 DEPENDS_class-native += "giflib-native"
20 DEPENDS_class-native += "gnutls-native"
21 DEPENDS_class-native += "util-linux-native"
22 DEPENDS_class-native += "vconf-native"
23 DEPENDS_class-native += "fribidi-native"
24 DEPENDS_class-native += "dbus-native"
27 --with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc \
28 --with-eolian-gen=${STAGING_BINDIR_NATIVE}/eolian_gen \
29 --with-eolian-cxx=${STAGING_BINDIR_NATIVE}/eolian_cxx \
30 --with-binary-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc \
32 --enable-always-build-examples=no \
35 # Disable as much options as possible for efl-native
36 EXTRA_OECONF_class-native = " \
37 --disable-fontconfig \
40 --disable-image-loader-bmp \
41 --disable-image-loader-eet \
42 --disable-image-loader-generic \
43 --disable-image-loader-gif \
44 --disable-image-loader-ico \
45 --disable-image-loader-jp2k \
46 --disable-image-loader-pmaps \
47 --disable-image-loader-psd \
48 --disable-image-loader-tga \
49 --disable-image-loader-wbmp \
50 --disable-image-loader-webp \
51 --disable-image-loader-xpm \
54 --disable-gstreamer1 \
56 --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aaa \
60 do_configure_prepend() {
61 # Fix configure error: "error: required file './ABOUT-NLS' not found"
62 sed -i 's/AM_INIT_AUTOMAKE(\[1.6 dist-bzip2 -Wall color-tests\])/AM_INIT_AUTOMAKE(\[1.6 dist-bzip2 -Wall color-tests foreign\])/' configure.ac
65 do_configure_prepend_class-native() {
66 # efl doesn't have option to disable eeze build and we don't want to provide udev-native just to build eeze-native since don't need it
67 sed -i 's/EFL_LIB_START_OPTIONAL(\[Eeze\], \[test "${have_linux}" = "yes"\])/EFL_LIB_START_OPTIONAL([Eeze], [test "${no-we-really-dont-want-native-eeze}" = "yes"])/g' ${S}/configure.ac
70 do_install_prepend () {
71 for i in `find ${B}/ -name "*.pc" -type f` ; do \
72 sed -i -e 's:-L${STAGING_LIBDIR}:-L\$\{libdir\}:g' -e 's:-I${STAGING_LIBDIR}:-I\$\{libdir\}:g' -e 's:-I${STAGING_INCDIR}:-I\$\{includedir\}:g' $i
76 do_install_class-native() {
77 echo export RPM_BUILD_ROOT=${D}
85 # "oe_runmake" fails so we use "make" instead
89 BINDIR=${prefix}/bin \
92 rm -f ${D}${infodir}/dir
93 find ${D} -regex ".*\.la$" | xargs rm -f --
94 find ${D} -regex ".*\.a$" | xargs rm -f --
96 # We don't build the examples so don't install them
97 # oe_runmake datadir=${D}${prefix}/share install-examples
98 rm -rf ${D}${prefix}/lib/ecore/system/upower
102 echo export RPM_BUILD_ROOT=${D}
113 BINDIR=${prefix}/bin \
116 rm -f ${D}${infodir}/dir
117 find ${D} -regex ".*\.la$" | xargs rm -f --
118 find ${D} -regex ".*\.a$" | xargs rm -f --
120 # We don't build the examples so don't install them
121 # oe_runmake datadir=${D}${prefix}/share install-examples
122 rm -rf ${D}${prefix}/lib/ecore/system/upower
125 pkg_postinst_ecore() {
128 [ "x$D" == "x" ] && ldconfig
129 f="$D/etc/profile.d/ecore.sh"
130 grep --silent EFL_WAYLAND_USE_XDG_SHELL "$f" \
131 || printf "\nEFL_WAYLAND_USE_XDG_SHELL='defined'\nexport EFL_WAYLAND_USE_XDG_SHELL\n" >> "$f"
132 grep --silent ECORE_EVAS_ENGINE "$f" \
133 || printf "\nECORE_EVAS_ENGINE=wayland_shm\n[ ! -d /dev/dri ] || ECORE_EVAS_ENGINE=wayland_egl\nexport ECORE_EVAS_ENGINE" >> "$f"
134 grep --silent ECORE_IMF_MODULE "$f" \
135 || printf "\nECORE_IMF_MODULE=wayland\nexport ECORE_IMF_MODULE\n" >> "$f"
139 FILES_${PN}-dbg += "${prefix}/lib/eeze/modules/sensor/tizen/v-1.9/.debug"
140 FILES_${PN}-dbg += "${prefix}/lib/eeze/modules/sensor/udev/v-1.9/.debug"
141 FILES_${PN}-dbg += "${prefix}/lib/ecore_evas/engines/extn/v-1.9/.debug"
142 FILES_${PN}-dbg += "${prefix}/lib/ecore_evas/engines/wayland/v-1.9/.debug"
143 FILES_${PN}-dbg += "${prefix}/lib/ethumb/modules/emotion/v-1.9/.debug"
144 FILES_${PN}-dbg += "${prefix}/lib/ethumb_client/utils/v-1.9/.debug"
145 FILES_${PN}-dbg += "${prefix}/lib/edje/modules/emotion/v-1.9/.debug"
146 FILES_${PN}-dbg += "${prefix}/lib/edje/utils/v-1.9/.debug"
147 FILES_${PN}-dbg += "${prefix}/lib/emotion/modules/gstreamer1/v-1.9/.debug"
148 FILES_${PN}-dbg += "${prefix}/lib/efreet/v-1.9/.debug"
149 FILES_${PN}-dbg += "${prefix}/lib/evas/modules/savers/tiff/v-1.9/.debug"
150 FILES_${PN}-dbg += "${prefix}/lib/evas/modules/loaders/tiff/v-1.9/.debug"
151 FILES_${PN}-dbg += "${prefix}/lib/evas/modules/loaders/gif/v-1.9/.debug"
152 FILES_${PN}-dbg += "${prefix}/lib/evas/modules/engines/wayland_shm/v-1.9/.debug"
153 FILES_${PN}-dbg += "${prefix}/lib/evas/modules/engines/wayland_egl/v-1.9/.debug"
154 FILES_${PN}-dbg += "${prefix}/lib/ecore_imf/modules/wayland/v-1.9/.debug"
155 FILES_${PN}-dbg += "${prefix}/lib/ecore/system/systemd/v-1.9/.debug"
156 FILES_${PN}-dbg += "${prefix}/lib/ecore/system/tizen/v-1.9/.debug"
157 FILES_${PN}-dbg += "${prefix}/lib/evas/cserve2/bin/v-1.9/.debug"