Mercurial > vanilla
comparison graphics/cairo/cairo.sh @ 904:25a95c53d800
vanilla: rename FREETYPE to TTF, closes #2202
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 26 Aug 2019 20:20:00 +0200 |
parents | a133976e0783 |
children | ddab65a5b3f5 |
comparison
equal
deleted
inserted
replaced
903:931d2626ae5f | 904:25a95c53d800 |
---|---|
20 PKGREVISION=1 | 20 PKGREVISION=1 |
21 PKGLICENSE="LGPLv21 MPLv11" | 21 PKGLICENSE="LGPLv21 MPLv11" |
22 PKGSUMMARY="vector graphics library" | 22 PKGSUMMARY="vector graphics library" |
23 PKGDOWNLOAD="https://cairographics.org/releases/$PKGNAME-$PKGVERSION.tar.xz" | 23 PKGDOWNLOAD="https://cairographics.org/releases/$PKGNAME-$PKGVERSION.tar.xz" |
24 PKGDEPENDS="pixman" | 24 PKGDEPENDS="pixman" |
25 PKGOPTIONS="DRM EGL FONTCONFIG FREETYPE GALLIUM GLES2 GLES3 GLIB PDF PNG SVG X" | 25 PKGOPTIONS="DRM EGL FONTCONFIG GALLIUM GLES2 GLES3 GLIB PDF PNG SVG TTF X" |
26 | 26 |
27 : ${CHOST:=$(uname -m)-linux-musl} | 27 : ${CHOST:=$(uname -m)-linux-musl} |
28 : ${CBUILD:=$(uname -m)-linux-musl} | 28 : ${CBUILD:=$(uname -m)-linux-musl} |
29 : ${CC:=clang} | 29 : ${CC:=clang} |
30 : ${CFLAGS:=-O2} | 30 : ${CFLAGS:=-O2} |
31 : ${LDFLAGS:=} | 31 : ${LDFLAGS:=} |
32 : ${LIBS:=} | 32 : ${LIBS:=} |
33 : ${DRM:=no} | 33 : ${DRM:=no} |
34 : ${EGL:=no} | 34 : ${EGL:=no} |
35 : ${FONTCONFIG:=yes} | 35 : ${FONTCONFIG:=yes} |
36 : ${FREETYPE:=yes} | |
37 : ${GALLIUM:=no} | 36 : ${GALLIUM:=no} |
38 : ${GLES2:=no} | 37 : ${GLES2:=no} |
39 : ${GLES3:=no} | 38 : ${GLES3:=no} |
40 : ${GLIB:=yes} | 39 : ${GLIB:=yes} |
41 : ${PDF:=yes} | 40 : ${PDF:=yes} |
42 : ${PNG:=yes} | 41 : ${PNG:=yes} |
43 : ${SVG:=yes} | 42 : ${SVG:=yes} |
43 : ${TTF:=yes} | |
44 : ${X:=yes} | 44 : ${X:=yes} |
45 | 45 |
46 if [ "$DRM" = "yes" ]; then | 46 if [ "$DRM" = "yes" ]; then |
47 PKGDEPENDS="eudev $PKGDEPENDS" | 47 PKGDEPENDS="eudev $PKGDEPENDS" |
48 with_drm="--enable-drm" | 48 with_drm="--enable-drm" |
53 if [ "$FONTCONFIG" = "yes" ]; then | 53 if [ "$FONTCONFIG" = "yes" ]; then |
54 PKGDEPENDS="fontconfig $PKGDEPENDS" | 54 PKGDEPENDS="fontconfig $PKGDEPENDS" |
55 with_fontconfig="--enable-fc" | 55 with_fontconfig="--enable-fc" |
56 else | 56 else |
57 with_fontconfig="--disable-fc" | 57 with_fontconfig="--disable-fc" |
58 fi | |
59 | |
60 if [ "$FREETYPE" = "yes" ]; then | |
61 PKGDEPENDS="freetype $PKGDEPENDS" | |
62 with_freetype="--enable-ft" | |
63 else | |
64 with_freetype="--disable-ft" | |
65 fi | 58 fi |
66 | 59 |
67 # All these options require mesa. | 60 # All these options require mesa. |
68 if [ "$EGL" = "yes" ] || [ "$GALLIUM" = "yes" ] || [ "$GLES2" = "yes" ] || [ "$GLES3" = "yes" ]; then | 61 if [ "$EGL" = "yes" ] || [ "$GALLIUM" = "yes" ] || [ "$GLES2" = "yes" ] || [ "$GLES3" = "yes" ]; then |
69 PKGDEPENDS="mesa $PKGDEPENDS" | 62 PKGDEPENDS="mesa $PKGDEPENDS" |
113 with_svg="--enable-svg" | 106 with_svg="--enable-svg" |
114 else | 107 else |
115 with_svg="--disable-svg" | 108 with_svg="--disable-svg" |
116 fi | 109 fi |
117 | 110 |
111 if [ "$TTF" = "yes" ]; then | |
112 PKGDEPENDS="freetype $PKGDEPENDS" | |
113 with_ttf="--enable-ft" | |
114 else | |
115 with_ttf="--disable-ft" | |
116 fi | |
117 | |
118 if [ "$X" = "yes" ]; then | 118 if [ "$X" = "yes" ]; then |
119 PKGDEPENDS="libxrender libxext libx11 libxcb" | 119 PKGDEPENDS="libxrender libxext libx11 libxcb" |
120 with_x="--enable-xlib $with_x" | 120 with_x="--enable-xlib $with_x" |
121 with_x="--enable-xlib-xrender $with_x" | 121 with_x="--enable-xlib-xrender $with_x" |
122 with_x="--enable-xcb=yes $with_x" | 122 with_x="--enable-xcb=yes $with_x" |
146 --prefix= \ | 146 --prefix= \ |
147 --disable-valgrind \ | 147 --disable-valgrind \ |
148 --enable-shared \ | 148 --enable-shared \ |
149 $with_drm \ | 149 $with_drm \ |
150 $with_fontconfig \ | 150 $with_fontconfig \ |
151 $with_freetype \ | |
152 $with_egl \ | 151 $with_egl \ |
153 $with_gles2 \ | 152 $with_gles2 \ |
154 $with_gles3 \ | 153 $with_gles3 \ |
155 $with_glib \ | 154 $with_glib \ |
156 $with_pdf \ | 155 $with_pdf \ |
157 $with_png \ | 156 $with_png \ |
158 $with_svg \ | 157 $with_svg \ |
158 $with_ttf \ | |
159 $with_x | 159 $with_x |
160 make | 160 make |
161 make install DESTDIR=$DESTDIR | 161 make install DESTDIR=$DESTDIR |
162 find $DESTDIR -type f -name "*.la" -delete | 162 find $DESTDIR -type f -name "*.la" -delete |
163 | 163 |