blob: 86df143826dedcd2d56668596df22fc00d68286a [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=bzip2
11PKG_VERSION:=1.0.8
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=https://sourceware.org/pub/bzip2
16PKG_HASH:=ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
17
18PKG_LICENSE:=bzip2-1.0.8
19PKG_LICENSE_FILES:=LICENSE
20PKG_CPE_ID:=cpe:/a:bzip:bzip2
21
22HOST_BUILD_PARALLEL:=1
23
24include $(INCLUDE_DIR)/host-build.mk
25include $(INCLUDE_DIR)/cmake.mk
26
27HOSTCC := $(HOSTCC_NOCACHE)
28HOST_CFLAGS += $(HOST_FPIC)
29
30CMAKE_HOST_OPTIONS += -DENABLE_EXAMPLES=off
31
32$(eval $(call HostBuild))