You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1019 B
46 lines
1019 B
################################################################################
|
|
#
|
|
# zlib
|
|
#
|
|
################################################################################
|
|
|
|
ZLIB_VERSION = 1.2.13
|
|
ZLIB_DIR = zlib-$(ZLIB_VERSION)
|
|
ZLIB_SOURCE = zlib-$(ZLIB_VERSION).tar.xz
|
|
ZLIB_SITE = https://zlib.net
|
|
|
|
ZLIB_CONF_ENV = \
|
|
$(TARGET_CONFIGURE_ENV) \
|
|
CFLAGS="$(TARGET_CFLAGS) -fPIC" \
|
|
mandir=$(REMOVE_mandir)
|
|
|
|
ZLIB_CONF_OPTS = \
|
|
--prefix=$(prefix) \
|
|
--shared \
|
|
--uname=Linux
|
|
|
|
define ZLIB_CONFIGURE_CMDS
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS)
|
|
endef
|
|
|
|
zlib: | $(TARGET_DIR)
|
|
$(call autotools-package)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
HOST_ZLIB_CONF_ENV = \
|
|
$(HOST_CONFIGURE_ENV)
|
|
|
|
HOST_ZLIB_CONF_OPTS = \
|
|
--prefix=$(HOST_DIR) \
|
|
--shared \
|
|
--uname=Linux
|
|
|
|
define HOST_ZLIB_CONFIGURE_CMDS
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$($(PKG)_CONF_ENV) ./configure $($(PKG)_CONF_OPTS)
|
|
endef
|
|
|
|
host-zlib: | $(HOST_DIR)
|
|
$(call host-autotools-package)
|
|
|