2006-08-01 17:38:30 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-10-30 13:51:50 +00:00
|
|
|
# $Id$
|
2006-08-01 17:38:30 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bzip2
|
|
|
|
PKG_VERSION:=1.0.3
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)/
|
|
|
|
PKG_MD5SUM:=8a716bebecb6e647d2e8a29ea5d8447f
|
2006-08-01 17:38:30 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libbzip2
|
2006-10-30 13:51:50 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=bzip2 is a freely available, patent free, high-quality data compressor.
|
2007-01-08 11:19:08 +00:00
|
|
|
URL:=http://www.bzip.org/
|
2006-08-01 17:38:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
libbz2.a
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/bzlib.h $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libbz2.a $(STAGING_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf \
|
2006-10-30 13:51:50 +00:00
|
|
|
$(STAGING_DIR)/usr/include/bzlib.h \
|
|
|
|
$(STAGING_DIR)/usr/lib/libbz2.a
|
2006-08-01 17:38:30 +00:00
|
|
|
endef
|
|
|
|
|
2007-01-08 11:19:08 +00:00
|
|
|
$(eval $(call Build/DefaultTargets))
|