wok-6.x view freetype-infinality/receipt @ rev 25493
Add libgnt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 19 17:37:48 2022 +0000 (21 months ago) |
parents | 17091bc7c301 |
children |
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/$SOURCE-old/$TARBALL"
15 DEPENDS="slitaz-base-files zlib"
16 BUILD_DEPENDS="bzip2-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/$SOURCE-/!d;/tar/!d;/doc/d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # http://www.infinality.net/blog/infinality-freetype-patches/
29 # http://www.infinality.net/forum/viewtopic.php?f=2&t=77#p794
30 mkdir -p $src/patch
31 tar -xjf $stuff/* -C $src/patch
32 patch -p1 < $src/patch/freetype-enable-subpixel-hinting-infinality-20120615-01.patch
33 patch -p1 < $src/patch/freetype-entire-infinality-patchset-20130104-01.patch
35 ./configure \
36 --sysconfdir=/etc \
37 --disable-static \
38 $CONFIGURE_ARGS &&
39 make &&
40 make install 2>&1 | grep -v rmdir
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p \
47 $fs/etc/profile.d \
48 $fs/usr/lib/freetype-infinality
49 # profile settings
50 install -m644 $src/patch/infinality-settings.sh $fs/etc/profile.d
51 # binary & libs
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/*.so* $fs/usr/lib/freetype-infinality
54 }
57 post_install()
58 {
59 # SliTaz not support /etc/profile.d/ by default, but use /etc/profile file
60 cat >> "$1/etc/profile" << EOT
62 # freetype-infinality profile settings
63 . /etc/profile.d/infinality-settings.sh
64 EOT
66 # add patched libs to loader config
67 echo '/usr/lib/freetype-infinality' >> "$1/etc/ld.so.conf"
68 chroot "$1/" ldconfig
69 echo 'Now you can log out/in to take effect on all your apps'
70 }
72 post_remove()
73 {
74 sed -i '/infinality/d' "$1/etc/profile"
75 sed -i '/freetype-infinality/d' "$1/etc/ld.so.conf"
76 chroot "$1/" ldconfig
77 }