utils/bzip2: Update to 1.0.5
authorOliver Ertl <oliver@ertl-net.net>
Sat, 22 Mar 2008 16:00:42 +0000 (16:00 +0000)
committerOliver Ertl <oliver@ertl-net.net>
Sat, 22 Mar 2008 16:00:42 +0000 (16:00 +0000)
SVN-Revision: 10646

utils/bzip2/Makefile

index a70cdee5fe7e2a6c05421b8ab546837bc76c94be..71c802a9fce132412fb95af695c41b920ee0fb63 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2007-2008 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,14 +9,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bzip2
-PKG_VERSION:=1.0.4
+PKG_VERSION:=1.0.5
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)/
-PKG_MD5SUM:=fc310b254f6ba5fbb5da018f04533688
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)
+PKG_MD5SUM:=3c15a0c8d1d3ee1c46a1634d00617b1a
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -29,23 +27,16 @@ define Package/bzip2
 endef
 
 define Package/bzip2/description
-       bzip2 is a freely available, patent free, high-quality \
+       bzip2 is a freely available, patent free, high-quality
        data compressor.
 endef
 
-define Build/Configure
-       $(call Build/Configure/Default, \
-               --prefix=/usr \
-       );
-endef
+CONFIGURE_ARGS += --prefix=/usr
 
-define Build/Compile
-       $(call Build/Compile/Default, \
-               CFLAGS="$(TARGET_CFLAGS)" \
-               LDFLAGS="$(TARGET_LDLAGS)" \
-               bzip2 \
-        )
-endef
+MAKE_FLAGS += \
+       CFLAGS="$(TARGET_CFLAGS)" \
+       LDFLAGS="$(TARGET_LDLAGS)" \
+       bzip2 \
 
 define Build/InstallDev
        mkdir -p $(1)/usr/include
@@ -56,8 +47,7 @@ endef
 
 define Package/bzip2/install
        mkdir -p $(1)/usr/bin/
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/bzip2 $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
 endef
 
 $(eval $(call BuildPackage,bzip2))
-