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.
64 lines
1.6 KiB
64 lines
1.6 KiB
################################################################################
|
|
#
|
|
# zlib
|
|
#
|
|
################################################################################
|
|
|
|
ZLIB_VERSION = 1.2.11
|
|
ZLIB_DIR = zlib-$(ZLIB_VERSION)
|
|
ZLIB_SOURCE = zlib-$(ZLIB_VERSION).tar.xz
|
|
ZLIB_SITE = https://sourceforge.net/projects/libpng/files/zlib/$(ZLIB_VERSION)
|
|
|
|
$(DL_DIR)/$(ZLIB_SOURCE):
|
|
$(download) $(ZLIB_SITE)/$(ZLIB_SOURCE)
|
|
|
|
ZLIB_CONF_ENV = \
|
|
mandir=$(REMOVE_mandir)
|
|
|
|
ZLIB_CONF_OPTS = \
|
|
--prefix=$(prefix) \
|
|
--shared \
|
|
--uname=Linux
|
|
|
|
zlib: $(DL_DIR)/$(ZLIB_SOURCE) | $(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(TARGET_CONFIGURE_ENV) \
|
|
./configure $($(PKG)_CONF_OPTS); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
HOST_ZLIB_VERSION = $(ZLIB_VERSION)
|
|
HOST_ZLIB_DIR = $(ZLIB_DIR)
|
|
HOST_ZLIB_SOURCE = $(ZLIB_SOURCE)
|
|
HOST_ZLIB_SITE = $(ZLIB_SITE)
|
|
|
|
#$(DL_DIR)/$(HOST_ZLIB_SOURCE):
|
|
# $(download) $(HOST_ZLIB_SITE)/$(HOST_ZLIB_SOURCE)
|
|
|
|
#HOST_ZLIB_CONF_ENV = \
|
|
# libdir=$(HOST_DIR)/lib \
|
|
# includedir=$(HOST_DIR)/include
|
|
|
|
HOST_ZLIB_CONF_OPTS = \
|
|
--prefix="" \
|
|
--shared \
|
|
--uname=Linux
|
|
|
|
host-zlib: $(DL_DIR)/$(HOST_ZLIB_SOURCE) | $(HOST_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(UNTAR)/$(PKG_SOURCE)
|
|
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
|
|
$(CHDIR)/$(PKG_DIR); \
|
|
$(HOST_CONFIGURE_ENV) \
|
|
./configure $($(PKG)_CONF_OPTS); \
|
|
$(MAKE); \
|
|
$(MAKE) install DESTDIR=$(HOST_DIR)
|
|
$(REMOVE)/$(PKG_DIR)
|
|
$(TOUCH)
|
|
|