wok-next annotate freetype-infinality/receipt @ rev 20533
cairo-clock, grub4dos: fix CFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 27 12:50:45 2018 +0200 (2018-03-27) |
parents | c3a368c0cddb |
children | 757d032c55c7 |
rev | line source |
---|---|
al@20456 | 1 # SliTaz package receipt v2. |
al@14225 | 2 |
al@14225 | 3 PACKAGE="freetype-infinality" |
al@14225 | 4 VERSION="2.4.11" |
al@14225 | 5 CATEGORY="x-window" |
al@14225 | 6 SHORT_DESC="Freetype font engine with infinality patches" |
al@14225 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@15215 | 8 LICENSE="BSD GPL2" |
al@14225 | 9 WEB_SITE="http://www.freetype.org/" |
al@14225 | 10 |
al@20456 | 11 TARBALL="freetype-$VERSION.tar.bz2" |
al@20456 | 12 WGET_URL="http://download.savannah.gnu.org/releases/freetype/$TARBALL" |
al@20456 | 13 |
al@14225 | 14 BUILD_DEPENDS="bzip2-dev" |
al@20456 | 15 SPLIT="freetype-infinality-dev" |
al@14225 | 16 |
al@20456 | 17 compile_rules() { |
al@14225 | 18 # http://www.infinality.net/blog/infinality-freetype-patches/ |
al@14225 | 19 # http://www.infinality.net/forum/viewtopic.php?f=2&t=77#p794 |
al@14225 | 20 mkdir -p $src/patch |
al@14225 | 21 tar -xjf $stuff/* -C $src/patch |
al@14225 | 22 patch -p1 < $src/patch/freetype-enable-subpixel-hinting-infinality-20120615-01.patch |
al@14225 | 23 patch -p1 < $src/patch/freetype-entire-infinality-patchset-20130104-01.patch |
al@14225 | 24 |
al@14225 | 25 ./configure \ |
al@14225 | 26 --sysconfdir=/etc \ |
al@14225 | 27 --disable-static \ |
al@14225 | 28 $CONFIGURE_ARGS && |
al@14225 | 29 make && |
pascal@14232 | 30 make install 2>&1 | grep -v rmdir |
al@14225 | 31 } |
al@14225 | 32 |
al@20456 | 33 genpkg_rules() { |
al@20456 | 34 case $PACKAGE in |
al@20456 | 35 freetype-infinality) |
al@20456 | 36 mkdir -p \ |
al@20456 | 37 $fs/etc/profile.d \ |
al@20456 | 38 $fs/usr/lib/freetype-infinality |
al@20456 | 39 # profile settings |
al@20456 | 40 install -m644 $src/patch/infinality-settings.sh $fs/etc/profile.d |
al@20456 | 41 # binary & libs |
al@20456 | 42 cp -a $install/usr/bin $fs/usr |
al@20456 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib/freetype-infinality |
al@20456 | 44 DEPENDS="slitaz-base-files zlib" |
al@20456 | 45 PROVIDE="freetype" |
al@20456 | 46 ;; |
al@20456 | 47 *-dev) |
al@20456 | 48 mkdir -p $fs/usr/lib |
al@20456 | 49 cp -a $install/usr/include $fs/usr |
al@20456 | 50 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
al@20456 | 51 cp -a $install/usr/lib/*.*a $fs/usr/lib |
al@20456 | 52 cp -a $install/usr/share $fs/usr |
al@20513 | 53 DEPENDS="freetype-infinality libzip-dev bzip2-dev" |
al@20456 | 54 ;; |
al@20456 | 55 esac |
al@14225 | 56 } |
al@14225 | 57 |
al@14225 | 58 |
al@20456 | 59 post_install_freetype_infinality() { |
al@14225 | 60 # SliTaz not support /etc/profile.d/ by default, but use /etc/profile file |
al@20456 | 61 cat >> "$1/etc/profile" <<EOT |
al@14225 | 62 |
al@14225 | 63 # freetype-infinality profile settings |
al@14225 | 64 . /etc/profile.d/infinality-settings.sh |
al@14225 | 65 EOT |
al@14225 | 66 |
al@14225 | 67 # add patched libs to loader config |
pascal@18730 | 68 echo '/usr/lib/freetype-infinality' >> "$1/etc/ld.so.conf" |
pascal@17552 | 69 chroot "$1/" ldconfig |
al@14225 | 70 echo 'Now you can log out/in to take effect on all your apps' |
al@14225 | 71 } |
al@14225 | 72 |
al@20456 | 73 post_remove_freetype_infinality() { |
pascal@18730 | 74 sed -i '/infinality/d' "$1/etc/profile" |
pascal@18730 | 75 sed -i '/freetype-infinality/d' "$1/etc/ld.so.conf" |
pascal@17552 | 76 chroot "$1/" ldconfig |
al@14225 | 77 } |