wok-6.x annotate freetype-infinality/receipt @ rev 17533

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