Update xfce packages to 4.6.0
[openwrt/svn-archive/feeds.git] / xfce / app / xfconf / 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:=xfconf
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:=38595f78379eb1f456e97b393fdafd20
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/libxfconf
32 SECTION:=xorg-app
33 CATEGORY:=Xorg
34 SUBMENU:=libraries
35 TITLE:=libxfconf
36 DEPENDS:=+libxfce4util +dbus +libdbus-glib +gtk2 +dbus-launch-x
37 endef
38
39 define Package/xfconf
40 SECTION:=xorg-app
41 CATEGORY:=Xorg
42 SUBMENU:=app
43 TITLE:=xfconf
44 DEPENDS:=+libxfconf
45 endef
46
47 define Build/Configure
48 $(call Build/Configure/Default, \
49 --libexecdir=/usr/lib/xfconf \
50 )
51 endef
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include}
55
56 $(CP) \
57 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
58 $(1)/usr/lib/
59
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
62 $(1)/usr/lib/pkgconfig/
63
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/include/* \
66 $(1)/usr/include/
67 endef
68
69 define Package/libxfconf/install
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) \
72 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
73 $(1)/usr/lib/
74 endef
75
76 define Package/xfconf/install
77 $(INSTALL_DIR) $(1)/usr/bin/
78 $(INSTALL_BIN) \
79 $(PKG_INSTALL_DIR)/usr/bin/* \
80 $(1)/usr/bin/
81
82 $(INSTALL_DIR) $(1)/usr/lib/xfconf/
83 $(INSTALL_BIN) \
84 $(PKG_INSTALL_DIR)/usr/lib/xfconf/xfconfd \
85 $(1)/usr/lib/xfconf/
86
87 $(INSTALL_DIR) $(1)/usr/share/dbus-1/services
88 $(INSTALL_DATA) \
89 $(PKG_INSTALL_DIR)/usr/share/dbus-1/services/* \
90 $(1)/usr/share/dbus-1/services/
91 endef
92 $(eval $(call BuildPackage,libxfconf))
93 $(eval $(call BuildPackage,xfconf))