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