wok-6.x annotate freetype-infinality/receipt @ rev 14882
python-socketpool, python-restkit, python-http-parser, python-couchdbkit: we need a meaningfull TARBALL to store sources on mirror
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 24 15:51:20 2013 +0000 (2013-07-24) |
parents | e9a4503b4331 |
children | 7bb096863642 |
rev | line source |
---|---|
al@14225 | 1 # SliTaz package receipt. |
al@14225 | 2 |
al@14225 | 3 PACKAGE="freetype-infinality" |
al@14225 | 4 PROVIDE="freetype" |
al@14225 | 5 VERSION="2.4.11" |
al@14225 | 6 CATEGORY="x-window" |
al@14225 | 7 SHORT_DESC="Freetype font engine with infinality patches" |
al@14225 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@14225 | 9 SOURCE="freetype" |
al@14225 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
al@14225 | 11 WEB_SITE="http://www.freetype.org/" |
al@14226 | 12 WGET_URL="http://download.savannah.gnu.org/releases/$SOURCE/$TARBALL" |
al@14225 | 13 |
al@14225 | 14 DEPENDS="slitaz-base-files zlib" |
al@14225 | 15 BUILD_DEPENDS="bzip2-dev" |
al@14225 | 16 |
al@14225 | 17 # Rules to configure and make the package. |
al@14225 | 18 compile_rules() |
al@14225 | 19 { |
al@14225 | 20 # http://www.infinality.net/blog/infinality-freetype-patches/ |
al@14225 | 21 # http://www.infinality.net/forum/viewtopic.php?f=2&t=77#p794 |
al@14225 | 22 mkdir -p $src/patch |
al@14225 | 23 tar -xjf $stuff/* -C $src/patch |
al@14225 | 24 patch -p1 < $src/patch/freetype-enable-subpixel-hinting-infinality-20120615-01.patch |
al@14225 | 25 patch -p1 < $src/patch/freetype-entire-infinality-patchset-20130104-01.patch |
al@14225 | 26 |
al@14225 | 27 ./configure \ |
al@14225 | 28 --sysconfdir=/etc \ |
al@14225 | 29 --disable-static \ |
al@14225 | 30 $CONFIGURE_ARGS && |
al@14225 | 31 make && |
pascal@14232 | 32 make install 2>&1 | grep -v rmdir |
al@14225 | 33 } |
al@14225 | 34 |
al@14225 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@14225 | 36 genpkg_rules() |
al@14225 | 37 { |
al@14225 | 38 mkdir -p \ |
al@14225 | 39 $fs/etc/profile.d \ |
al@14225 | 40 $fs/usr/lib/freetype-infinality |
al@14225 | 41 # profile settings |
al@14225 | 42 install -m644 $src/patch/infinality-settings.sh $fs/etc/profile.d |
al@14225 | 43 # binary & libs |
al@14225 | 44 cp -a $install/usr/bin $fs/usr |
al@14225 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib/freetype-infinality |
al@14225 | 46 } |
al@14225 | 47 |
al@14225 | 48 |
al@14225 | 49 post_install() |
al@14225 | 50 { |
al@14225 | 51 # SliTaz not support /etc/profile.d/ by default, but use /etc/profile file |
al@14225 | 52 cat >> /etc/profile << EOT |
al@14225 | 53 |
al@14225 | 54 # freetype-infinality profile settings |
al@14225 | 55 . /etc/profile.d/infinality-settings.sh |
al@14225 | 56 EOT |
al@14225 | 57 |
al@14225 | 58 # add patched libs to loader config |
al@14225 | 59 echo '/usr/lib/freetype-infinality' >> /etc/ld.so.conf |
al@14225 | 60 ldconfig |
al@14225 | 61 echo 'Now you can log out/in to take effect on all your apps' |
al@14225 | 62 } |
al@14225 | 63 |
al@14225 | 64 post_remove() |
al@14225 | 65 { |
al@14225 | 66 sed -i '/infinality/d' /etc/profile |
al@14225 | 67 sed -i '/freetype-infinality/d' /etc/ld.so.conf |
al@14225 | 68 ldconfig |
al@14225 | 69 } |