blob: a6e964b550b70b3780d3ef2e0a5215276ea44dfa [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "The Enlightenment Window Manager Version 17"
2DEPENDS = "eet evas eina ecore edje efreet edbus eeze eio elementary libxcb xcb-util-keysyms"
3LICENSE = "MIT & BSD"
4LIC_FILES_CHKSUM = "file://COPYING;md5=76de290eb3fdda12121830191c152a7d"
5SRCNAME = "e"
6
7inherit e update-alternatives gettext pkgconfig
8S = "${WORKDIR}/${SRCNAME}"
9
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011PACKAGECONFIG[pam] = "--enable-pam,--disable-pam,libpam"
12PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
13
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014EXTRA_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
22do_configure_prepend() {
23 autopoint || true
24 sed '/^ *EFL_PKG_CHECK_VAR/ s/systemduserunitdir/systemdsystemunitdir/g' -i ${S}/configure.ac
25}
26
27do_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
48RDEPENDS_${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'
58RDEPENDS_${PN}_append_libc-glibc = " glibc-utils "
59
60# The systray module used to be external, but is part of e-wm now
61RREPLACES_${PN} = "systray"
62
63RREPLACES_${PN}-config-mobile = "${PN}-config-illume2"
64RCONFLICTS_${PN}-config-mobile = "${PN}-config-illume2"
65RPROVIDES_${PN}-config-mobile = "${PN}-config-illume2"
66
67PACKAGES =+ "\
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
92ESYSACTIONS ?= "${PN}-sysactions"
93
94RRECOMMENDS_${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
105FILES_${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
125FILES_${PN}-config-default = "${datadir}/enlightenment/data/config/default"
126FILES_${PN}-config-mobile = "${datadir}/enlightenment/data/config/mobile"
127FILES_${PN}-config-minimalist = "${datadir}/enlightenment/data/config/minimalist"
128FILES_${PN}-config-netbook = "${datadir}/enlightenment/data/config/netbook"
129FILES_${PN}-config-scaleable = "${datadir}/enlightenment/data/config/scaleable"
130FILES_${PN}-config-standard = "${datadir}/enlightenment/data/config/standard"
131FILES_${PN}-config-tiling = "${datadir}/enlightenment/data/config/tiling"
132FILES_${PN}-theme-default = "${datadir}/enlightenment/data/themes/default.edj"
133FILES_${PN}-theme-default = "${datadir}/enlightenment/data/themes/default.edj"
134FILES_${PN}-background-dark-gradient = "${datadir}/enlightenment/data/backgrounds/Dark_Gradient.edj"
135FILES_${PN}-background-light-gradient = "${datadir}/enlightenment/data/backgrounds/Light_Gradient.edj"
136FILES_${PN}-backgrounds = "${datadir}/enlightenment/data/backgrounds/*.edj"
137FILES_${PN}-images = "${datadir}/enlightenment/data/images ${datadir}/enlightenment/data/flags"
138FILES_${PN}-icons = "${datadir}/enlightenment/data/icons"
139FILES_${PN}-other = "${datadir}/enlightenment/data/other"
140FILES_${PN}-input-methods = "${datadir}/enlightenment/data/input_methods"
141FILES_${PN}-sysactions = "${sysconfdir}/enlightenment/sysactions.conf"
142FILES_${PN}-utils = "${libdir}/enlightenment/utils/*"
143FILES_${PN}-menu = "${sysconfdir}/xdg/menus/applications.menu"
144
145FILES_efm-desktop-icon = "\
146 ${datadir}/applications/efm.desktop \
147 ${datadir}/applications/enlightenment_filemanager.desktop \
148 ${datadir}/icons/e-module-fileman.png \
149"
150
151KEYBOARDS_DIR="${libdir}/enlightenment/modules/illume-keyboard/keyboards"
152FILES_illume-keyboard-default-alpha = "\
153 ${KEYBOARDS_DIR}/Default.kbd \
154 ${KEYBOARDS_DIR}/alpha.png \
155"
156FILES_illume-keyboard-default-numeric = "\
157 ${KEYBOARDS_DIR}/Numbers.kbd \
158 ${KEYBOARDS_DIR}/numeric.png \
159"
160FILES_illume-keyboard-default-terminal = "\
161 ${KEYBOARDS_DIR}/Terminal.kbd \
162 ${KEYBOARDS_DIR}/qwerty.png \
163"
164
165RRECOMMENDS_${PN}-config-default = "${PN}-theme-default"
166RRECOMMENDS_${PN}-config-mobile = "\
167 illume-keyboard-default-alpha \
168 illume-keyboard-default-numeric \
169 illume-keyboard-default-terminal \
170"
171
172RRECOMMENDS_${PN}-config-minimalist = "\
173 ${PN}-background-light-gradient \
174 ${PN}-theme-default \
175"
176RRECOMMENDS_${PN}-config-netbook = "\
177 ${PN}-background-dark-gradient \
178 ${PN}-theme-default \
179"
180RRECOMMENDS_${PN}-config-scaleable = "${PN}-theme-default"
181RRECOMMENDS_${PN}-config-standard = "${PN}-theme-default"
182
183FILES_${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
191FILES_${PN}-doc += "\
192 ${datadir}/enlightenment/doc \
193"
194
195CONFFILES_${PN}-menu = "${sysconfdir}/xdg/menus/applications.menu"
196CONFFILES_${PN}-sysactions = "/etc/enlightenment/sysactions.conf"
197
198ALTERNATIVE_${PN} = "x-window-manager"
199ALTERNATIVE_TARGET[x-window-manager] = "${bindir}/enlightenment_start.oe"
200ALTERNATIVE_PRIORITY[x-window-manager] = "16"