Makefile 826 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Copyright (C) 2022 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=libdeflate
  8. PKG_VERSION:=1.15
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_URL:=https://github.com/ebiggers/libdeflate.git
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  13. PKG_MIRROR_HASH:=122feff4543541b547dc89e832adf262c81911ae1acbccdc591f0353a85b600a
  14. include $(INCLUDE_DIR)/host-build.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Host/Install
  17. $(INSTALL_BIN) $(HOST_BUILD_DIR)/programs/libdeflate-gzip $(STAGING_DIR_HOST)/bin/
  18. $(LN) libdeflate-gzip $(STAGING_DIR_HOST)/bin/libdeflate-gunzip
  19. endef
  20. define Host/Clean
  21. rm -f $(STAGING_DIR_HOST)/bin/libdeflate-gzip
  22. rm -f $(STAGING_DIR_HOST)/bin/libdeflate-gunzip
  23. endef
  24. $(eval $(call HostBuild))