use nls.mk
[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 include $(INCLUDE_DIR)/nls.mk
23
24 TARGET_LDFLAGS+= \
25 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
26
27 define Package/lxpanel
28 SECTION:=xorg-app
29 CATEGORY:=Xorg
30 SUBMENU:=app
31 TITLE:=lxpanel
32 DEPENDS:=+gtk2 +libmenu-cache +libiw +lxde-common
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --with-plugis=all \
38 )
39 endef
40
41 define Package/lxpanel/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) \
44 $(PKG_INSTALL_DIR)/usr/bin/lxpanel* \
45 $(1)/usr/bin
46
47 $(INSTALL_DIR) $(1)/usr/lib/lxpanel/plugins
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/usr/lib/lxpanel/plugins/*.so \
50 $(1)/usr/lib/lxpanel/plugins/
51
52 $(INSTALL_DIR) $(1)/usr/share/lxpanel
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/share/lxpanel/* \
55 $(1)/usr/share/lxpanel/
56 $(INSTALL_DIR) $(1)/usr/share/lxpanel/profile/default
57 $(CP) \
58 ./files/default_config/* \
59 $(1)/usr/share/lxpanel/profile/default/
60 endef
61
62 $(eval $(call BuildPackage,lxpanel))