Add xfce packages.
[openwrt/svn-archive/archive.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.5.93
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:=d426da2c79f9741aeea7a55ce967ffa3
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/
24
25 TARGET_LDFLAGS+= \
26 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
27 -L$(STAGING_DIR)/usr/lib/libintl/lib
28
29 define Package/libxfconf
30 SECTION:=xorg-app
31 CATEGORY:=Xorg
32 SUBMENU:=libraries
33 TITLE:=libxfconf
34 DEPENDS:=+libxfce4util +dbus +libdbus-glib +gtk2
35 endef
36
37 define Package/xfconf
38 SECTION:=xorg-app
39 CATEGORY:=Xorg
40 SUBMENU:=app
41 TITLE:=xfconf
42 DEPENDS:=+libxfconf
43 endef
44
45 define Build/Configure
46 $(call Build/Configure/Default, \
47 --libexecdir=/usr/lib/xfconf \
48 )
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include}
53
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
56 $(1)/usr/lib/
57
58 $(INSTALL_DATA) \
59 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
60 $(1)/usr/lib/pkgconfig/
61
62 $(CP) \
63 $(PKG_INSTALL_DIR)/usr/include/* \
64 $(1)/usr/include/
65 endef
66
67 define Package/libxfconf/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) \
70 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
71 $(1)/usr/lib/
72 endef
73
74 define Package/xfconf/install
75 $(INSTALL_DIR) $(1)/usr/bin/
76 $(INSTALL_BIN) \
77 $(PKG_INSTALL_DIR)/usr/bin/* \
78 $(1)/usr/bin/
79
80 $(INSTALL_DIR) $(1)/usr/lib/xfconf/
81 $(INSTALL_BIN) \
82 $(PKG_INSTALL_DIR)/usr/lib/xfconf/xfconfd \
83 $(1)/usr/lib/xfconf/
84
85 $(INSTALL_DIR) $(1)/usr/share/dbus-1/services
86 $(INSTALL_DATA) \
87 $(PKG_INSTALL_DIR)/usr/share/dbus-1/services/* \
88 $(1)/usr/share/dbus-1/services/
89 endef
90 $(eval $(call BuildPackage,libxfconf))
91 $(eval $(call BuildPackage,xfconf))