2007-11-28 17:22:43 +00:00
|
|
|
#
|
2008-03-22 16:00:42 +00:00
|
|
|
# Copyright (C) 2007-2008 OpenWrt.org
|
2007-11-28 17:22:43 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bzip2
|
2010-09-21 02:24:39 +00:00
|
|
|
PKG_VERSION:=1.0.6
|
2007-11-28 17:22:43 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2008-03-22 16:00:42 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)
|
2010-09-21 02:24:39 +00:00
|
|
|
PKG_MD5SUM:=00b516f4704d4a7cb50a1d97e6e8e15b
|
2007-11-28 17:22:43 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bzip2
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=
|
|
|
|
TITLE:=bzip2 is a compression utility.
|
|
|
|
URL:=http://www.bzip.org/
|
|
|
|
endef
|
|
|
|
|
2007-11-28 20:30:27 +00:00
|
|
|
define Package/bzip2/description
|
2008-03-22 16:00:42 +00:00
|
|
|
bzip2 is a freely available, patent free, high-quality
|
2007-11-28 17:22:43 +00:00
|
|
|
data compressor.
|
|
|
|
endef
|
|
|
|
|
2009-09-19 20:14:03 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2008-03-22 16:00:42 +00:00
|
|
|
CONFIGURE_ARGS += --prefix=/usr
|
2007-11-28 17:22:43 +00:00
|
|
|
|
2008-03-22 16:00:42 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDLAGS)" \
|
|
|
|
bzip2 \
|
2007-11-28 17:22:43 +00:00
|
|
|
|
2007-11-28 19:43:12 +00:00
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-11-28 19:43:12 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/bzlib.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-11-28 19:43:12 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libbz2.a $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2007-11-28 17:22:43 +00:00
|
|
|
define Package/bzip2/install
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
2008-03-22 16:00:42 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
2007-11-28 17:22:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bzip2))
|