wok-6.x view freetype-infinality/receipt @ rev 15188

Add memtest-serial
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 25 18:09:21 2013 +0000 (2013-08-25)
parents e9a4503b4331
children 7bb096863642
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 SOURCE="freetype"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.freetype.org/"
12 WGET_URL="http://download.savannah.gnu.org/releases/$SOURCE/$TARBALL"
14 DEPENDS="slitaz-base-files zlib"
15 BUILD_DEPENDS="bzip2-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # http://www.infinality.net/blog/infinality-freetype-patches/
21 # http://www.infinality.net/forum/viewtopic.php?f=2&t=77#p794
22 mkdir -p $src/patch
23 tar -xjf $stuff/* -C $src/patch
24 patch -p1 < $src/patch/freetype-enable-subpixel-hinting-infinality-20120615-01.patch
25 patch -p1 < $src/patch/freetype-entire-infinality-patchset-20130104-01.patch
27 ./configure \
28 --sysconfdir=/etc \
29 --disable-static \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install 2>&1 | grep -v rmdir
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p \
39 $fs/etc/profile.d \
40 $fs/usr/lib/freetype-infinality
41 # profile settings
42 install -m644 $src/patch/infinality-settings.sh $fs/etc/profile.d
43 # binary & libs
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib/*.so* $fs/usr/lib/freetype-infinality
46 }
49 post_install()
50 {
51 # SliTaz not support /etc/profile.d/ by default, but use /etc/profile file
52 cat >> /etc/profile << EOT
54 # freetype-infinality profile settings
55 . /etc/profile.d/infinality-settings.sh
56 EOT
58 # add patched libs to loader config
59 echo '/usr/lib/freetype-infinality' >> /etc/ld.so.conf
60 ldconfig
61 echo 'Now you can log out/in to take effect on all your apps'
62 }
64 post_remove()
65 {
66 sed -i '/infinality/d' /etc/profile
67 sed -i '/freetype-infinality/d' /etc/ld.so.conf
68 ldconfig
69 }