[package] update coreutils to 7.2 (#4871)
[openwrt/svn-archive/archive.git] / utils / coreutils / Makefile
1 #
2 # Copyright (C) 2008 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:=coreutils
12 PKG_VERSION:=7.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/coreutils/
17 PKG_MD5SUM:=427c2914d3eab956f317c9ec6a45e62a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/coreutils
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=The GNU core utilities
25 URL:=http://www.gnu.org/software/coreutils/
26 endef
27
28 define Package/coreutils/description
29 Full versions of standard GNU utilities. Normally, you would not
30 use this package, since the functionality in BusyBox is more than
31 sufficient and much smaller.
32 endef
33
34 CONFIGURE_ARGS += \
35 --enable-install-program=su
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 SHELL="/bin/bash" \
41 all install install-root
42 endef
43
44 define Package/coreutils/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,coreutils))