2 # Copyright (C) 2022 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=https
://codeload.github.com
/lz4
/lz4
/tar.gz
/v
$(PKG_VERSION
)?
15 PKG_HASH
:=0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
17 PKG_LICENSE
:=BSD-2-Clause
18 PKG_LICENSE_FILES
:=LICENSE lib
/LICENSE
20 HOST_BUILD_PARALLEL
:=1
22 include $(INCLUDE_DIR
)/host-build.mk
24 # Always optimize for speed
25 HOST_CFLAGS
:= $(filter-out -O
%,$(HOST_CFLAGS
)) -O3
27 HOST_MAKE_FLAGS
+=PREFIX
=$(HOST_BUILD_PREFIX
) \
34 $(call Host
/Compile
/Default
,default
)
38 $(call Host
/Compile
/Default
,install)
42 $(call Host
/Compile
/Default
,uninstall)
43 $(call Host
/Compile
/Default
,clean)
49 $(eval
$(call HostBuild
))