Merge oe-devel@oe-devel.bkbits.net:packages
[vuplus_openembedded] / xfce4-panel / xfce4-panel_4.0.5.oe
1 # xfce4-panel OE build file
2 # Copyright (C) 2004, Advanced Micro Devices, Inc.  All Rights Reserved
3 # Released under the MIT license (see packages/COPYING)
4
5 DESCRIPTION="XFCE4 Panel"
6 SECTION = "x11"
7 DEPENDS="startup-notification x11 libxfcegui4 libxfce4mcs xfce-mcs-manager libxml2"
8
9 PACKAGES = "xfce4-panel xfce4-panel-dev ${PN}-doc \
10             xfce4-panel-plugins xfce4-panel-mcs-plugins"
11
12 FILES_${PN}="${bindir} /etc"
13 FILES_xfce4-panel-plugins="${libdir}/xfce4/panel-plugins/*.so"
14 FILES_xfce4-panel-mcs-plugins="${libdir}/xfce4/mcs-plugins/*.so"
15
16 inherit xfce pkgconfig
17
18 EXTRA_OECONF=" --enable-startup-notification"
19
20 do_install() {
21         oe_runmake DESTDIR=${D} install
22 }
23
24 python populate_packages_prepend () {
25         themedir = oe.data.expand('${datadir}/xfce4/themes', d)
26         do_split_packages(d, themedir, '^(.*)', 'xfce4-panel-theme-%s', 'XFCE4 panel theme %s', allow_dirs=True)
27 }       
28
29 HEADERS="controls.h global.h icons.h main.h panel.h item.h \
30         item_dialog.h plugins.h xfce_support.h xfce.h"
31
32 do_stage() {
33         install -d ${STAGING_INCDIR}/xfce4/panel
34
35         for file in ${HEADERS}; do 
36                 install -m 644 ${S}/panel/$file ${STAGING_INCDIR}/xfce4/panel/$file
37         done
38 }