tools/mkimage: update to 2024.01
[openwrt/staging/nbd.git] / tools / bzip2 / Makefile
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
26 HOSTCC := $(HOSTCC_NOCACHE)
27 HOST_CFLAGS += $(HOST_FPIC)
28
29 HOST_MAKE_FLAGS+= \
30 CFLAGS="$(HOST_CFLAGS)" \
31 LDFLAGS="$(HOST_LDFLAGS)" \
32 ENABLE_BIN_SHARED=1 \
33 ENABLE_BIN_STATIC=0 \
34 ENABLE_LIB_SHARED=1 \
35 ENABLE_LIB_STATIC=1 \
36 ENABLE_DEV=1 \
37 ENABLE_DOCS=1 \
38 ENABLE_TESTS=0 \
39 PREFIX="$(HOST_BUILD_PREFIX)"
40
41 define Host/Configure
42 endef
43
44 define Host/Uninstall
45 $(call Host/Compile/Default,uninstall)
46 $(call Host/Compile/Default,clean)
47 endef
48
49 define Host/Clean
50 endef
51
52 $(eval $(call HostBuild))