2008-12-01 23:07:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2008 OpenWrt.org
|
2007-09-25 20:23:15 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=fluxbox
|
2009-03-07 16:27:28 +00:00
|
|
|
PKG_VERSION:=1.0.0
|
2007-09-25 20:23:15 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2009-03-07 16:27:28 +00:00
|
|
|
|
2007-09-25 20:23:15 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2008-01-06 19:28:39 +00:00
|
|
|
PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/fluxbox/
|
2009-03-07 16:27:28 +00:00
|
|
|
PKG_MD5SUM:=990e276ead0d04421dce4080f485caca
|
2007-09-25 20:23:15 +00:00
|
|
|
|
|
|
|
EXTRA_LDFLAGS:="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-01-06 16:36:57 +00:00
|
|
|
CONFIGURE_VARS+=LIBS="-nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm $(LIBGCC_S)" \
|
2008-01-06 19:28:39 +00:00
|
|
|
CXXLD="$(TARGET_CC)"
|
2007-09-25 20:23:15 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--disable-xmb
|
|
|
|
|
|
|
|
define Package/fluxbox/Default
|
|
|
|
SECTION:=xorg-wm
|
|
|
|
CATEGORY:=Xorg
|
2008-12-09 22:45:05 +00:00
|
|
|
SUBMENU:=window manager
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fluxbox
|
|
|
|
$(call Package/fluxbox/Default)
|
2009-01-29 13:05:40 +00:00
|
|
|
DEPENDS:=+uclibcxx +libXt +freedesktop-compliant
|
2007-09-25 20:23:15 +00:00
|
|
|
TITLE:=fluxbox window manager
|
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fbrun
|
|
|
|
$(call Package/fluxbox/Default)
|
|
|
|
DEPENDS:=fluxbox
|
|
|
|
TITLE:=fluxbox tool to run applications
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
|
|
|
|
if [ -x $(CONFIGURE_CMD) ]; then \
|
|
|
|
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
|
|
|
|
$(CONFIGURE_VARS) \
|
|
|
|
$(CONFIGURE_CMD) \
|
|
|
|
$(CONFIGURE_ARGS_XTRA) \
|
|
|
|
$(CONFIGURE_ARGS) ;\
|
|
|
|
fi \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR=$(PKG_INSTALL_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fluxbox/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/fluxbox/styles/
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fluxbox $(1)/usr/bin/
|
2007-12-17 22:28:41 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/keys $(1)/usr/share/fluxbox/
|
2007-09-25 20:23:15 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/styles/* $(1)/usr/share/fluxbox/styles/
|
2007-12-17 22:28:41 +00:00
|
|
|
$(CP) files/init $(1)/usr/share/fluxbox/
|
2007-09-25 20:23:15 +00:00
|
|
|
$(CP) files/menu $(1)/usr/share/fluxbox/
|
2009-01-21 21:02:54 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
./files/uci-defaults/x11 \
|
|
|
|
$(1)/etc/uci-defaults/
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-08 21:32:16 +00:00
|
|
|
define Package/fbsetbg/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbsetbg $(1)/usr/bin/
|
2007-10-08 21:32:16 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-25 20:23:15 +00:00
|
|
|
define Package/fbsetroot/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbsetroot $(1)/usr/bin/
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fbrun/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbrun $(1)/usr/bin/
|
2007-09-25 20:23:15 +00:00
|
|
|
endef
|
|
|
|
|
2009-01-21 21:02:54 +00:00
|
|
|
define Package/fluxbox/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
[ -n "$${IPKG_INSTROOT}" ] && exit
|
|
|
|
. /etc/functions.sh
|
|
|
|
uci_apply_defaults
|
|
|
|
endef
|
|
|
|
|
2007-09-25 20:23:15 +00:00
|
|
|
$(eval $(call BuildPackage,fbrun))
|
|
|
|
$(eval $(call BuildPackage,fluxbox))
|