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