massive Makefile cleanup, add missing 'svn:keywords' property
[packages.git] / libs / bzip2 / Makefile
1 #
2 # Copyright (C) 2006 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.3
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:=8a716bebecb6e647d2e8a29ea5d8447f
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libbzip2
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=bzip2 is a freely available, patent free, high-quality data compressor.
28   URL:=http://www.bzip.org
29 endef
30
31 define Build/Compile
32         $(MAKE) -C $(PKG_BUILD_DIR) \
33                 $(TARGET_CONFIGURE_OPTS) \
34                 libbz2.a
35 endef
36
37 define Build/InstallDev
38         mkdir -p $(STAGING_DIR)/usr/include
39         $(CP) $(PKG_BUILD_DIR)/bzlib.h $(STAGING_DIR)/usr/include/
40         mkdir -p $(STAGING_DIR)/usr/lib
41         $(CP) $(PKG_BUILD_DIR)/libbz2.a $(STAGING_DIR)/usr/lib/
42 endef
43         
44 define Build/UninstallDev
45         rm -rf \
46                 $(STAGING_DIR)/usr/include/bzlib.h \
47                 $(STAGING_DIR)/usr/lib/libbz2.a
48 endef
49
50 $(eval $(call BuildPackage,libbzip2))