adding a set of configuraton files based on freedesktop.org specifications and add...
[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 +freedesktop-compliant
34 URL:=http://icculus.org/openbox/
35 endef
36
37 define Package/openbox/description
38 Openbox is a highly configurable, next generation window manager
39 with extensive standards support.
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
44 endef
45
46 define Package/openbox/install
47 $(INSTALL_DIR) $(1)/etc/xdg/openbox
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/etc/xdg/openbox/* \
50 $(1)/etc/xdg/openbox/
51
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) \
54 $(PKG_INSTALL_DIR)/usr/bin/openbox \
55 $(1)/usr/bin/
56 $(INSTALL_BIN) \
57 $(PKG_INSTALL_DIR)/usr/bin/openbox-session \
58 $(1)/usr/bin/
59
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(INSTALL_DATA) \
62 $(PKG_INSTALL_DIR)/usr/lib/*.so \
63 $(1)/usr/lib/
64 $(INSTALL_DATA) \
65 $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
66 $(1)/usr/lib/
67
68 $(INSTALL_DIR) $(1)/usr/lib/openbox
69 $(INSTALL_DATA) \
70 $(PKG_INSTALL_DIR)/usr/lib/openbox/* \
71 $(1)/usr/lib/openbox/
72
73 $(INSTALL_DIR) $(1)/usr/share/pixmaps
74 $(INSTALL_DATA) \
75 $(PKG_INSTALL_DIR)/usr/share/pixmaps/* \
76 $(1)/usr/share/pixmaps/
77
78 $(INSTALL_DIR) $(1)/usr/share/themes
79 $(CP) \
80 $(PKG_INSTALL_DIR)/usr/share/themes/* \
81 $(1)/usr/share/themes/
82 endef
83
84 define Build/InstallDev
85 $(INSTALL_DIR) $(1)/usr/include/openbox/3.4/openbox
86 $(INSTALL_DATA) \
87 $(PKG_INSTALL_DIR)/usr/include/openbox/3.4/openbox/* \
88 $(1)/usr/include/openbox/3.4/openbox/
89
90 $(INSTALL_DIR) $(1)/usr/lib
91 $(INSTALL_DATA) \
92 $(PKG_INSTALL_DIR)/usr/lib/*.so \
93 $(1)/usr/lib/
94 $(INSTALL_DATA) \
95 $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
96 $(1)/usr/lib/
97 $(INSTALL_DATA) \
98 $(PKG_INSTALL_DIR)/usr/lib/*.la \
99 $(1)/usr/lib/
100
101 $(INSTALL_DIR) $(1)/usr/lib/openbox
102 $(INSTALL_DATA) \
103 $(PKG_INSTALL_DIR)/usr/lib/openbox/* \
104 $(1)/usr/lib/openbox/
105
106 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
107 $(INSTALL_DATA) \
108 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
109 $(1)/usr/lib/pkgconfig/
110
111 $(INSTALL_DIR) $(1)/etc/uci-defaults
112 $(INSTALL_DATA) \
113 ./files/uci-defaults/* \
114 $(1)/etc/uci-defaults/
115 endef
116
117 define Package/openbox/postinst
118 #!/bin/sh
119 [ -n "$${IPKG_INSTROOT}" ] && exit
120 . /etc/functions.sh
121 uci_apply_defaults
122 endef
123
124 $(eval $(call BuildPackage,openbox))