5695a93c74ea8f5dd9ddfc996954116e621a07e5
[openwrt/svn-archive/feeds.git] / lxde / data / lxmenu-data / 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:=lxmenu-data
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/lxde
17 PKG_MD5SUM:=1c35ad4bf05cd076ce4a9bb64a246351
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/lxmenu-data
33 SECTION:=xorg-app
34 CATEGORY:=Xorg
35 SUBMENU:=app
36 TITLE:=lxmenu-data
37 endef
38
39 define Package/lxmenu-data/install
40 $(INSTALL_DIR) $(1)/usr/share/desktop-directories
41 $(INSTALL_DATA) \
42 $(PKG_INSTALL_DIR)/usr/share/desktop-directories/* \
43 $(1)/usr/share/desktop-directories/
44
45 $(INSTALL_DIR) $(1)/etc/xdg/menus
46 $(INSTALL_DATA) \
47 $(PKG_INSTALL_DIR)/etc/xdg/menus/* \
48 $(1)/etc/xdg/menus/
49 endef
50
51 $(eval $(call BuildPackage,lxmenu-data))