5c85fd93ae2b2fef7428af0311494f0293f5a46d
[openwrt/svn-archive/feeds.git] / xfce / app / xfce-utils / 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:=xfce-utils
12 PKG_VERSION:=4.6.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://www.tx-us.xfce.org/archive/xfce-$(PKG_VERSION)/src/
17 PKG_MD5SUM:=b192940801a7bd9bb800e570a299ecde
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/
25
26 TARGET_LDFLAGS+= \
27 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
28 -Wl,-rpath=/usr/lib \
29 -L$(STAGING_DIR)/usr/lib/libintl/lib
30
31 define Package/xfce-utils
32 SECTION:=xorg-app
33 CATEGORY:=Xorg
34 SUBMENU:=app
35 TITLE:=xfce-utils
36 DEPENDS:=+libxfce4util +libxfcegui4 +dbus-launch-x
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --enable-dbus \
42 --disable-xfconf-migration \
43 )
44 endef
45
46 define Package/xfce-utils/install
47 $(INSTALL_DIR) $(1)/usr/bin/
48 $(INSTALL_BIN) \
49 $(PKG_INSTALL_DIR)/usr/bin/* \
50 $(1)/usr/bin/
51
52 $(INSTALL_DIR) $(1)/usr/share/icons
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/share/icons/* \
55 $(1)/usr/share/icons/
56
57 $(INSTALL_DIR) $(1)/usr/share/dbus-1/services
58 $(INSTALL_DATA) \
59 $(PKG_INSTALL_DIR)/usr/share/dbus-1/services/* \
60 $(1)/usr/share/dbus-1/services
61
62 $(INSTALL_DIR) $(1)/usr/share/xfce4
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/share/xfce4/* \
65 $(1)/usr/share/xfce4/
66
67 $(INSTALL_DIR) $(1)/root
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/etc/xdg/xfce4/xinitrc \
70 $(1)/root/.xinitrc
71 endef
72
73 $(eval $(call BuildPackage,xfce-utils))