Add veth (#4312), thanks Raphael
[openwrt/svn-archive/archive.git] / utils / bzip2 / Makefile
1 #
2 # Copyright (C) 2007-2008 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.5
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:=3c15a0c8d1d3ee1c46a1634d00617b1a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/bzip2
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=
25 TITLE:=bzip2 is a compression utility.
26 URL:=http://www.bzip.org/
27 endef
28
29 define Package/bzip2/description
30 bzip2 is a freely available, patent free, high-quality
31 data compressor.
32 endef
33
34 CONFIGURE_ARGS += --prefix=/usr
35
36 MAKE_FLAGS += \
37 CFLAGS="$(TARGET_CFLAGS)" \
38 LDFLAGS="$(TARGET_LDLAGS)" \
39 bzip2 \
40
41 define Build/InstallDev
42 mkdir -p $(1)/usr/include
43 $(CP) $(PKG_BUILD_DIR)/bzlib.h $(1)/usr/include/
44 mkdir -p $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/libbz2.a $(1)/usr/lib/
46 endef
47
48 define Package/bzip2/install
49 mkdir -p $(1)/usr/bin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,bzip2))