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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://sourceware.org
/pub
/bzip2
16 PKG_HASH
:=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
18 PKG_LICENSE
:=bzip2-1.0
.8
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_CPE_ID
:=cpe
:/a
:bzip
:bzip2
22 HOST_BUILD_PARALLEL
:=1
24 include $(INCLUDE_DIR
)/host-build.mk
26 HOSTCC
:= $(HOSTCC_NOCACHE
)
27 HOST_CFLAGS
+= $(HOST_FPIC
)
30 CFLAGS
="$(HOST_CFLAGS)" \
31 LDFLAGS
="$(HOST_LDFLAGS)" \
39 PREFIX
="$(HOST_BUILD_PREFIX)"
45 $(call Host
/Compile
/Default
,uninstall)
46 $(call Host
/Compile
/Default
,clean)
52 $(eval
$(call HostBuild
))