diff options
author | fanquake <fanquake@gmail.com> | 2024-04-15 17:15:07 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-07-18 14:22:20 +0100 |
commit | ff4f3deb7b8adfcc90fb745440ce4be1176552ca (patch) | |
tree | 074210de47b3c56c40a39da5769e1b9078915721 | |
parent | 9c8b36eba6581ce10458b847cb3f3abd94a2e6a9 (diff) |
depends: use CMake to build FreeType
-rw-r--r-- | depends/packages/freetype.mk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/depends/packages/freetype.mk b/depends/packages/freetype.mk index c28259ed67..c942cbb936 100644 --- a/depends/packages/freetype.mk +++ b/depends/packages/freetype.mk @@ -3,14 +3,17 @@ $(package)_version=2.11.0 $(package)_download_path=https://download.savannah.gnu.org/releases/$(package) $(package)_file_name=$(package)-$($(package)_version).tar.xz $(package)_sha256_hash=8bee39bd3968c4804b70614a0a3ad597299ad0e824bc8aad5ce8aaf48067bde7 +$(package)_build_subdir=build define $(package)_set_vars - $(package)_config_opts=--without-zlib --without-png --without-harfbuzz --without-bzip2 --disable-static - $(package)_config_opts += --enable-option-checking --without-brotli + $(package)_config_opts := -DCMAKE_BUILD_TYPE=None -DBUILD_SHARED_LIBS=TRUE + $(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE + $(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE + $(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE endef define $(package)_config_cmds - $($(package)_autoconf) + $($(package)_cmake) -S .. -B . endef define $(package)_build_cmds @@ -22,5 +25,5 @@ define $(package)_stage_cmds endef define $(package)_postprocess_cmds - rm -rf share/man lib/*.la + rm -rf share/man endef |