wok-6.x view freetype-infinality/receipt @ rev 20841
updated dokuwiki (2012-01-25 -> 20180422b)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 20 16:20:24 2019 +0100 (2019-02-20) |
parents | 9e01bc6321ea |
children | 17091bc7c301 |
line source
1 # SliTaz package receipt.
3 PACKAGE="freetype-infinality"
4 PROVIDE="freetype"
5 VERSION="2.4.11"
6 CATEGORY="x-window"
7 SHORT_DESC="Freetype font engine with infinality patches"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="BSD GPL2"
10 SOURCE="freetype"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="https://www.freetype.org/"
13 WGET_URL="http://download.savannah.gnu.org/releases/$SOURCE/$TARBALL"
15 DEPENDS="slitaz-base-files zlib"
16 BUILD_DEPENDS="bzip2-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # http://www.infinality.net/blog/infinality-freetype-patches/
22 # http://www.infinality.net/forum/viewtopic.php?f=2&t=77#p794
23 mkdir -p $src/patch
24 tar -xjf $stuff/* -C $src/patch
25 patch -p1 < $src/patch/freetype-enable-subpixel-hinting-infinality-20120615-01.patch
26 patch -p1 < $src/patch/freetype-entire-infinality-patchset-20130104-01.patch
28 ./configure \
29 --sysconfdir=/etc \
30 --disable-static \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install 2>&1 | grep -v rmdir
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p \
40 $fs/etc/profile.d \
41 $fs/usr/lib/freetype-infinality
42 # profile settings
43 install -m644 $src/patch/infinality-settings.sh $fs/etc/profile.d
44 # binary & libs
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/*.so* $fs/usr/lib/freetype-infinality
47 }
50 post_install()
51 {
52 # SliTaz not support /etc/profile.d/ by default, but use /etc/profile file
53 cat >> "$1/etc/profile" << EOT
55 # freetype-infinality profile settings
56 . /etc/profile.d/infinality-settings.sh
57 EOT
59 # add patched libs to loader config
60 echo '/usr/lib/freetype-infinality' >> "$1/etc/ld.so.conf"
61 chroot "$1/" ldconfig
62 echo 'Now you can log out/in to take effect on all your apps'
63 }
65 post_remove()
66 {
67 sed -i '/infinality/d' "$1/etc/profile"
68 sed -i '/freetype-infinality/d' "$1/etc/ld.so.conf"
69 chroot "$1/" ldconfig
70 }