[packages] elfutils: remove libintl hacks from makefile
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bzip2
11 PKG_VERSION:=1.0.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.bzip.org/$(PKG_VERSION)
16 PKG_MD5SUM:=00b516f4704d4a7cb50a1d97e6e8e15b
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/bzip2
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=
24 TITLE:=bzip2 is a compression utility.
25 URL:=http://www.bzip.org/
26 endef
27
28 define Package/bzip2/description
29 bzip2 is a freely available, patent free, high-quality
30 data compressor.
31 endef
32
33 TARGET_CFLAGS += $(FPIC)
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 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_BUILD_DIR)/bzlib.h $(1)/usr/include/
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/libbz2.a $(1)/usr/lib/
46 endef
47
48 define Package/bzip2/install
49 $(INSTALL_DIR) $(1)/usr/bin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,bzip2))