fix DL URLs (closes: #9116)
[openwrt/svn-archive/feeds.git] / xfce / app / xfce4-panel / Makefile
1 #
2 # Copyright (C) 2009-2011 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:=xfce4-panel
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://archive.xfce.org/xfce/$(PKG_VERSION)/src/
16 PKG_MD5SUM:=73a366b9892152266b465d7d9c35bef4
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/libxfce4-panel
29 SECTION:=xorg-lib
30 CATEGORY:=Xorg
31 SUBMENU:=libraries
32 TITLE:=libxfce4-panel
33 DEPENDS:=+libstartup-notification +libxfce4util +gtk2 +pango +libX11
34 endef
35
36 define Package/xfce4-panel
37 SECTION:=xorg-app
38 CATEGORY:=Xorg
39 SUBMENU:=app
40 TITLE:=xfce4-panel
41 DEPENDS:=+libxfce4util +libxfcegui4 +libexo +cairo +libwnck +libSM +libX11 \
42 +gtk2 +libxfce4-panel
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/xfce4/libxfce4panel}
47 $(INSTALL_DATA) \
48 $(PKG_INSTALL_DIR)/usr/include/xfce4/libxfce4panel/* \
49 $(1)/usr/include/xfce4/libxfce4panel/
50 $(CP) \
51 $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*,a} \
52 $(1)/usr/lib/
53 $(INSTALL_DATA) \
54 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
55 $(1)/usr/lib/pkgconfig/
56 endef
57
58 define Package/xfce4-panel/install
59 $(INSTALL_DIR) $(1)/usr/lib/xfce4/panel-plugins
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/lib/xfce4/panel-plugins/*.so* \
62 $(1)/usr/lib/xfce4/panel-plugins
63
64 $(INSTALL_DIR) $(1)/etc/xdg/xfce4/panel/
65 $(INSTALL_DATA) \
66 $(PKG_INSTALL_DIR)/etc/xdg/xfce4/panel/* \
67 $(1)/etc/xdg/xfce4/panel/
68
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) \
71 $(PKG_INSTALL_DIR)/usr/bin/* \
72 $(1)/usr/bin/
73
74 $(INSTALL_DIR) $(1)/usr/share/xfce4/panel-plugins
75 $(INSTALL_DATA) \
76 $(PKG_INSTALL_DIR)/usr/share/xfce4/panel-plugins/* \
77 $(1)/usr/share/xfce4/panel-plugins/
78
79 $(INSTALL_DIR) $(1)/usr/share/applications
80 $(INSTALL_DATA) \
81 $(PKG_INSTALL_DIR)/usr/share/applications/* \
82 $(1)/usr/share/applications/
83
84 $(INSTALL_DIR) $(1)/usr/share/icons/hicolor
85 $(CP) \
86 $(PKG_INSTALL_DIR)/usr/share/icons/hicolor/* \
87 $(1)/usr/share/icons/hicolor/
88 endef
89
90 define Package/libxfce4-panel/install
91 $(INSTALL_DIR) $(1)/usr/lib/
92 $(INSTALL_DATA) \
93 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
94 $(1)/usr/lib/
95 endef
96
97 $(eval $(call BuildPackage,libxfce4-panel))
98 $(eval $(call BuildPackage,xfce4-panel))