Update xfce packages to 4.6.1
[openwrt/svn-archive/feeds.git] / xfce / wm / xfwm4 / 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:=xfwm4
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:=538ff2554a23bf877d336e573884da9a
17
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
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/xfwm4
32 SECTION:=xorg-app
33 CATEGORY:=Xorg
34 SUBMENU:=app
35 TITLE:=xfwm4
36 DEPENDS:=+libxfce4util +libxfcegui4 +libxfconf +libdbus-glib +libwnck +freedesktop-compliant
37 endef
38
39 define Package/xfwm4/install
40 $(INSTALL_DIR) $(1)/usr/lib/xfce4/xfwm4
41 $(INSTALL_BIN) \
42 $(PKG_INSTALL_DIR)/usr/lib/xfce4/xfwm4/helper-dialog \
43 $(1)/usr/lib/xfce4/xfwm4/
44
45 $(INSTALL_DIR) $(1)/usr/bin/
46 $(INSTALL_BIN) \
47 $(PKG_INSTALL_DIR)/usr/bin/* \
48 $(1)/usr/bin/
49
50 $(INSTALL_DIR) $(1)/usr/share/icons/hicolor
51 $(CP) \
52 $(PKG_INSTALL_DIR)/usr/share/icons/hicolor/* \
53 $(1)/usr/share/icons/hicolor/
54
55 $(INSTALL_DIR) $(1)/usr/share/applications
56 $(INSTALL_DATA) \
57 $(PKG_INSTALL_DIR)/usr/share/applications/* \
58 $(1)/usr/share/applications/
59
60 $(INSTALL_DIR) $(1)/usr/share/themes
61 $(CP) \
62 $(PKG_INSTALL_DIR)/usr/share/themes/* \
63 $(1)/usr/share/themes/
64
65 $(INSTALL_DIR) $(1)/usr/share/xfwm4
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/share/xfwm4/* \
68 $(1)/usr/share/xfwm4/
69
70 $(INSTALL_DIR) $(1)/etc/uci-defaults
71 $(INSTALL_DATA) \
72 ./files/uci-defaults/x11 \
73 $(1)/etc/uci-defaults/
74 endef
75
76 define Package/xfwm4/postinst
77 #!/bin/sh
78 [ -n "$${IPKG_INSTROOT}" ] && exit
79 . /etc/functions.sh
80 uci_apply_defaults
81 endef
82
83 $(eval $(call BuildPackage,xfwm4))