wok-next view fontconfig/receipt @ rev 19733

Some receipts v2: apr, apr-util, aspell, at-spi2-core, at-spi2-atk, atk, atkmm, cairomm, colord, glibmm, libsigc++, libxslt.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 26 16:40:11 2017 +0300 (2017-05-26)
parents 1ee3a39efb8c
children 9278a60d6895
line source
1 # SliTaz package receipt.
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 DEPENDS="bzlib freetype liblzma liblzma libpng libxml2 zlib"
16 BUILD_DEPENDS="libxml2-dev freetype-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
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_folders etc bin share var
38 cook_copy_files *.so*
40 # Which the app uses the next?
41 # There are 10-hinting-{full,medium,none,slight}.conf already exists...
42 cd $fs/usr/share/fontconfig/conf.avail
43 for h in hintslight hintmedium hintfull; do
44 cat > 10-hintstyle-$h.conf <<EOT
45 <match target="font">
46 <edit mode="append" name="hintstyle">
47 <const>${h}</const>
48 </edit>
49 </match>
50 EOT
51 done
53 ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf \
54 $fs/etc/fonts/conf.d
56 # Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading
57 # configurations from ~/.fonts.conf is deprecated.
58 sed -i '/~\/\.fonts\.conf</d' $fs/usr/share/fontconfig/conf.avail/50-user.conf
60 # chown -R root.root $fs
61 }