mirko 986eb4eafc - update to Xorg X11R7.4 and reorganization of the xorg-section
- added tslib
 - added e17 and related efl-libs


git-svn-id: svn://svn.openwrt.org/openwrt/packages@13238 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-16 19:31:42 +00:00

92 lines
2.3 KiB
Makefile

#
# Copyright (C) 2007 OpenWrt.org
#
# 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
PKG_VERSION:=1.0rc3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://prdownloads.sourceforge.net/fluxbox/
EXTRA_LDFLAGS:="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
include $(INCLUDE_DIR)/package.mk
CONFIGURE_VARS+=LIBS="-nodefaultlibs -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \
CXXLD="$(TARGET_CC)"
CONFIGURE_ARGS+=--disable-xmb
define Package/fluxbox/Default
SECTION:=xorg-wm
CATEGORY:=Xorg
endef
define Package/fluxbox
$(call Package/fluxbox/Default)
DEPENDS:=+uclibcxx +libXt @DISPLAY_SUPPORT
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/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fluxbox $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/keys $(1)/usr/share/fluxbox/
$(CP) $(PKG_INSTALL_DIR)/usr/share/fluxbox/styles/* $(1)/usr/share/fluxbox/styles/
$(CP) files/init $(1)/usr/share/fluxbox/
$(CP) files/menu $(1)/usr/share/fluxbox/
echo "#!/bin/sh" > $(1)/usr/bin/WM
echo "/usr/bin/fluxbox" >> $(1)/usr/bin/WM
chmod +x $(1)/usr/bin/WM
endef
define Package/fbsetbg/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbsetbg $(1)/usr/bin/
endef
define Package/fbsetroot/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbsetroot $(1)/usr/bin/
endef
define Package/fbrun/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fbrun $(1)/usr/bin/
endef
$(eval $(call BuildPackage,fbrun))
$(eval $(call BuildPackage,fluxbox))