wok-next view fontconfig/receipt @ rev 19810
Up atm-tools, audiofile, audit, avfs, c_icap, xz.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 19 14:10:52 2017 +0300 (2017-07-19) |
parents | 90739e3b0feb |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fontconfig"
4 VERSION="2.12.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Font configuration utilities and library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/fontconfig/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://www.freedesktop.org/software/fontconfig/release/$TARBALL"
15 BUILD_DEPENDS="libxml2-dev freetype-dev gperf"
16 SPLIT="fontconfig-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -e '/FC_CHAR_WIDTH/s/CHAR_WIDTH/CHARWIDTH/' \
22 -e '/FC_CHARWIDTH/a #define FC_CHAR_WIDTH FC_CHARWIDTH' \
23 -i fontconfig/fontconfig.h &&
24 sed 's/CHAR_WIDTH/CHARWIDTH/' -i src/fcobjs.h &&
27 ./configure \
28 --sysconfdir=/etc \
29 --localstatedir=/var \
30 --with-arch=$ARCH \
31 --disable-static \
32 --enable-iconv \
33 --enable-libxml2 \
34 --disable-docs \
35 --docdir=/usr/share/doc/fontconfig-$VERSION \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$install install
41 # FIXME: Which the app uses the next?
42 # FIXME: There are 10-hinting-{full,medium,none,slight}.conf already exists...
43 cd $install/usr/share/fontconfig/conf.avail
44 for h in hintslight hintmedium hintfull; do
45 cat > 10-hintstyle-$h.conf <<EOT
46 <match target="font">
47 <edit mode="append" name="hintstyle">
48 <const>${h}</const>
49 </edit>
50 </match>
51 EOT
52 done
54 ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf \
55 $install/etc/fonts/conf.d
57 # Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading
58 # configurations from ~/.fonts.conf is deprecated.
59 sed -i '/~\/\.fonts\.conf</d' \
60 $install/usr/share/fontconfig/conf.avail/50-user.conf
62 # chown -R root.root $fs
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 case $PACKAGE in
69 fontconfig)
70 copy @std
71 DEPENDS="bzlib freetype liblzma liblzma libpng libxml2 zlib"
72 ;;
73 fontconfig-dev)
74 copy @dev
75 DEPENDS="fontconfig freetype-dev libpng-dev libxml2-dev"
76 ;;
77 esac
78 }