annotate src/fontconfig.mk @ 269:16a7b5bac4b5

bugfix in several build rules: use "$(SED)" instead of "sed"
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 05 Mar 2009 15:22:43 +0100
parents 5bf9071e67b6
children 85ffa9259036
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
153
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # fontconfig
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3 PKG := fontconfig
177
e3f4909ed0d5 update packages binutils, curl, fltk, fontconfig, freetype, gdal, geos, libgcrypt, libpng, libxml2, libxslt, pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents: 153
diff changeset
4 $(PKG)_VERSION := 2.6.0
153
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_SUBDIR := fontconfig-$($(PKG)_VERSION)
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_FILE := fontconfig-$($(PKG)_VERSION).tar.gz
265
5bf9071e67b6 put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents: 261
diff changeset
7 $(PKG)_WEBSITE := http://fontconfig.org/
153
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://fontconfig.org/release/$($(PKG)_FILE)
188
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents: 177
diff changeset
9 $(PKG)_DEPS := gcc freetype expat
153
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 wget -q -O- 'http://fontconfig.org/release/' | \
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(SED) -n 's,.*fontconfig-\([0-9][^>]*\)\.tar.*,\1,p' | \
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 tail -1
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 endef
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 define $(PKG)_BUILD
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 # ensure there is no (buggy) attempt to install the *.dll.a file
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 # (remove this line of you want to link dynamically)
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 $(SED) 's,^install-data-local:.*,install-data-local:,' -i '$(1)/src/Makefile.in'
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 # wine confuses the cross-compiling detection, so set it explicitly
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
269
16a7b5bac4b5 bugfix in several build rules: use "$(SED)" instead of "sed"
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
23 $(SED) 's,^\(Libs:.*\),\1 @EXPAT_LIBS@ @FREETYPE_LIBS@,' -i '$(1)/fontconfig.pc.in'
153
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 cd '$(1)' && ./configure \
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --host='$(TARGET)' \
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --disable-shared \
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --prefix='$(PREFIX)/$(TARGET)' \
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --with-arch='$(TARGET)' \
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --with-freetype-config='$(PREFIX)/$(TARGET)/bin/freetype-config' \
188
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents: 177
diff changeset
30 --with-expat='$(PREFIX)/$(TARGET)'
220
32eef23cb982 portability fixes for MacOS X
Volker Grabsch <vog@notjusthosting.com>
parents: 188
diff changeset
31 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
32eef23cb982 portability fixes for MacOS X
Volker Grabsch <vog@notjusthosting.com>
parents: 188
diff changeset
32 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
153
efa211bbfd73 translated package: fontconfig
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 endef