comparison graphics/graphviz/graphviz.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="CUSTOM" 21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="graph drawing programs" 22 PKGSUMMARY="graph drawing programs"
23 PKGDOWNLOAD="http://files.malikania.fr/distfiles/$PKGNAME-$PKGVERSION.tar.gz" 23 PKGDOWNLOAD="http://files.malikania.fr/distfiles/$PKGNAME-$PKGVERSION.tar.gz"
24 PKGDEPENDS="libtool bash:build" 24 PKGDEPENDS="libtool bash:build"
25 PKGOPTIONS="FONTCONFIG FREETYPE GD GTK PANGO WEBP X XML" 25 PKGOPTIONS="FONTCONFIG GD GTK PANGO TTF WEBP X XML"
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 : ${CXX:=clang++} 31 : ${CXX:=clang++}
32 : ${CXXFLAGS:=-O2} 32 : ${CXXFLAGS:=-O2}
33 : ${LDFLAGS:=} 33 : ${LDFLAGS:=}
34 : ${LIBS:=} 34 : ${LIBS:=}
35 : ${FONTCONFIG:=yes} 35 : ${FONTCONFIG:=yes}
36 : ${FREETYPE:=yes}
37 : ${GD:=yes} 36 : ${GD:=yes}
38 : ${GTK:=yes} 37 : ${GTK:=yes}
39 : ${PANGO:=yes} 38 : ${PANGO:=yes}
39 : ${TTF:=yes}
40 : ${WEBP:=no} 40 : ${WEBP:=no}
41 : ${X:=yes} 41 : ${X:=yes}
42 : ${XML:=yes} 42 : ${XML:=yes}
43 43
44 if [ "$FONTCONFIG" = "yes" ]; then 44 if [ "$FONTCONFIG" = "yes" ]; then
45 PKGDEPENDS="fontconfig $PKGDEPENDS" 45 PKGDEPENDS="fontconfig $PKGDEPENDS"
46 with_fontconfig="--with-fontconfig" 46 with_fontconfig="--with-fontconfig"
47 else 47 else
48 with_fontconfig="--without-fontconfig" 48 with_fontconfig="--without-fontconfig"
49 fi
50
51 if [ "$FREETYPE" = "yes" ]; then
52 PKGDEPENDS="freetype $PKGDEPENDS"
53 with_freetype="--with-freetype2"
54 else
55 with_freetype="--without-freetype2"
56 fi 49 fi
57 50
58 if [ "$GD" = "yes" ]; then 51 if [ "$GD" = "yes" ]; then
59 PKGDEPENDS="libgd $PKGDEPENDS" 52 PKGDEPENDS="libgd $PKGDEPENDS"
60 with_gd="--with-libgd" 53 with_gd="--with-libgd"
72 if [ "$PANGO" = "yes" ]; then 65 if [ "$PANGO" = "yes" ]; then
73 PKGDEPENDS="pango $PKGDEPENDS" 66 PKGDEPENDS="pango $PKGDEPENDS"
74 with_pango="--with-pangocairo" 67 with_pango="--with-pangocairo"
75 else 68 else
76 with_pango="--without-pangocairo" 69 with_pango="--without-pangocairo"
70 fi
71
72 if [ "$TTF" = "yes" ]; then
73 PKGDEPENDS="freetype $PKGDEPENDS"
74 with_ttf="--with-freetype2"
75 else
76 with_ttf="--without-freetype2"
77 fi 77 fi
78 78
79 if [ "$WEBP" = "yes" ]; then 79 if [ "$WEBP" = "yes" ]; then
80 PKGDEPENDS="graphics/webp $PKGDEPENDS" 80 PKGDEPENDS="graphics/webp $PKGDEPENDS"
81 with_webp="--with-webp" 81 with_webp="--with-webp"
146 --without-ortho \ 146 --without-ortho \
147 --without-digcola \ 147 --without-digcola \
148 --without-ipsepcola \ 148 --without-ipsepcola \
149 --with-sfdp \ 149 --with-sfdp \
150 $with_fontconfig \ 150 $with_fontconfig \
151 $with_freetype \
152 $with_gd \ 151 $with_gd \
153 $with_gtk \ 152 $with_gtk \
154 $with_pango \ 153 $with_pango \
154 $with_ttf \
155 $with_webp \ 155 $with_webp \
156 $with_x \ 156 $with_x \
157 $with_xml 157 $with_xml
158 make 158 make
159 make install DESTDIR=$DESTDIR 159 make install DESTDIR=$DESTDIR