# xfce4-panel OE build file
# Copyright (C) 2004, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see packages/COPYING)

DESCRIPTION = "XFCE4 Panel"
SECTION = "x11"
DEPENDS = "startup-notification x11 libxfcegui4 libxfce4mcs xfce-mcs-manager libxml2"

inherit pkgconfig xfce

EXTRA_OECONF += " --enable-startup-notification"

HEADERS="controls.h global.h icons.h main.h panel.h item.h \
	item_dialog.h plugins.h xfce_support.h xfce.h"

do_stage() {
	install -d ${STAGING_INCDIR}/xfce4/panel

	for file in ${HEADERS}; do 
		install -m 644 ${S}/panel/$file ${STAGING_INCDIR}/xfce4/panel/$file
	done
}

do_install() {
    oe_runmake DESTDIR=${D} install
}

PACKAGES += "${PN}-plugins"
FILES_${PN}-plugins += "${libdir}/xfce4/panel-plugins/*.so*"