wok annotate fontconfig/receipt @ rev 23402
updated perl-test-requires (0.09 -> 0.10)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 17:47:09 2020 +0100 (2020-03-31) |
parents | 84ae0c3ef107 |
children | ae73fb35f0cf |
rev | line source |
---|---|
pankso@21 | 1 # SliTaz package receipt. |
pankso@21 | 2 |
pankso@21 | 3 PACKAGE="fontconfig" |
al@14225 | 4 VERSION="2.10.91" |
pankso@21 | 5 CATEGORY="x-window" |
al@14225 | 6 SHORT_DESC="Font configuration utilities and library" |
pankso@21 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15593 | 8 LICENSE="MIT" |
pascal@20673 | 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/fontconfig/" |
al@14225 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@14225 | 11 WGET_URL="http://www.freedesktop.org/software/fontconfig/release/$TARBALL" |
pankso@16057 | 12 HOST_ARCH="i486 arm" |
al@14225 | 13 |
al@14225 | 14 DEPENDS="bzlib expat freetype libxml2" |
pascal@19695 | 15 BUILD_DEPENDS="libxml2-dev freetype-dev liblzma-dev" |
pankso@21 | 16 |
pankso@21 | 17 # Rules to configure and make the package. |
pankso@21 | 18 compile_rules() |
pankso@21 | 19 { |
pankso@3852 | 20 ./configure \ |
pankso@3852 | 21 --sysconfdir=/etc \ |
pankso@3852 | 22 --localstatedir=/var \ |
pankso@10293 | 23 --with-arch=$ARCH \ |
al@14225 | 24 --disable-static \ |
al@14225 | 25 --enable-iconv \ |
al@14225 | 26 --enable-libxml2 \ |
al@14225 | 27 --disable-docs \ |
pankso@3852 | 28 $CONFIGURE_ARGS && |
al@14225 | 29 make && |
al@14225 | 30 make DESTDIR=$install install |
pankso@21 | 31 } |
pankso@21 | 32 |
pankso@21 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@21 | 34 genpkg_rules() |
pankso@21 | 35 { |
pankso@21 | 36 mkdir -p $fs/usr/lib |
al@14225 | 37 cp -a $install/etc $fs |
al@14225 | 38 cp -a $install/usr/bin $fs/usr |
al@14225 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@14225 | 40 cp -a $install/usr/share $fs/usr |
al@14225 | 41 cp -a $install/var $fs |
psychomaniak@18575 | 42 |
psychomaniak@18575 | 43 cd $fs/usr/share/fontconfig/conf.avail |
psychomaniak@18575 | 44 for h in hintslight hintmedium hintfull; do |
psychomaniak@18576 | 45 cat > 10-hintstyle-$h.conf <<EOT |
psychomaniak@18575 | 46 <match target="font"> |
psychomaniak@18575 | 47 <edit mode="append" name="hintstyle"> |
psychomaniak@18575 | 48 <const>${h}</const> |
psychomaniak@18575 | 49 </edit> |
psychomaniak@18575 | 50 </match> |
psychomaniak@18575 | 51 EOT |
psychomaniak@18576 | 52 done |
psychomaniak@18575 | 53 |
psychomaniak@18575 | 54 ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf \ |
psychomaniak@18575 | 55 $fs/etc/fonts/conf.d |
al@18582 | 56 |
al@18582 | 57 # Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading |
al@18582 | 58 # configurations from ~/.fonts.conf is deprecated. |
al@18582 | 59 sed '/~\/\.fonts\.conf</d' $fs/usr/share/fontconfig/conf.avail/50-user.conf |
al@18582 | 60 |
psychomaniak@18575 | 61 chown -R root.root $fs |
pankso@21 | 62 } |