openbox: Update
[openwrt/svn-archive/archive.git] / desktop / wm / openbox / Makefile
1 #
2 # Copyright (C) 2008-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:=openbox
11 OB_VERSION:=3.5
12 OB_PATCH:=0
13 PKG_VERSION:=$(OB_VERSION).$(OB_PATCH)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://icculus.org/openbox/releases
18 PKG_MD5SUM:=00441b53cf14c03566c8e82643544ff9
19
20 PKG_INSTALL:=1
21 PKG_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/nls.mk
25
26 TARGET_LDFLAGS+= \
27 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
28
29 define Package/openbox
30 TITLE:=The Openbox Window Manager
31 SECTION:=xorg-wm
32 CATEGORY:=Xorg
33 SUBMENU:=window manager
34 DEPENDS:=+glib2 +libxml2 +fontconfig +libXft +libXrandr +libXt \
35 +libXcursor +pango +xextproto +xf86vidmodeproto +freedesktop-compliant \
36 +imlib2 +libXcursor \
37 +dejavu-fonts-ttf \
38 +dejavu-fonts-ttf-DejaVuSans \
39 +dejavu-fonts-ttf-DejaVuSans-Bold \
40 +dejavu-fonts-ttf-DejaVuSerif \
41 +dejavu-fonts-ttf-DejaVuSerif-Bold \
42 +dejavu-fonts-ttf-DejaVuSerif-Italic
43 URL:=http://icculus.org/openbox/
44 endef
45
46 define Package/openbox/description
47 Openbox is a highly configurable, next generation window manager
48 with extensive standards support.
49 endef
50
51 CONFIGURE_ARGS+= \
52 --disable-startup-notification
53
54 define Package/openbox/install
55 $(INSTALL_DIR) $(1)/etc/xdg/openbox
56 $(INSTALL_DATA) \
57 $(PKG_INSTALL_DIR)/etc/xdg/openbox/* \
58 $(1)/etc/xdg/openbox/
59
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) \
62 $(PKG_INSTALL_DIR)/usr/bin/openbox \
63 $(1)/usr/bin/
64 $(INSTALL_BIN) \
65 $(PKG_INSTALL_DIR)/usr/bin/openbox-session \
66 $(1)/usr/bin/
67
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(INSTALL_DATA) \
70 $(PKG_INSTALL_DIR)/usr/lib/*.so \
71 $(1)/usr/lib/
72 $(INSTALL_DATA) \
73 $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
74 $(1)/usr/lib/
75 $(INSTALL_DATA) \
76 $(PKG_INSTALL_DIR)/usr/lib/openbox-* \
77 $(1)/usr/lib/
78
79 $(INSTALL_DIR) $(1)/usr/share/pixmaps
80 $(INSTALL_DATA) \
81 $(PKG_INSTALL_DIR)/usr/share/pixmaps/* \
82 $(1)/usr/share/pixmaps/
83
84 $(INSTALL_DIR) $(1)/usr/share/themes
85 $(CP) \
86 $(PKG_INSTALL_DIR)/usr/share/themes/* \
87 $(1)/usr/share/themes/
88 endef
89
90 define Build/InstallDev
91 $(INSTALL_DIR) $(1)/usr/include/openbox/$(OB_VERSION)/
92 $(CP) \
93 $(PKG_INSTALL_DIR)/usr/include/openbox/$(OB_VERSION)/* \
94 $(1)/usr/include/openbox/$(OB_VERSION)/
95
96 $(INSTALL_DIR) $(1)/usr/lib
97 $(INSTALL_DATA) \
98 $(PKG_INSTALL_DIR)/usr/lib/*.so \
99 $(1)/usr/lib/
100 $(INSTALL_DATA) \
101 $(PKG_INSTALL_DIR)/usr/lib/*.so.* \
102 $(1)/usr/lib/
103 $(INSTALL_DATA) \
104 $(PKG_INSTALL_DIR)/usr/lib/*.la \
105 $(1)/usr/lib/
106 $(INSTALL_DATA) \
107 $(PKG_INSTALL_DIR)/usr/lib/openbox-* \
108 $(1)/usr/lib/
109
110 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
111 $(INSTALL_DATA) \
112 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
113 $(1)/usr/lib/pkgconfig/
114
115 $(INSTALL_DIR) $(1)/etc/uci-defaults
116 $(INSTALL_DATA) \
117 ./files/uci-defaults/* \
118 $(1)/etc/uci-defaults/
119 endef
120
121 define Package/openbox/postinst
122 #!/bin/sh
123 [ -n "$${IPKG_INSTROOT}" ] && exit
124 . /etc/functions.sh
125 uci_apply_defaults
126 endef
127
128 $(eval $(call BuildPackage,openbox))