Mercurial > vanilla
diff 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 |
line wrap: on
line diff
--- a/graphics/graphviz/graphviz.sh Mon Aug 26 20:45:00 2019 +0200 +++ b/graphics/graphviz/graphviz.sh Mon Aug 26 20:20:00 2019 +0200 @@ -22,7 +22,7 @@ PKGSUMMARY="graph drawing programs" PKGDOWNLOAD="http://files.malikania.fr/distfiles/$PKGNAME-$PKGVERSION.tar.gz" PKGDEPENDS="libtool bash:build" -PKGOPTIONS="FONTCONFIG FREETYPE GD GTK PANGO WEBP X XML" +PKGOPTIONS="FONTCONFIG GD GTK PANGO TTF WEBP X XML" : ${CHOST:=$(uname -m)-linux-musl} : ${CBUILD:=$(uname -m)-linux-musl} @@ -33,10 +33,10 @@ : ${LDFLAGS:=} : ${LIBS:=} : ${FONTCONFIG:=yes} -: ${FREETYPE:=yes} : ${GD:=yes} : ${GTK:=yes} : ${PANGO:=yes} +: ${TTF:=yes} : ${WEBP:=no} : ${X:=yes} : ${XML:=yes} @@ -48,13 +48,6 @@ with_fontconfig="--without-fontconfig" fi -if [ "$FREETYPE" = "yes" ]; then - PKGDEPENDS="freetype $PKGDEPENDS" - with_freetype="--with-freetype2" -else - with_freetype="--without-freetype2" -fi - if [ "$GD" = "yes" ]; then PKGDEPENDS="libgd $PKGDEPENDS" with_gd="--with-libgd" @@ -76,6 +69,13 @@ with_pango="--without-pangocairo" fi +if [ "$TTF" = "yes" ]; then + PKGDEPENDS="freetype $PKGDEPENDS" + with_ttf="--with-freetype2" +else + with_ttf="--without-freetype2" +fi + if [ "$WEBP" = "yes" ]; then PKGDEPENDS="graphics/webp $PKGDEPENDS" with_webp="--with-webp" @@ -148,10 +148,10 @@ --without-ipsepcola \ --with-sfdp \ $with_fontconfig \ - $with_freetype \ $with_gd \ $with_gtk \ $with_pango \ + $with_ttf \ $with_webp \ $with_x \ $with_xml