Makefile 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=zlib
  9. PKG_VERSION:=1.2.13
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/madler/zlib/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=d14c38e313afc35a9a8760dadf26042f51ea0f5d154b0630a31da0540107fb98
  14. PKG_LICENSE:=Zlib
  15. PKG_LICENSE_FILES:=README
  16. PKG_CPE_ID:=cpe:/a:gnu:zlib
  17. HOST_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/host-build.mk
  19. HOSTCC := $(HOSTCC_NOCACHE)
  20. HOST_CFLAGS += $(HOST_FPIC)
  21. HOST_CONFIGURE_ARGS = \
  22. --prefix=$(STAGING_DIR_HOST) \
  23. --sysconfdir=$(STAGING_DIR_HOST)/etc \
  24. --localstatedir=$(STAGING_DIR_HOST)/var \
  25. --libdir=$(STAGING_DIR_HOST)/lib \
  26. --includedir=$(STAGING_DIR_HOST)/include \
  27. --static
  28. define Host/Uninstall
  29. -$(call Host/Compile/Default,uninstall)
  30. endef
  31. $(eval $(call HostBuild))