2018-04-15 17:24:02 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=zlib
|
2024-01-29 18:09:56 +00:00
|
|
|
PKG_VERSION:=1.3.1
|
2022-03-28 06:43:41 +00:00
|
|
|
PKG_RELEASE:=1
|
2018-04-15 17:24:02 +00:00
|
|
|
|
2024-04-03 17:12:57 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2022-10-21 20:41:06 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/madler/zlib/releases/download/v$(PKG_VERSION)
|
2024-04-03 17:12:57 +00:00
|
|
|
PKG_HASH:=9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23
|
2018-04-15 17:24:02 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=Zlib
|
|
|
|
PKG_LICENSE_FILES:=README
|
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:zlib
|
|
|
|
|
2022-09-25 07:22:24 +00:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
2018-04-15 17:24:02 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2022-09-25 07:22:24 +00:00
|
|
|
HOSTCC := $(HOSTCC_NOCACHE)
|
|
|
|
HOST_CFLAGS += $(HOST_FPIC)
|
2018-04-15 17:24:02 +00:00
|
|
|
|
2022-09-25 07:22:24 +00:00
|
|
|
HOST_CONFIGURE_ARGS = \
|
|
|
|
--prefix=$(STAGING_DIR_HOST) \
|
|
|
|
--sysconfdir=$(STAGING_DIR_HOST)/etc \
|
|
|
|
--localstatedir=$(STAGING_DIR_HOST)/var \
|
|
|
|
--libdir=$(STAGING_DIR_HOST)/lib \
|
|
|
|
--includedir=$(STAGING_DIR_HOST)/include \
|
|
|
|
--static
|
2018-04-15 17:24:02 +00:00
|
|
|
|
2022-09-25 07:22:24 +00:00
|
|
|
define Host/Uninstall
|
|
|
|
-$(call Host/Compile/Default,uninstall)
|
2018-04-15 17:24:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|