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
:=3c15a0c8d1d3ee1c46a1634d00617b1a
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 CONFIGURE_ARGS
+= --prefix=/usr
36 CFLAGS
="$(TARGET_CFLAGS)" \
37 LDFLAGS
="$(TARGET_LDLAGS)" \
40 define Build
/InstallDev
41 mkdir
-p
$(1)/usr
/include
42 $(CP
) $(PKG_BUILD_DIR
)/bzlib.h
$(1)/usr
/include/
44 $(CP
) $(PKG_BUILD_DIR
)/libbz2.a
$(1)/usr
/lib
/
47 define Package
/bzip2
/install
48 mkdir
-p
$(1)/usr
/bin
/
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(1)/usr
/bin
/
52 $(eval
$(call BuildPackage
,bzip2
))