Magellan Linux

Contents of /branches/R11-stable/core/fontconfig/fontconfig-2.10.93-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17813 - (show annotations) (download)
Wed Jun 26 12:37:24 2013 UTC (10 years, 11 months ago) by niro
File size: 2201 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="fontconfig"
4 PVER="2.10.93"
5 PBUILD="r1"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="fontconfig is a library for configuring and customizing font access."
10 HOMEPAGE="http://fontconfig.org/"
11
12 DEPEND=">= media-libs/freetype-2.4
13 >= dev-libs/expat-2"
14
15 SDEPEND=">= virtual/sed"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude multilib mtools
21
22 SRC_URI=(
23 http://fontconfig.org/release/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 "mirror://${PNAME}/man-2.3.1/fc-cache.man man-2.3.1"
26 "mirror://${PNAME}/man-2.3.1/fc-list.man man-2.3.1"
27 )
28
29 UP2DATE="updatecmd http://fontconfig.org/release/ | grep ${PNAME}- | lasttarball gz"
30
31 src_compile()
32 {
33
34 mconfigure \
35 --disable-docs \
36 --with-docdir=/usr/share/doc/${PNAME}-${PVER} \
37 --x-includes=/usr/include \
38 --x-libraries=/usr/$(mlibdir) \
39 --with-default-fonts=/usr/share/fonts \
40 --with-add-fonts=/usr/local/share/fonts \
41 || die
42
43 # does not like optimations
44 mmake -j1 || die
45
46 # remove Luxi TTF fonts from the list, the Type1 are much better
47 # all-abis 'sed -i "s:<dir>/usr/$(mlibdir)/X11/fonts/TTF</dir>::" fonts.conf' || die
48 }
49
50 src_install()
51 {
52 mmake DESTDIR=${BINDIR} install || die
53
54 # install font.conf
55 minstallfile fonts.conf /etc/fonts || die
56 minstallfile fonts.conf /etc/fonts/fonts.conf.new || die
57
58 # fc-lang directory contains language coverage datafiles
59 # which are needed to test the coverage of fonts.
60 minstalldir /usr/share/fc-lang || die
61 minstallfile fc-lang/\*.orth /usr/share/fc-lang || die
62
63 # install man-pages
64 # we're using prebuilded man pages to prevent docbook dependencies
65 minstalldir /usr/share/man/man1 || die
66 minstallfile -s man-2.3.1/fc-cache.man /usr/share/man/man1/fc-cache.1 || die
67 minstallfile -s man-2.3.1/fc-list.man /usr/share/man/man1/fc-list.1 || die
68 }
69
70 preinstall()
71 {
72 # delete this file if it exists
73 [ -f ${MROOT}/etc/fonts/fonts.conf.new ] && \
74 rm -f ${MROOT}/etc/fonts/fonts.conf.new
75 }
76
77 postinstall()
78 {
79 echo "Creating new font cache..."
80
81 # force update; config_protect will prevent this
82 mv -f ${MROOT}/etc/fonts/fonts.conf.new ${MROOT}/etc/fonts/fonts.conf
83 rm -f ${MROOT}/etc/fonts/._cfg????_fonts.conf
84 HOME="${MROOT}/root" ${MROOT}/usr/bin/fc-cache -sr
85 }