remove fluxbox, matchbox dependency on freedesktop-compliant, which is unavailable...
[openwrt/svn-archive/archive.git] / Xorg / wm / fluxbox / Makefile
1 #
2 # Copyright (C) 2007-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 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=fluxbox
12 PKG_VERSION:=1.0.0
13 PKG_RELEASE:=1
14
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/fluxbox/
18 PKG_MD5SUM:=990e276ead0d04421dce4080f485caca
19
20 EXTRA_LDFLAGS:="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
21
22 include $(INCLUDE_DIR)/package.mk
23
24 CONFIGURE_VARS+=LIBS="-nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm $(LIBGCC_S)" \
25 CXXLD="$(TARGET_CC)"
26
27 CONFIGURE_ARGS+=--disable-xmb
28
29 define Package/fluxbox/Default
30 SECTION:=xorg-wm
31 CATEGORY:=Xorg
32 SUBMENU:=window manager
33 endef
34
35 define Package/fluxbox
36 $(call Package/fluxbox/Default)
37 DEPENDS:=+uclibcxx +libXt
38 TITLE:=fluxbox window manager
39 MENU:=1
40 endef
41
42 define Package/fbrun
43 $(call Package/fluxbox/Default)
44 DEPENDS:=fluxbox
45 TITLE:=fluxbox tool to run applications
46 endef
47
48 define Build/Configure
49 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
50 if [ -x $(CONFIGURE_CMD) ]; then \
51 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
52 $(CONFIGURE_VARS) \
53 $(CONFIGURE_CMD) \
54 $(CONFIGURE_ARGS_XTRA) \
55 $(CONFIGURE_ARGS) ;\
56 fi \
57 )
58 endef
59
60 define Build/Compile
61 $(MAKE) -C $(PKG_BUILD_DIR)
62 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) install
63 endef
64
65 define Package/fluxbox/install
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(INSTALL_DIR) $(1)/usr/share/fluxbox/styles/
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fluxbox $(1)/usr/bin/
69 $(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/keys $(1)/usr/share/fluxbox/
70 $(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/styles/* $(1)/usr/share/fluxbox/styles/
71 $(CP) files/init $(1)/usr/share/fluxbox/
72 $(CP) files/menu $(1)/usr/share/fluxbox/
73 $(INSTALL_DIR) $(1)/etc/uci-defaults
74 $(INSTALL_DATA) \
75 ./files/uci-defaults/x11 \
76 $(1)/etc/uci-defaults/
77 endef
78
79 define Package/fbsetbg/install
80 $(INSTALL_DIR) $(1)/usr/bin
81 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbsetbg $(1)/usr/bin/
82 endef
83
84 define Package/fbsetroot/install
85 $(INSTALL_DIR) $(1)/usr/bin
86 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbsetroot $(1)/usr/bin/
87 endef
88
89 define Package/fbrun/install
90 $(INSTALL_DIR) $(1)/usr/bin
91 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbrun $(1)/usr/bin/
92 endef
93
94 define Package/fluxbox/postinst
95 #!/bin/sh
96 [ -n "$${IPKG_INSTROOT}" ] && exit
97 . /etc/functions.sh
98 uci_apply_defaults
99 endef
100
101 $(eval $(call BuildPackage,fbrun))
102 $(eval $(call BuildPackage,fluxbox))