wok-next view fontconfig/receipt @ rev 19763

Up libffi, python, some python-* packages.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 10 21:12:27 2017 +0300 (2017-06-10)
parents 27e7c76d2c94
children 4ca71b0ef823
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-without-harfbuzz-dev"
16 SPLIT="fontconfig-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 --with-arch=$ARCH \
25 --disable-static \
26 --enable-iconv \
27 --enable-libxml2 \
28 --disable-docs \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$install install
34 # FIXME: Which the app uses the next?
35 # FIXME: There are 10-hinting-{full,medium,none,slight}.conf already exists...
36 cd $install/usr/share/fontconfig/conf.avail
37 for h in hintslight hintmedium hintfull; do
38 cat > 10-hintstyle-$h.conf <<EOT
39 <match target="font">
40 <edit mode="append" name="hintstyle">
41 <const>${h}</const>
42 </edit>
43 </match>
44 EOT
45 done
47 ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf \
48 $install/etc/fonts/conf.d
50 # Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading
51 # configurations from ~/.fonts.conf is deprecated.
52 sed -i '/~\/\.fonts\.conf</d' \
53 $install/usr/share/fontconfig/conf.avail/50-user.conf
55 # chown -R root.root $fs
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 case $PACKAGE in
62 fontconfig)
63 copy @std
64 DEPENDS="bzlib freetype liblzma liblzma libpng libxml2 zlib"
65 ;;
66 fontconfig-dev)
67 copy @dev
68 DEPENDS="fontconfig freetype-dev libpng-dev libxml2-dev"
69 ;;
70 esac
71 }