Fix libtiff install (this time for real).
[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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/bash
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=The GNU Bourne Again SHell
25 DEPENDS:=+libncurses
26 URL:=http://www.gnu.org/software/bash/
27 endef
28
29 define Package/bash/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 endef
34
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --disable-restricted \
39 --without-bash-malloc \
40 --bindir=/bin \
41 )
42 endef
43
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR)/builtins LDFLAGS_FOR_BUILD= mkbuiltins
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 SHELL="/bin/bash" \
50 all install
51 endef
52
53 define Package/bash/install
54 $(INSTALL_DIR) $(1)/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
56 endef
57
58 $(eval $(call BuildPackage,bash))
59