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