1b356f5a87ee3b3dff4f5560cce8211255c86668
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xfconf
11 PKG_VERSION:=4.6.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.tx-us.xfce.org/archive/xfce-$(PKG_VERSION)/src/
16 PKG_MD5SUM:=d4d3018767ea9eb4b57cc57d4038023b
17
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 -Wl,-rpath=/usr/lib
27
28 define Package/libxfconf
29 SECTION:=xorg-app
30 CATEGORY:=Xorg
31 SUBMENU:=libraries
32 TITLE:=libxfconf
33 DEPENDS:=+libxfce4util +dbus +libdbus-glib +gtk2 +dbus-launch-x
34 endef
35
36 define Package/xfconf
37 SECTION:=xorg-app
38 CATEGORY:=Xorg
39 SUBMENU:=app
40 TITLE:=xfconf
41 DEPENDS:=+libxfconf
42 endef
43
44 define Build/Configure
45 $(call Build/Configure/Default, \
46 --libexecdir=/usr/lib/xfconf \
47 )
48 endef
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include}
52
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
55 $(1)/usr/lib/
56
57 $(INSTALL_DATA) \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
59 $(1)/usr/lib/pkgconfig/
60
61 $(CP) \
62 $(PKG_INSTALL_DIR)/usr/include/* \
63 $(1)/usr/include/
64 endef
65
66 define Package/libxfconf/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) \
69 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
70 $(1)/usr/lib/
71 endef
72
73 define Package/xfconf/install
74 $(INSTALL_DIR) $(1)/usr/bin/
75 $(INSTALL_BIN) \
76 $(PKG_INSTALL_DIR)/usr/bin/* \
77 $(1)/usr/bin/
78
79 $(INSTALL_DIR) $(1)/usr/lib/xfconf/
80 $(INSTALL_BIN) \
81 $(PKG_INSTALL_DIR)/usr/lib/xfconf/xfconfd \
82 $(1)/usr/lib/xfconf/
83
84 $(INSTALL_DIR) $(1)/usr/share/dbus-1/services
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/share/dbus-1/services/* \
87 $(1)/usr/share/dbus-1/services/
88 endef
89 $(eval $(call BuildPackage,libxfconf))
90 $(eval $(call BuildPackage,xfconf))