wok-next view freetype/receipt @ rev 19141
Up fbff (20150331)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 19 10:49:21 2016 +0200 (2016-05-19) |
parents | 7e930b05781d |
children | c460585add2a |
line source
1 # SliTaz package receipt.
3 PACKAGE="freetype"
4 VERSION="2.6.1"
5 CATEGORY="x-window"
6 SHORT_DESC="A free, high-quality, and portable font engine"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="FTL GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.freetype.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="zlib libpng harfbuzz"
15 BUILD_DEPENDS="automake libtool autoconf bzip2-dev libpng-dev harfbuzz-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Fix make install for version 2.6.1
21 patch -p1 -i $stuff/freetype261-install.patch
23 # Optional old style fonts
24 patch -p1 -i $stuff/NO_SUBPIXEL_HINTING.env.patch
26 # Directives from LFS
27 sed -e "/AUX.*.gxvalid/s@^# @@" \
28 -e "/AUX.*.otvalid/s@^# @@" \
29 -i modules.cfg &&
30 sed -e 's:.*\(#.*SUBPIXEL.*\) .*:\1:' \
31 -i include/freetype/config/ftoption.h &&
32 ./autogen.sh &&
33 ./configure \
34 --sysconfdir=/etc \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 }