wok-next view harfbuzz/receipt @ rev 20602

harfbuzz: fix $DEPENDS
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 17 09:07:22 2018 +0300 (2018-04-17)
parents afbc312ba6b0
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="harfbuzz"
4 VERSION="1.7.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="OpenType text shaping engine"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/HarfBuzz/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/harfbuzz.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://www.freedesktop.org/software/harfbuzz/release/$TARBALL"
15 BUILD_DEPENDS="glib-dev cairo-dev freetype-dev fontconfig-dev icu-dev"
16 SPLIT="libharfbuzz libharfbuzz-icu harfbuzz-icu-dev harfbuzz-dev"
18 compile_rules() {
19 ./configure \
20 --with-gobject \
21 $CONFIGURE_ARGS &&
22 fix libtool &&
23 make &&
24 make install
25 }
27 genpkg_rules() {
28 # Note, we have two development packages:
29 # * harfbuzz-dev - without ICU integration
30 # * harfbuzz-icu-dev - with ICU integration
31 # Use one of these packages at a time in your receipt.
33 case $PACKAGE in
34 harfbuzz)
35 copy bin/
36 CAT="system-tools|applications"
37 DEPENDS="cairo freetype glib libharfbuzz"
38 ;;
39 libharfbuzz)
40 copy libharfbuzz.so* libharfbuzz-gobject.so*
41 CAT="libs|shared library"
42 DEPENDS="freetype glib"
43 ;;
44 libharfbuzz-icu)
45 copy libharfbuzz-icu.so*
46 CAT="libs|ICU integration"
47 DEPENDS="libharfbuzz libicu"
48 ;;
49 harfbuzz-icu-dev)
50 copy *-icu.h *-icu.pc # *-icu.la
51 CAT="development|ICU integration development files"
52 DEPENDS="libharfbuzz-icu harfbuzz-dev icu-dev"
53 PROVIDE="harfbuzz-icu" # fake for cookutils as it always wanted to install package without '-dev'
54 ;;
55 harfbuzz-dev)
56 copy @dev @rm
57 DEPENDS="harfbuzz glib-dev"
58 ;;
59 esac
60 }