Created desktop feed in feeds and added wm/openbox to it.
[openwrt/svn-archive/archive.git] / desktop / wm / openbox / Makefile
1 #
2 # Copyright (C) 2008 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:=openbox
11 PKG_VERSION:=3.4.7.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://icculus.org/openbox/releases
16 PKG_MD5SUM:=9e7589e90519bc6ac2f4656ea6869439
17
18 TARGET_LDFLAGS+= \
19 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
20 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libiconv/lib \
21 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libintl/lib
22
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/openbox
27 TITLE:=The Openbox Window Manager
28 SECTION:=xorg-wm
29 CATEGORY:=Xorg
30 SUBMENU:=window manager
31 DEPENDS:=+glib2 +libxml2 +fontconfig +libXft +libXrandr +libXt \
32 +libXcursor +pango +xextproto +xf86vidmodeproto +dejavu-fonts-ttf
33 URL:=http://icculus.org/openbox/
34 endef
35
36 define Package/openbox/description
37 Openbox is a highly configurable, next generation window manager
38 with extensive standards support.
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
43 endef
44
45 define Package/openbox/install
46 $(INSTALL_DIR) $(1)/etc/xdg/openbox
47 $(INSTALL_DATA) \
48 $(PKG_INSTALL_DIR)/etc/xdg/openbox/* \
49 $(1)/etc/xdg/openbox/
50
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) \
53 $(PKG_INSTALL_DIR)/usr/bin/openbox \
54 $(1)/usr/bin/
55 $(INSTALL_BIN) \
56 $(PKG_INSTALL_DIR)/usr/bin/openbox-session \
57 $(1)/usr/bin/
58
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/*.so \
62 $(1)/usr/lib/
63 $(INSTALL_DATA) \
64 $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
65 $(1)/usr/lib/
66
67 $(INSTALL_DIR) $(1)/usr/lib/openbox
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/usr/lib/openbox/* \
70 $(1)/usr/lib/openbox/
71
72 $(INSTALL_DIR) $(1)/usr/share/pixmaps
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/share/pixmaps/* \
75 $(1)/usr/share/pixmaps/
76
77 $(INSTALL_DIR) $(1)/usr/share/themes
78 $(CP) \
79 $(PKG_INSTALL_DIR)/usr/share/themes/* \
80 $(1)/usr/share/themes/
81 endef
82
83 define Build/InstallDev
84 $(INSTALL_DIR) $(1)/usr/include/openbox/3.4/openbox
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/include/openbox/3.4/openbox/* \
87 $(1)/usr/include/openbox/3.4/openbox/
88
89 $(INSTALL_DIR) $(1)/usr/lib
90 $(INSTALL_DATA) \
91 $(PKG_INSTALL_DIR)/usr/lib/*.so \
92 $(1)/usr/lib/
93 $(INSTALL_DATA) \
94 $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
95 $(1)/usr/lib/
96 $(INSTALL_DATA) \
97 $(PKG_INSTALL_DIR)/usr/lib/*.la \
98 $(1)/usr/lib/
99
100 $(INSTALL_DIR) $(1)/usr/lib/openbox
101 $(INSTALL_DATA) \
102 $(PKG_INSTALL_DIR)/usr/lib/openbox/* \
103 $(1)/usr/lib/openbox/
104
105 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
106 $(INSTALL_DATA) \
107 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
108 $(1)/usr/lib/pkgconfig/
109 endef
110
111 $(eval $(call BuildPackage,openbox))