1
0

Makefile 1.0 KB

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.11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@SF/libpng http://www.zlib.net
  13. PKG_HASH:=4ff941449631ace0d4d203e3483be9dbc9da454084111f97ea0a2114e19bf066
  14. PKG_LICENSE:=Zlib
  15. PKG_LICENSE_FILES:=README
  16. PKG_CPE_ID:=cpe:/a:gnu:zlib
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. HOST_CFLAGS +=-fPIC
  20. define Host/Install
  21. $(CP) $(HOST_BUILD_DIR)/libz.a $(STAGING_DIR_HOST)/lib/
  22. $(CP) $(HOST_BUILD_DIR)/zconf.h $(STAGING_DIR_HOST)/include/
  23. $(CP) $(HOST_BUILD_DIR)/zlib.h $(STAGING_DIR_HOST)/include/
  24. $(CP) $(HOST_BUILD_DIR)/zlib.pc $(STAGING_DIR_HOST)/lib/pkgconfig/
  25. endef
  26. define Host/Clean
  27. rm -f $(STAGING_DIR_HOST)/lib/libz.a
  28. rm -f $(STAGING_DIR_HOST)/include/zconf.h
  29. rm -f $(STAGING_DIR_HOST)/include/zlib.h
  30. rm -f $(STAGING_DIR_HOST)/lib/pkgconfig//zlib.pc
  31. endef
  32. $(eval $(call HostBuild))