2014-07-23 07:31:30 +02:00
|
|
|
package=fontconfig
|
2019-06-17 17:49:41 +02:00
|
|
|
$(package)_version=2.12.1
|
2019-05-19 21:58:29 +02:00
|
|
|
$(package)_download_path=https://www.freedesktop.org/software/fontconfig/release/
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
2019-06-17 17:49:41 +02:00
|
|
|
$(package)_sha256_hash=b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_dependencies=freetype expat
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
2019-07-10 11:12:19 +02:00
|
|
|
$(package)_config_opts=--disable-docs --disable-static --disable-libxml2 --disable-iconv
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
$($(package)_autoconf)
|
|
|
|
endef
|
|
|
|
|
2017-08-03 00:50:34 +02:00
|
|
|
# 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.
|
2014-07-23 07:31:30 +02:00
|
|
|
define $(package)_build_cmds
|
2017-08-03 00:50:34 +02:00
|
|
|
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 && \
|
2014-07-23 07:31:30 +02:00
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
2019-04-18 19:49:11 +02:00
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm lib/*.la
|
|
|
|
endef
|