1
0

Makefile 922 B

1234567891011121314151617181920212223242526272829303132333435363738
  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:=lz4
  9. PKG_VERSION:=1.9.4
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://codeload.github.com/lz4/lz4/tar.gz/v$(PKG_VERSION)?
  12. PKG_HASH:=0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
  13. PKG_LICENSE:=BSD-2-Clause
  14. PKG_LICENSE_FILES:=LICENSE lib/LICENSE
  15. PKG_CPE_ID:=cpe:/a:lz4_project:lz4
  16. include $(INCLUDE_DIR)/host-build.mk
  17. include $(INCLUDE_DIR)/meson.mk
  18. MESON_HOST_BUILD_DIR:=$(HOST_BUILD_DIR)/contrib/meson/librecmc-build
  19. # Always optimize for speed
  20. HOST_CFLAGS := $(filter-out -O%,$(HOST_CFLAGS)) -O3
  21. MESON_HOST_ARGS += \
  22. -Ddefault_library=static \
  23. -Ddebug-level=0 \
  24. -Dunstable=false \
  25. -Dprograms=true \
  26. -Dtests=false \
  27. -Dcontrib=false \
  28. -Dexamples=false
  29. $(eval $(call HostBuild))