Mercurial > vanilla
comparison graphics/cairo/cairo.sh @ 902:a133976e0783
vanilla: remove all origins, closes #2203
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 26 Aug 2019 12:14:53 +0200 |
parents | 0e6c54d47dfb |
children | 25a95c53d800 |
comparison
equal
deleted
inserted
replaced
901:e2de15b7d2b1 | 902:a133976e0783 |
---|---|
19 PKGVERSION=1.16.0 | 19 PKGVERSION=1.16.0 |
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="graphics/pixman" | 24 PKGDEPENDS="pixman" |
25 PKGOPTIONS="DRM EGL FONTCONFIG FREETYPE GALLIUM GLES2 GLES3 GLIB PDF PNG SVG X" | 25 PKGOPTIONS="DRM EGL FONTCONFIG FREETYPE GALLIUM GLES2 GLES3 GLIB PDF PNG SVG 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} |
42 : ${PNG:=yes} | 42 : ${PNG:=yes} |
43 : ${SVG:=yes} | 43 : ${SVG:=yes} |
44 : ${X:=yes} | 44 : ${X:=yes} |
45 | 45 |
46 if [ "$DRM" = "yes" ]; then | 46 if [ "$DRM" = "yes" ]; then |
47 PKGDEPENDS="core/eudev $PKGDEPENDS" | 47 PKGDEPENDS="eudev $PKGDEPENDS" |
48 with_drm="--enable-drm" | 48 with_drm="--enable-drm" |
49 else | 49 else |
50 with_drm="--disable-drm" | 50 with_drm="--disable-drm" |
51 fi | 51 fi |
52 | 52 |
53 if [ "$FONTCONFIG" = "yes" ]; then | 53 if [ "$FONTCONFIG" = "yes" ]; then |
54 PKGDEPENDS="fonts/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 | 58 fi |
59 | 59 |
60 if [ "$FREETYPE" = "yes" ]; then | 60 if [ "$FREETYPE" = "yes" ]; then |
61 PKGDEPENDS="fonts/freetype $PKGDEPENDS" | 61 PKGDEPENDS="freetype $PKGDEPENDS" |
62 with_freetype="--enable-ft" | 62 with_freetype="--enable-ft" |
63 else | 63 else |
64 with_freetype="--disable-ft" | 64 with_freetype="--disable-ft" |
65 fi | 65 fi |
66 | 66 |
67 # All these options require mesa. | 67 # All these options require mesa. |
68 if [ "$EGL" = "yes" ] || [ "$GALLIUM" = "yes" ] || [ "$GLES2" = "yes" ] || [ "$GLES3" = "yes" ]; then | 68 if [ "$EGL" = "yes" ] || [ "$GALLIUM" = "yes" ] || [ "$GLES2" = "yes" ] || [ "$GLES3" = "yes" ]; then |
69 PKGDEPENDS="graphics/mesa $PKGDEPENDS" | 69 PKGDEPENDS="mesa $PKGDEPENDS" |
70 | 70 |
71 if [ "$EGL" = "yes" ]; then | 71 if [ "$EGL" = "yes" ]; then |
72 with_egl="--enable-egl" | 72 with_egl="--enable-egl" |
73 else | 73 else |
74 with_egl="--disable-egl" | 74 with_egl="--disable-egl" |
86 with_gles3="--disable-gles3" | 86 with_gles3="--disable-gles3" |
87 fi | 87 fi |
88 fi | 88 fi |
89 | 89 |
90 if [ "$GLIB" = "yes" ]; then | 90 if [ "$GLIB" = "yes" ]; then |
91 PKGDEPENDS="lib/glib $PKGDEPENDS" | 91 PKGDEPENDS="glib $PKGDEPENDS" |
92 with_glib="--enable-gobject" | 92 with_glib="--enable-gobject" |
93 else | 93 else |
94 with_glib="--disable-gobject" | 94 with_glib="--disable-gobject" |
95 fi | 95 fi |
96 | 96 |
100 else | 100 else |
101 with_pdf="--disable-pdf" | 101 with_pdf="--disable-pdf" |
102 fi | 102 fi |
103 | 103 |
104 if [ "$PNG" = "yes" ]; then | 104 if [ "$PNG" = "yes" ]; then |
105 PKGDEPENDS="graphics/libpng $PKGDEPENDS" | 105 PKGDEPENDS="libpng $PKGDEPENDS" |
106 with_png="--enable-png" | 106 with_png="--enable-png" |
107 else | 107 else |
108 with_png="--disable-png" | 108 with_png="--disable-png" |
109 fi | 109 fi |
110 | 110 |
111 if [ "$SVG" = "yes" ]; then | 111 if [ "$SVG" = "yes" ]; then |
112 PKGDEPENDS="graphics/librsvg $PKGDEPENDS" | 112 PKGDEPENDS="librsvg $PKGDEPENDS" |
113 with_svg="--enable-svg" | 113 with_svg="--enable-svg" |
114 else | 114 else |
115 with_svg="--disable-svg" | 115 with_svg="--disable-svg" |
116 fi | 116 fi |
117 | 117 |
118 if [ "$X" = "yes" ]; then | 118 if [ "$X" = "yes" ]; then |
119 PKGDEPENDS="x11/libxrender x11/libxext x11/libx11 x11/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" |
123 with_x="--enable-xlib-xcb $with_x" | 123 with_x="--enable-xlib-xcb $with_x" |
124 with_x="--with-x $with_x" | 124 with_x="--with-x $with_x" |