2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://prdownloads.sourceforge.net
/fluxbox
/
18 EXTRA_LDFLAGS
:="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
20 include $(INCLUDE_DIR
)/package.mk
22 CONFIGURE_VARS
+=LIBS
="-nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \
25 CONFIGURE_ARGS
+=--disable-xmb
27 define Package
/fluxbox
30 DEPENDS
:=+xorg-server-X11R7.2
-essentials
+uclibcxx
+xterm @TARGET_x86
31 TITLE
:=fluxbox window manager
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
)/ && \
40 $(CONFIGURE_ARGS_XTRA
) \
47 $(MAKE
) -C
$(PKG_BUILD_DIR
)
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
=$(PKG_INSTALL_DIR
) install
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
/
60 $(eval
$(call BuildPackage
,fluxbox
))