wok-next view freetype/receipt @ rev 20978
Small improvements
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Sep 27 01:34:11 2018 +0300 (2018-09-27) |
parents | 68405ac5fe8a |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="freetype"
4 VERSION="2.9.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 WEB_SITE="https://www.freetype.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/freetype2.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="automake libtool autoconf zlib-dev bzip2-dev libpng16-dev"
16 SPLIT="freetype-dev"
18 # Option "--harfbuzz" used in the task to install build dependency harfbuzz-dev
19 [ -n "$harfbuzz" ] && BUILD_DEPENDS="$BUILD_DEPENDS harfbuzz-dev"
21 compile_rules() {
22 sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg
23 sed -ri "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:g" \
24 include/freetype/config/ftoption.h
26 # ./autogen.sh &&
27 ./configure \
28 --disable-static \
29 --with-bzip2 \
30 --with-png \
31 --enable-freetype-config \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 freetype)
40 copy @std
41 DEPENDS="bzlib libharfbuzz libpng16 zlib"
42 ;;
43 freetype-dev)
44 copy @dev
45 DEPENDS="freetype bzip2-dev harfbuzz-dev libpng16-dev zlib-dev"
46 ;;
47 esac
48 }