mxe/src/fontconfig.mk

35 lines
1.3 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
# See doc/index.html for further information.
2008-11-08 20:25:30 +00:00
# fontconfig
PKG := fontconfig
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 1ab2f437c2261028ae7969892277af2d8d8db489
$(PKG)_SUBDIR := fontconfig-$($(PKG)_VERSION)
$(PKG)_FILE := fontconfig-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://fontconfig.org/release/$($(PKG)_FILE)
$(PKG)_DEPS := gcc freetype expat
2008-11-08 20:25:30 +00:00
define $(PKG)_UPDATE
wget -q -O- 'http://fontconfig.org/release/' | \
$(SED) -n 's,.*fontconfig-\([0-9][^>]*\)\.tar.*,\1,p' | \
tail -1
endef
define $(PKG)_BUILD
# ensure there is no (buggy) attempt to install the *.dll.a file
# (remove this line of you want to link dynamically)
$(SED) -i 's,^install-data-local:.*,install-data-local:,' '$(1)/src/Makefile.in'
$(SED) -i 's,^\(Libs:.*\),\1 @EXPAT_LIBS@ @FREETYPE_LIBS@,' '$(1)/fontconfig.pc.in'
2008-11-08 20:25:30 +00:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
2008-11-08 20:25:30 +00:00
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-arch='$(TARGET)' \
--with-freetype-config='$(PREFIX)/$(TARGET)/bin/freetype-config' \
2008-11-10 10:09:59 +00:00
--with-expat='$(PREFIX)/$(TARGET)'
2009-02-03 20:48:46 +00:00
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
2008-11-08 20:25:30 +00:00
endef