comparison graphics/libgd/libgd.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
19 PKGVERSION=2.2.5 19 PKGVERSION=2.2.5
20 PKGREVISION=1 20 PKGREVISION=1
21 PKGLICENSE="CUSTOM" 21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="library for the dynamic creation of images" 22 PKGSUMMARY="library for the dynamic creation of images"
23 PKGDOWNLOAD="https://github.com/libgd/libgd/releases/download/gd-$PKGVERSION/$PKGNAME-$PKGVERSION.tar.xz" 23 PKGDOWNLOAD="https://github.com/libgd/libgd/releases/download/gd-$PKGVERSION/$PKGNAME-$PKGVERSION.tar.xz"
24 PKGOPTIONS="FONTCONFIG FREETYPE JPEG LIQ PNG TIFF WEBP X ZLIB" 24 PKGOPTIONS="FONTCONFIG JPEG LIQ PNG TIFF TTF WEBP X ZLIB"
25 25
26 : ${CHOST:=$(uname -m)-linux-musl} 26 : ${CHOST:=$(uname -m)-linux-musl}
27 : ${CBUILD:=$(uname -m)-linux-musl} 27 : ${CBUILD:=$(uname -m)-linux-musl}
28 : ${CC:=clang} 28 : ${CC:=clang}
29 : ${CFLAGS:=-O2} 29 : ${CFLAGS:=-O2}
30 : ${LDFLAGS:=} 30 : ${LDFLAGS:=}
31 : ${LIBS:=} 31 : ${LIBS:=}
32 : ${FONTCONFIG:=no} 32 : ${FONTCONFIG:=no}
33 : ${FREETYPE:=no}
34 : ${JPEG:=yes} 33 : ${JPEG:=yes}
35 : ${LIQ:=no} 34 : ${LIQ:=no}
36 : ${PNG:=yes} 35 : ${PNG:=yes}
37 : ${TIFF:=no} 36 : ${TIFF:=no}
37 : ${TTF:=no}
38 : ${WEBP:=no} 38 : ${WEBP:=no}
39 : ${X:=no} 39 : ${X:=no}
40 : ${ZLIB:=no} 40 : ${ZLIB:=no}
41 41
42 if [ "$FONTCONFIG" = "yes" ]; then 42 if [ "$FONTCONFIG" = "yes" ]; then
43 PKGDEPENDS="fontconfig $PKGDEPENDS" 43 PKGDEPENDS="fontconfig $PKGDEPENDS"
44 with_fontconfig="--with-fontconfig" 44 with_fontconfig="--with-fontconfig"
45 else 45 else
46 with_fontconfig="--without-fontconfig" 46 with_fontconfig="--without-fontconfig"
47 fi
48
49 if [ "$FREETYPE" = "yes" ]; then
50 PKGDEPENDS="freetype $PKGDEPENDS"
51 with_freetype="--with-freetype"
52 else
53 with_freetype="--without-freetype"
54 fi 47 fi
55 48
56 if [ "$JPEG" = "yes" ]; then 49 if [ "$JPEG" = "yes" ]; then
57 PKGDEPENDS="libjpeg-turbo $PKGDEPENDS" 50 PKGDEPENDS="libjpeg-turbo $PKGDEPENDS"
58 with_jpeg="--with-jpeg" 51 with_jpeg="--with-jpeg"
77 if [ "$TIFF" = "yes" ]; then 70 if [ "$TIFF" = "yes" ]; then
78 PKGDEPENDS="libtiff $PKGDEPENDS" 71 PKGDEPENDS="libtiff $PKGDEPENDS"
79 with_tiff="--with-tiff" 72 with_tiff="--with-tiff"
80 else 73 else
81 with_tiff="--without-tiff" 74 with_tiff="--without-tiff"
75 fi
76
77 if [ "$TTF" = "yes" ]; then
78 PKGDEPENDS="freetype $PKGDEPENDS"
79 with_ttf="--with-freetype"
80 else
81 with_ttf="--without-freetype"
82 fi 82 fi
83 83
84 if [ "$WEBP" = "yes" ]; then 84 if [ "$WEBP" = "yes" ]; then
85 PKGDEPENDS="graphics/webp $PKGDEPENDS" 85 PKGDEPENDS="graphics/webp $PKGDEPENDS"
86 with_webp="--with-webp" 86 with_webp="--with-webp"
116 --build=$CBUILD \ 116 --build=$CBUILD \
117 --host=$CHOST \ 117 --host=$CHOST \
118 --prefix= \ 118 --prefix= \
119 --enable-shared \ 119 --enable-shared \
120 $with_fontconfig \ 120 $with_fontconfig \
121 $with_freetype \
122 $with_jpeg \ 121 $with_jpeg \
123 $with_liq \ 122 $with_liq \
124 $with_png \ 123 $with_png \
125 $with_tiff \ 124 $with_tiff \
125 $with_ttf \
126 $with_webp \ 126 $with_webp \
127 $with_x \ 127 $with_x \
128 $with_zlib 128 $with_zlib
129 make 129 make
130 make install DESTDIR=$DESTDIR 130 make install DESTDIR=$DESTDIR