wok-next view fontconfig/receipt @ rev 20500

Tiny edits: fix permissions and avoid out-of-tree files.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Mar 15 20:43:55 2018 +0200 (2018-03-15)
parents e66e3386e562
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fontconfig"
4 VERSION="2.12.4"
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://www.freedesktop.org/software/fontconfig/release/$TARBALL"
14 BUILD_DEPENDS="libxml2-dev freetype-dev gperf"
15 SPLIT="fontconfig-dev"
17 compile_rules() {
18 rm -f src/fcobjshash.h
20 ./configure \
21 --sysconfdir=/etc \
22 --localstatedir=/var \
23 --with-arch=$ARCH \
24 --disable-static \
25 --enable-iconv \
26 --enable-libxml2 \
27 --disable-docs \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$install install || return 1
33 # FIXME: Which the app uses the next?
34 # FIXME: There are 10-hinting-{full,medium,none,slight}.conf already exists...
35 cd $install/usr/share/fontconfig/conf.avail
36 for h in hintslight hintmedium hintfull; do
37 cat > 10-hintstyle-$h.conf <<EOT
38 <match target="font">
39 <edit mode="append" name="hintstyle">
40 <const>${h}</const>
41 </edit>
42 </match>
43 EOT
44 done
46 ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf \
47 $install/etc/fonts/conf.d
49 # Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading
50 # configurations from ~/.fonts.conf is deprecated.
51 sed -i '/~\/\.fonts\.conf</d' \
52 $install/usr/share/fontconfig/conf.avail/50-user.conf
54 # chown -R root.root $fs
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 case $PACKAGE in
61 fontconfig)
62 copy @std
63 DEPENDS="bzlib freetype liblzma liblzma libpng16 libxml2 zlib"
64 ;;
65 fontconfig-dev)
66 copy @dev
67 DEPENDS="fontconfig freetype-dev libpng16-dev libxml2-dev"
68 ;;
69 esac
70 }