Mercurial > vanilla
comparison fonts/pango/pango.sh @ 332:c2e6ff05e89d
fonts/pango: initial import, closes #1423
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Mar 2019 20:18:00 +0100 |
parents | |
children | 97e16b45e88a |
comparison
equal
deleted
inserted
replaced
331:34803fde60ed | 332:c2e6ff05e89d |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | |
5 # Permission to use, copy, modify, and/or distribute this software for any | |
6 # purpose with or without fee is hereby granted, provided that the above | |
7 # copyright notice and this permission notice appear in all copies. | |
8 # | |
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
16 # | |
17 | |
18 PKGNAME=pango | |
19 PKGVERSION=1.43.0 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="LGPLv20" | |
22 PKGSUMMARY="library for rendering text focusing on internationalization" | |
23 PKGDOWNLOAD="http://ftp.gnome.org/pub/GNOME/sources/$PKGNAME/1.43/$PKGNAME-$PKGVERSION.tar.xz" | |
24 PKGDEPENDS="dev/meson:build | |
25 fonts/fontconfig | |
26 fonts/freetype | |
27 fonts/harfbuzz | |
28 graphics/cairo" | |
29 PKGOPTIONS="WAYLAND X" | |
30 | |
31 : ${CC:=gcc} | |
32 : ${CFLAGS:=-O2} | |
33 : ${CXX:=g++} | |
34 : ${CXXFLAGS:=-O2} | |
35 : ${LDFLAGS:=} | |
36 : ${WAYLAND:=yes} | |
37 : ${X:=yes} | |
38 | |
39 # build system has no options yet, just bring dependencies for the moment. | |
40 if [ "$WAYLAND" = "yes" ]; then | |
41 PKGDEPENDS="graphics/wayland $PKGDEPENDS" | |
42 fi | |
43 | |
44 if [ "$X" = "yes" ]; then | |
45 PKGDEPENDS="x11/libxft $PKGDEPENDS" | |
46 PKGDEPENDS="x11/libxrender $PKGDEPENDS" | |
47 fi | |
48 | |
49 build() | |
50 { | |
51 rm -rf $PKGNAME-$PKGVERSION | |
52 tar xvaf $PKGNAME-$PKGVERSION.tar.xz | |
53 pushd $PKGNAME-$PKGVERSION | |
54 | |
55 CC="$CC" \ | |
56 CFLAGS="$CFLAGS" \ | |
57 CXX="$CXX" \ | |
58 CXXFLAGS="$CXXFLAGS" \ | |
59 LDFLAGS="$LDFLAGS" \ | |
60 meson \ | |
61 --prefix /usr \ | |
62 --buildtype release \ | |
63 --default-library shared \ | |
64 . build | |
65 ninja -C build | |
66 DESTDIR=$DESTDIR ninja -C build install | |
67 | |
68 popd | |
69 rm -rf $PKGNAME-$PKGVERSION | |
70 } | |
71 |