Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "The Enlightenment Window Manager Version 17" |
| 2 | DEPENDS = "eet evas eina ecore edje efreet edbus eeze eio elementary libxcb xcb-util-keysyms" |
| 3 | LICENSE = "MIT & BSD" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=76de290eb3fdda12121830191c152a7d" |
| 5 | SRCNAME = "e" |
| 6 | |
| 7 | inherit e update-alternatives gettext pkgconfig |
| 8 | S = "${WORKDIR}/${SRCNAME}" |
| 9 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | PACKAGECONFIG[pam] = "--enable-pam,--disable-pam,libpam" |
| 12 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" |
| 13 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | EXTRA_OECONF = "\ |
| 15 | --with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc \ |
| 16 | --with-eet-eet=${STAGING_BINDIR_NATIVE}/eet \ |
| 17 | --x-includes=${STAGING_INCDIR}/X11 \ |
| 18 | --x-libraries=${STAGING_LIBDIR} \ |
| 19 | --enable-simple-x11 \ |
| 20 | " |
| 21 | |
| 22 | do_configure_prepend() { |
| 23 | autopoint || true |
| 24 | sed '/^ *EFL_PKG_CHECK_VAR/ s/systemduserunitdir/systemdsystemunitdir/g' -i ${S}/configure.ac |
| 25 | } |
| 26 | |
| 27 | do_install_append() { |
| 28 | # customising - should rather make this simple upstream |
| 29 | install -m 755 ${WORKDIR}/enlightenment_start.oe ${D}/${bindir} |
| 30 | |
| 31 | # security reasons, e-wm checks that in runtime |
| 32 | # xinit[418]: ERROR: CONFIGURATION FILE HAS BAD PERMISSIONS |
| 33 | chmod 600 ${D}/${sysconfdir}/enlightenment/sysactions.conf |
| 34 | |
| 35 | install -d ${D}/${sysconfdir}/xdg/menus |
| 36 | install -m 644 ${WORKDIR}/applications.menu ${D}/${sysconfdir}/xdg/menus/ |
| 37 | for I in `find ${D}/${libdir}/enlightenment -name "*.a" -print`; do rm -f $I; done |
| 38 | for I in `find ${D}/${libdir}/enlightenment -name "*.la" -print`; do rm -f $I; done |
| 39 | |
| 40 | # work around for issue caused in r78978, more infor in: |
| 41 | # http://sourceforge.net/mailarchive/forum.php?thread_name=20121118194904.GA3438%40jama.jama.net&forum_name=enlightenment-devel |
| 42 | mv ${D}/${libdir}/enlightenment/modules/policies ${D}/${libdir}/enlightenment/modules/illume2/ \ |
| 43 | || echo "illume2 policies are in correct place now" |
| 44 | mv ${D}/${libdir}/enlightenment/modules/keyboards ${D}/${libdir}/enlightenment/modules/illume2/ \ |
| 45 | || echo "illume2 keyboards are in correct place now" |
| 46 | } |
| 47 | |
| 48 | RDEPENDS_${PN} += "\ |
| 49 | shared-mime-info \ |
| 50 | mime-support \ |
| 51 | setxkbmap \ |
| 52 | edje-utils \ |
| 53 | ${PN}-utils \ |
| 54 | dbus-x11 \ |
| 55 | " |
| 56 | |
| 57 | # Uclibc build don't have 'glibc-utils' |
| 58 | RDEPENDS_${PN}_append_libc-glibc = " glibc-utils " |
| 59 | |
| 60 | # The systray module used to be external, but is part of e-wm now |
| 61 | RREPLACES_${PN} = "systray" |
| 62 | |
| 63 | RREPLACES_${PN}-config-mobile = "${PN}-config-illume2" |
| 64 | RCONFLICTS_${PN}-config-mobile = "${PN}-config-illume2" |
| 65 | RPROVIDES_${PN}-config-mobile = "${PN}-config-illume2" |
| 66 | |
| 67 | PACKAGES =+ "\ |
| 68 | ${PN}-config-default \ |
| 69 | ${PN}-config-mobile \ |
| 70 | ${PN}-config-minimalist \ |
| 71 | ${PN}-config-netbook \ |
| 72 | ${PN}-config-scaleable \ |
| 73 | ${PN}-config-standard \ |
| 74 | ${PN}-config-tiling \ |
| 75 | ${PN}-theme-default \ |
| 76 | ${PN}-background-dark-gradient \ |
| 77 | ${PN}-background-light-gradient \ |
| 78 | ${PN}-backgrounds \ |
| 79 | ${PN}-images \ |
| 80 | ${PN}-icons \ |
| 81 | ${PN}-other \ |
| 82 | ${PN}-input-methods \ |
| 83 | ${PN}-sysactions \ |
| 84 | ${PN}-utils \ |
| 85 | ${PN}-menu \ |
| 86 | efm-desktop-icon \ |
| 87 | illume-keyboard-default-alpha \ |
| 88 | illume-keyboard-default-numeric \ |
| 89 | illume-keyboard-default-terminal \ |
| 90 | " |
| 91 | |
| 92 | ESYSACTIONS ?= "${PN}-sysactions" |
| 93 | |
| 94 | RRECOMMENDS_${PN} = "\ |
| 95 | ${PN}-config-default \ |
| 96 | ${PN}-images \ |
| 97 | ${PN}-icons \ |
| 98 | ${PN}-other \ |
| 99 | ${PN}-input-methods \ |
| 100 | ${ESYSACTIONS} \ |
| 101 | efreet \ |
| 102 | evas-generic-loader-svg \ |
| 103 | " |
| 104 | |
| 105 | FILES_${PN} = "\ |
| 106 | ${bindir}/* \ |
| 107 | ${libdir}/enlightenment/utils/* \ |
| 108 | ${libdir}/enlightenment/modules/*/*.* \ |
| 109 | ${libdir}/enlightenment/modules/*/*/* \ |
| 110 | ${libdir}/enlightenment/modules/*/*/.order \ |
| 111 | ${libdir}/enlightenment/modules/keyboards/ignore_built_in_keyboards \ |
| 112 | ${libdir}/enlightenment/*plugins/*/*/* \ |
| 113 | ${libdir}/enlightenment/preload/e_precache.so \ |
| 114 | ${datadir}/enlightenment/data/icons \ |
| 115 | ${datadir}/enlightenment/data/favorites \ |
| 116 | ${datadir}/enlightenment/data/input_methods \ |
| 117 | ${datadir}/enlightenment/data/config/profile.cfg \ |
| 118 | ${datadir}/enlightenment/AUTHORS \ |
| 119 | ${datadir}/enlightenment/COPYING \ |
| 120 | ${datadir}/xsessions/enlightenment.desktop \ |
| 121 | ${sysconfdir}/xdg \ |
| 122 | ${systemd_unitdir} \ |
| 123 | " |
| 124 | |
| 125 | FILES_${PN}-config-default = "${datadir}/enlightenment/data/config/default" |
| 126 | FILES_${PN}-config-mobile = "${datadir}/enlightenment/data/config/mobile" |
| 127 | FILES_${PN}-config-minimalist = "${datadir}/enlightenment/data/config/minimalist" |
| 128 | FILES_${PN}-config-netbook = "${datadir}/enlightenment/data/config/netbook" |
| 129 | FILES_${PN}-config-scaleable = "${datadir}/enlightenment/data/config/scaleable" |
| 130 | FILES_${PN}-config-standard = "${datadir}/enlightenment/data/config/standard" |
| 131 | FILES_${PN}-config-tiling = "${datadir}/enlightenment/data/config/tiling" |
| 132 | FILES_${PN}-theme-default = "${datadir}/enlightenment/data/themes/default.edj" |
| 133 | FILES_${PN}-theme-default = "${datadir}/enlightenment/data/themes/default.edj" |
| 134 | FILES_${PN}-background-dark-gradient = "${datadir}/enlightenment/data/backgrounds/Dark_Gradient.edj" |
| 135 | FILES_${PN}-background-light-gradient = "${datadir}/enlightenment/data/backgrounds/Light_Gradient.edj" |
| 136 | FILES_${PN}-backgrounds = "${datadir}/enlightenment/data/backgrounds/*.edj" |
| 137 | FILES_${PN}-images = "${datadir}/enlightenment/data/images ${datadir}/enlightenment/data/flags" |
| 138 | FILES_${PN}-icons = "${datadir}/enlightenment/data/icons" |
| 139 | FILES_${PN}-other = "${datadir}/enlightenment/data/other" |
| 140 | FILES_${PN}-input-methods = "${datadir}/enlightenment/data/input_methods" |
| 141 | FILES_${PN}-sysactions = "${sysconfdir}/enlightenment/sysactions.conf" |
| 142 | FILES_${PN}-utils = "${libdir}/enlightenment/utils/*" |
| 143 | FILES_${PN}-menu = "${sysconfdir}/xdg/menus/applications.menu" |
| 144 | |
| 145 | FILES_efm-desktop-icon = "\ |
| 146 | ${datadir}/applications/efm.desktop \ |
| 147 | ${datadir}/applications/enlightenment_filemanager.desktop \ |
| 148 | ${datadir}/icons/e-module-fileman.png \ |
| 149 | " |
| 150 | |
| 151 | KEYBOARDS_DIR="${libdir}/enlightenment/modules/illume-keyboard/keyboards" |
| 152 | FILES_illume-keyboard-default-alpha = "\ |
| 153 | ${KEYBOARDS_DIR}/Default.kbd \ |
| 154 | ${KEYBOARDS_DIR}/alpha.png \ |
| 155 | " |
| 156 | FILES_illume-keyboard-default-numeric = "\ |
| 157 | ${KEYBOARDS_DIR}/Numbers.kbd \ |
| 158 | ${KEYBOARDS_DIR}/numeric.png \ |
| 159 | " |
| 160 | FILES_illume-keyboard-default-terminal = "\ |
| 161 | ${KEYBOARDS_DIR}/Terminal.kbd \ |
| 162 | ${KEYBOARDS_DIR}/qwerty.png \ |
| 163 | " |
| 164 | |
| 165 | RRECOMMENDS_${PN}-config-default = "${PN}-theme-default" |
| 166 | RRECOMMENDS_${PN}-config-mobile = "\ |
| 167 | illume-keyboard-default-alpha \ |
| 168 | illume-keyboard-default-numeric \ |
| 169 | illume-keyboard-default-terminal \ |
| 170 | " |
| 171 | |
| 172 | RRECOMMENDS_${PN}-config-minimalist = "\ |
| 173 | ${PN}-background-light-gradient \ |
| 174 | ${PN}-theme-default \ |
| 175 | " |
| 176 | RRECOMMENDS_${PN}-config-netbook = "\ |
| 177 | ${PN}-background-dark-gradient \ |
| 178 | ${PN}-theme-default \ |
| 179 | " |
| 180 | RRECOMMENDS_${PN}-config-scaleable = "${PN}-theme-default" |
| 181 | RRECOMMENDS_${PN}-config-standard = "${PN}-theme-default" |
| 182 | |
| 183 | FILES_${PN}-dbg += "\ |
| 184 | ${libdir}/enlightenment/modules/*/*/.debug/ \ |
| 185 | ${libdir}/enlightenment/modules/policies/.debug/ \ |
| 186 | ${libdir}/enlightenment/preload/.debug/ \ |
| 187 | ${libdir}/enlightenment/utils/.debug/ \ |
| 188 | ${libdir}/enlightenment/*plugins/*/*/.debug \ |
| 189 | " |
| 190 | |
| 191 | FILES_${PN}-doc += "\ |
| 192 | ${datadir}/enlightenment/doc \ |
| 193 | " |
| 194 | |
| 195 | CONFFILES_${PN}-menu = "${sysconfdir}/xdg/menus/applications.menu" |
| 196 | CONFFILES_${PN}-sysactions = "/etc/enlightenment/sysactions.conf" |
| 197 | |
| 198 | ALTERNATIVE_${PN} = "x-window-manager" |
| 199 | ALTERNATIVE_TARGET[x-window-manager] = "${bindir}/enlightenment_start.oe" |
| 200 | ALTERNATIVE_PRIORITY[x-window-manager] = "16" |