packages/utils/bzip2/Makefile
jow efb03151ee [packages] bzip2: bump to v1.0.6 (USN-986-1, CVE-2010-0405)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-21 02:24:39 +00:00

54 lines
1.1 KiB
Makefile

#
# Copyright (C) 2007-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=bzip2
PKG_VERSION:=1.0.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)
PKG_MD5SUM:=00b516f4704d4a7cb50a1d97e6e8e15b
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
define Package/bzip2/description
bzip2 is a freely available, patent free, high-quality
data compressor.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += --prefix=/usr
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDLAGS)" \
bzip2 \
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_BUILD_DIR)/bzlib.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libbz2.a $(1)/usr/lib/
endef
define Package/bzip2/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
endef
$(eval $(call BuildPackage,bzip2))