blob: 0bec576cfd288c98a56f422bb225877e89b07d08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# fontconfig
# http://fontconfig.org/
PKG := fontconfig
$(PKG)_VERSION := 2.6.0
$(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
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) 's,^install-data-local:.*,install-data-local:,' -i '$(1)/src/Makefile.in'
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-arch='$(TARGET)' \
--with-freetype-config='$(PREFIX)/$(TARGET)/bin/freetype-config' \
--with-expat='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef
|