2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)
16 PKG_MD5SUM:=00b516f4704d4a7cb50a1d97e6e8e15b
18 include $(INCLUDE_DIR)/package.mk
24 TITLE:=bzip2 is a compression utility.
25 URL:=http://www.bzip.org/
28 define Package/bzip2/description
29 bzip2 is a freely available, patent free, high-quality
33 TARGET_CFLAGS += $(FPIC)
34 CONFIGURE_ARGS += --prefix=/usr
37 CFLAGS="$(TARGET_CFLAGS)" \
38 LDFLAGS="$(TARGET_LDLAGS)" \
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_BUILD_DIR)/bzlib.h $(1)/usr/include/
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/libbz2.a $(1)/usr/lib/
48 define Package/bzip2/install
49 $(INSTALL_DIR) $(1)/usr/bin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
53 $(eval $(call BuildPackage,bzip2))