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.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE_URL
:=https
://github.com
/ebiggers
/libdeflate.git
15 PKG_SOURCE_VERSION
:=v
$(PKG_VERSION
)
16 PKG_MIRROR_HASH
:=5aac9801815384a5e417c8345d25d07547648e28403566ef73a46295ec26b6c4
18 include $(INCLUDE_DIR
)/host-build.mk
21 $(HOSTCC_NOCACHE
) $(HOST_CFLAGS
) $(HOST_LDFLAGS
) \
22 $(HOST_BUILD_DIR
)/lib
/*{,/*}.c \
23 $(HOST_BUILD_DIR
)/programs
/{gzip
,prog_util
,tgetopt
}.c \
24 -o
$(HOST_BUILD_DIR
)/libdeflate-gzip
28 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/libdeflate-gzip
$(STAGING_DIR_HOST
)/bin
/
29 $(LN
) libdeflate-gzip
$(STAGING_DIR_HOST
)/bin
/libdeflate-gunzip
33 $(RM
) $(STAGING_DIR_HOST
)/bin
/libdeflate-gzip
34 $(RM
) $(STAGING_DIR_HOST
)/bin
/libdeflate-gunzip
35 $(call Host
/Uninstall
/Default
)
38 $(eval
$(call HostBuild
))