mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
8ee652f4c3
3498a8d
depends: fix fontconfig with newer glibc (Cory Fields)
Pull request description:
Fixes build with newer gcc.
Without this, depends builds fail with gcc7, maybe gcc6.
Tree-SHA512: 3cfcebdb137c3e368c69d25012ceb32809890e67521aaa8b074f2092f847e3e7ae82ac9050b4600ba18f443d2a8fe1f8523c808d77642a1e7782d558cbad4a74
29 lines
1.1 KiB
Makefile
29 lines
1.1 KiB
Makefile
package=fontconfig
|
|
$(package)_version=2.12.1
|
|
$(package)_download_path=http://www.freedesktop.org/software/fontconfig/release/
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
|
$(package)_sha256_hash=b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3
|
|
$(package)_dependencies=freetype expat
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=--disable-docs --disable-static
|
|
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
|