@@ -3,19 +3,25 @@ $(package)_version=2.4.8
3
3
$(package)_download_path =https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$($(package ) _version) ) /
4
4
$(package)_file_name =$(package ) -$($(package ) _version) .tar.xz
5
5
$(package)_sha256_hash =f79b8f904b749e3e0d20afeadecf8249c55b2e32d4ebb089ae378df479dcaf25
6
+ $(package)_build_subdir =build
7
+ $(package)_patches += cmake_minimum.patch
6
8
7
9
# -D_DEFAULT_SOURCE defines __USE_MISC, which exposes additional
8
10
# definitions in endian.h, which are required for a working
9
11
# endianness check in configure when building with -flto.
10
12
define $(package)_set_vars
11
- $(package ) _config_opts=--disable-shared --without-docbook --without-tests --without-examples
12
- $(package ) _config_opts += --disable-dependency-tracking --enable-option-checking
13
- $(package ) _config_opts += --without-xmlwf
13
+ $(package ) _config_opts := -DCMAKE_BUILD_TYPE=None -DEXPAT_BUILD_TOOLS=OFF
14
+ $(package ) _config_opts += -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_BUILD_TESTS=OFF
15
+ $(package ) _config_opts += -DBUILD_SHARED_LIBS=OFF
14
16
$(package ) _cppflags += -D_DEFAULT_SOURCE
15
17
endef
16
18
19
+ define $(package)_preprocess_cmds
20
+ patch -p1 < $($(package ) _patch_dir) /cmake_minimum.patch
21
+ endef
22
+
17
23
define $(package)_config_cmds
18
- $($(package ) _autoconf)
24
+ $($(package ) _cmake) -S .. -B .
19
25
endef
20
26
21
27
define $(package)_build_cmds
@@ -27,5 +33,5 @@ define $(package)_stage_cmds
27
33
endef
28
34
29
35
define $(package)_postprocess_cmds
30
- rm -rf share lib/cmake lib/*.la
36
+ rm -rf share lib/cmake
31
37
endef
0 commit comments