e8863fecc79e89fb50c6e6fd58da2ab12bf95bf0
[openwrt/svn-archive/archive.git] / utils / bash / 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 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bash
12 PKG_VERSION:=3.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/bash/
17 PKG_MD5SUM:=00bfa16d58e034e3c2aa27f390390d30
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/bash
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=The GNU Bourne Again SHell
29 DESCRIPTION:=\
30 Bash is an sh-compatible command language interpreter that executes \\\
31 commands read from the standard input or from a file. Bash also \\\
32 incorporates useful features from the Korn and C shells (ksh and csh).
33 URL:=http://www.gnu.org/software/bash/
34 endef
35
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --disable-restricted \
40 --without-bash-malloc \
41 --bindir=/bin \
42 )
43 endef
44
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 SHELL="/bin/bash" \
51 all install
52 endef
53
54 define Package/bash/install
55 $(INSTALL_DIR) $(1)/bin
56 $(CP) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
57 endef
58
59 $(eval $(call BuildPackage,bash))
60