busybox: keep syslog.conf during sysupgrade
[openwrt/openwrt.git] / tools / zlib / Makefile
1 #
2 # Copyright (C) 2006-2013 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:=zlib
11 PKG_VERSION:=1.2.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@SF/libpng http://www.zlib.net
16 PKG_HASH:=4ff941449631ace0d4d203e3483be9dbc9da454084111f97ea0a2114e19bf066
17
18 PKG_LICENSE:=Zlib
19 PKG_LICENSE_FILES:=README
20 PKG_CPE_ID:=cpe:/a:gnu:zlib
21
22 include $(INCLUDE_DIR)/host-build.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 HOST_CFLAGS +=-fPIC
26
27 define Host/Install
28 $(CP) $(HOST_BUILD_DIR)/libz.a $(STAGING_DIR_HOST)/lib/
29 $(CP) $(HOST_BUILD_DIR)/zconf.h $(STAGING_DIR_HOST)/include/
30 $(CP) $(HOST_BUILD_DIR)/zlib.h $(STAGING_DIR_HOST)/include/
31 $(CP) $(HOST_BUILD_DIR)/zlib.pc $(STAGING_DIR_HOST)/lib/pkgconfig/
32 endef
33
34 define Host/Clean
35 rm -f $(STAGING_DIR_HOST)/lib/libz.a
36 rm -f $(STAGING_DIR_HOST)/include/zconf.h
37 rm -f $(STAGING_DIR_HOST)/include/zlib.h
38 rm -f $(STAGING_DIR_HOST)/lib/pkgconfig//zlib.pc
39 endef
40
41 $(eval $(call HostBuild))