fixed doggy install of fluxbox
[openwrt/svn-archive/archive.git] / XOrg / app / fluxbox / Makefile
1 #
2 # Copyright (C) 2007 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.0rc3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/fluxbox/
17
18 EXTRA_LDFLAGS:="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
19
20 include $(INCLUDE_DIR)/package.mk
21
22 CONFIGURE_VARS+=LIBS="-nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \
23 CXXLD="$(TARGET_CC)"
24
25 CONFIGURE_ARGS+=--disable-xmb
26
27 define Package/fluxbox
28 SECTION:=xorg-wm
29 CATEGORY:=Xorg
30 DEPENDS:=+xorg-server-X11R7.2-essentials +uclibcxx +xterm @TARGET_x86
31 TITLE:=fluxbox window manager
32 endef
33
34 define Build/Configure
35 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
36 if [ -x $(CONFIGURE_CMD) ]; then \
37 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
38 $(CONFIGURE_VARS) \
39 $(CONFIGURE_CMD) \
40 $(CONFIGURE_ARGS_XTRA) \
41 $(CONFIGURE_ARGS) ;\
42 fi \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR)
48 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) install
49 endef
50
51 define Package/fluxbox/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_DIR) $(1)/usr/share/fluxbox/styles/
54 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{fluxbox,fbsetbg} $(1)/usr/bin/
55 $(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/{init,keys} $(1)/usr/share/fluxbox/
56 $(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/styles/* $(1)/usr/share/fluxbox/styles/
57 $(CP) files/menu $(1)/usr/share/fluxbox/
58 endef
59
60 $(eval $(call BuildPackage,fluxbox))