lxpanel: Override the default config to be more embedded-friendly. Removes the wastef...
[openwrt/svn-archive/feeds.git] / lxde / apps / lxpanel / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=lxpanel
12 PKG_VERSION:=0.5.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/lxde
17 PKG_MD5SUM:=3c6b5498b5f4109c3913b10a66809fe6
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS+= \
24 -I$(STAGING_DIR)/usr/lib/libintl/include/ \
25 -I$(STAGING_DIR)/usr/lib/libiconv/include/
26
27 TARGET_LDFLAGS+= \
28 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
29 -L$(STAGING_DIR)/usr/lib/libintl/lib \
30 -L$(STAGING_DIR)/usr/lib/libiconv/lib
31
32 define Package/lxpanel
33 SECTION:=xorg-app
34 CATEGORY:=Xorg
35 SUBMENU:=app
36 TITLE:=lxpanel
37 DEPENDS:=+gtk2 +libmenu-cache +libiw +lxde-common
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 --with-plugis=all \
43 )
44 endef
45
46 define Package/lxpanel/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) \
49 $(PKG_INSTALL_DIR)/usr/bin/lxpanel* \
50 $(1)/usr/bin
51
52 $(INSTALL_DIR) $(1)/usr/lib/lxpanel/plugins
53 $(INSTALL_DATA) \
54 $(PKG_INSTALL_DIR)/usr/lib/lxpanel/plugins/*.so \
55 $(1)/usr/lib/lxpanel/plugins/
56
57 $(INSTALL_DIR) $(1)/usr/share/lxpanel
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/share/lxpanel/* \
60 $(1)/usr/share/lxpanel/
61 $(INSTALL_DIR) $(1)/usr/share/lxpanel/profile/default
62 $(CP) \
63 ./files/default_config/* \
64 $(1)/usr/share/lxpanel/profile/default/
65 endef
66
67 $(eval $(call BuildPackage,lxpanel))