f49cd790332d7e4df3b7251aae7e0b73de46652a
[openwrt/svn-archive/archive.git] / utils / bzip2 / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bzip2
12 PKG_VERSION:=1.0.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)/
17 PKG_MD5SUM:=fc310b254f6ba5fbb5da018f04533688
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/bzip2
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=
27 TITLE:=bzip2 is a compression utility.
28 URL:=http://www.bzip.org/
29 endef
30
31 define Package/dmidecode/description
32 bzip2 is a freely available, patent free, high-quality \
33 data compressor.
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --prefix=/usr \
39 );
40 endef
41
42 define Build/Compile
43 $(call Build/Compile/Default, \
44 CFLAGS="$(TARGET_CFLAGS)" \
45 LDFLAGS="$(TARGET_LDLAGS)" \
46 bzip2 \
47 )
48 endef
49
50 define Package/bzip2/install
51 mkdir -p $(1)/usr/bin/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bzip2 $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,bzip2))
56