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.gz
16 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/bash/
17 PKG_MD5SUM:=00bfa16d58e034e3c2aa27f390390d30
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
28 TITLE:=The GNU Bourne Again SHell
29 URL:=http://www.gnu.org/software/bash/
32 define Package/bash/description
33 Bash is an sh-compatible command language interpreter that executes
34 commands read from the standard input or from a file. Bash also
35 incorporates useful features from the Korn and C shells (ksh and csh).
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --disable-restricted \
42 --without-bash-malloc \
49 $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
56 define Package/bash/install
57 $(INSTALL_DIR) $(1)/bin
58 $(CP) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
61 $(eval $(call BuildPackage,bash))