Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=bzip2
  9. PKG_VERSION:=1.0.8
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://sourceware.org/pub/bzip2
  13. PKG_HASH:=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
  14. PKG_LICENSE:=bzip2-1.0.8
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_CPE_ID:=cpe:/a:bzip:bzip2
  17. HOST_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/host-build.mk
  19. HOSTCC := $(HOSTCC_NOCACHE)
  20. HOST_CFLAGS += $(HOST_FPIC)
  21. HOST_MAKE_FLAGS+= \
  22. CFLAGS="$(HOST_CFLAGS)" \
  23. LDFLAGS="$(HOST_LDFLAGS)" \
  24. ENABLE_BIN_SHARED=1 \
  25. ENABLE_BIN_STATIC=0 \
  26. ENABLE_LIB_SHARED=1 \
  27. ENABLE_LIB_STATIC=1 \
  28. ENABLE_DEV=1 \
  29. ENABLE_DOCS=1 \
  30. ENABLE_TESTS=0 \
  31. PREFIX="$(HOST_BUILD_PREFIX)"
  32. define Host/Configure
  33. endef
  34. define Host/Uninstall
  35. $(call Host/Compile/Default,uninstall)
  36. $(call Host/Compile/Default,clean)
  37. endef
  38. define Host/Clean
  39. endef
  40. $(eval $(call HostBuild))