Mercurial > vanilla
diff graphics/imlib2/imlib2.sh @ 1094:3dece1f7570b
vanilla: add many ghost dependencies
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 09 Sep 2019 21:10:00 +0200 |
parents | ddab65a5b3f5 |
children | 6710613b88b9 |
line wrap: on
line diff
--- a/graphics/imlib2/imlib2.sh Mon Sep 09 21:05:00 2019 +0200 +++ b/graphics/imlib2/imlib2.sh Mon Sep 09 21:10:00 2019 +0200 @@ -22,7 +22,7 @@ PKGSUMMARY="image loading library" PKGDOWNLOAD="https://sourceforge.net/projects/enlightenment/files/imlib2-src/$PKGVERSION/$PKGNAME-$PKGVERSION.tar.bz2" PKGDEPENDS="freetype" -PKGOPTIONS="BZIP2 GIF ID3 PNG TIFF X ZLIB" +PKGOPTIONS="BZIP2 GIF ID3 JPEG PNG TIFF X ZLIB" : ${CHOST:=$(uname -m)-linux-musl} : ${CBUILD:=$(uname -m)-linux-musl} @@ -33,6 +33,7 @@ : ${BZIP2:=yes} : ${GIF:=yes} # TODO: allow "libungif" as optional value : ${ID3:=yes} +: ${JPEG:=yes} : ${PNG:=yes} : ${TIFF:=yes} : ${X:=yes} @@ -52,6 +53,13 @@ with_gif="--without-gif" fi +if [ "$JPEG" = "yes" ]; then + PKGDEPENDS="libjpeg-turbo $PKGDEPENDS" + with_jpeg="--with-jpeg" +else + with_jpeg="--without-jpeg" +fi + if [ "$ID3" = "yes" ]; then PKGDEPENDS="libid3tag $PKGDEPENDS" with_id3="--with-id3" @@ -67,7 +75,7 @@ fi if [ "$TIFF" = "yes" ]; then - PKGDEPENDS="tiff $PKGDEPENDS" + PKGDEPENDS="libtiff $PKGDEPENDS" with_tiff="--with-tiff" else with_tiff="--without-tiff" @@ -80,6 +88,13 @@ with_x="--without-x11" fi +if [ "$ZLIB" = "yes" ]; then + PKGDEPENDS="zlib $PKGDEPENDS" + with_zlib="--with-zlib" +else + with_zlib="--without-zlib" +fi + build() { rm -rf $PKGNAME-$PKGVERSION @@ -96,6 +111,7 @@ --prefix= \ $with_bzip2 \ $with_gif \ + $with_jpeg \ $with_id3 \ $with_png \ $with_tiff \