You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fontconfig.mk 1.1KB

12345678910111213141516171819202122232425262728
  1. package=fontconfig
  2. $(package)_version=2.12.1
  3. $(package)_download_path=http://www.freedesktop.org/software/fontconfig/release/
  4. $(package)_file_name=$(package)-$($(package)_version).tar.bz2
  5. $(package)_sha256_hash=b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3
  6. $(package)_dependencies=freetype expat
  7. define $(package)_set_vars
  8. $(package)_config_opts=--disable-docs --disable-static
  9. endef
  10. define $(package)_config_cmds
  11. $($(package)_autoconf)
  12. endef
  13. # 2.12.1 uses CHAR_WIDTH which is reserved and clashes with some glibc versions, but newer versions of fontconfig
  14. # have broken makefiles which needlessly attempt to re-generate headers with gperf.
  15. # Instead, change all uses of CHAR_WIDTH, and disable the rule that forces header re-generation.
  16. # This can be removed once the upstream build is fixed.
  17. define $(package)_build_cmds
  18. sed -i 's/CHAR_WIDTH/CHARWIDTH/g' fontconfig/fontconfig.h src/fcobjshash.gperf src/fcobjs.h src/fcobjshash.h && \
  19. sed -i 's/fcobjshash.h: fcobjshash.gperf/fcobjshash.h:/' src/Makefile && \
  20. $(MAKE)
  21. endef
  22. define $(package)_stage_cmds
  23. $(MAKE) DESTDIR=$($(package)_staging_dir) install
  24. endef