9295adeb38
This contains significant rebase / merge / testing work by Naut <lbrynaut@protonmail.com>, Anthony Fieroni <bvbfan@abv.bg> and Brannon King <countprimes@gmail.com>.
32 lines
1.2 KiB
Makefile
32 lines
1.2 KiB
Makefile
package=fontconfig
|
|
$(package)_version=2.11.1
|
|
$(package)_download_path=https://www.freedesktop.org/software/fontconfig/release/
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
|
$(package)_sha256_hash=dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99
|
|
$(package)_dependencies=freetype expat
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=--disable-docs --disable-static --disable-libxml2 --disable-iconv
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
$($(package)_autoconf)
|
|
endef
|
|
|
|
# 2.12.1 uses CHAR_WIDTH which is reserved and clashes with some glibc versions, but newer versions of fontconfig
|
|
# have broken makefiles which needlessly attempt to re-generate headers with gperf.
|
|
# Instead, change all uses of CHAR_WIDTH, and disable the rule that forces header re-generation.
|
|
# This can be removed once the upstream build is fixed.
|
|
define $(package)_build_cmds
|
|
sed -i 's/CHAR_WIDTH/CHARWIDTH/g' fontconfig/fontconfig.h src/fcobjshash.gperf src/fcobjs.h src/fcobjshash.h && \
|
|
sed -i 's/fcobjshash.h: fcobjshash.gperf/fcobjshash.h:/' src/Makefile && \
|
|
$(MAKE)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm lib/*.la
|
|
endef
|