comparison graphics/libtiff/libtiff.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
comparison
equal deleted inserted replaced
1093:0502aa76ec98 1094:3dece1f7570b
16 # 16 #
17 17
18 PKGNAME=libtiff 18 PKGNAME=libtiff
19 PKGVERSION=4.0.10 19 PKGVERSION=4.0.10
20 PKGREVISION=1 20 PKGREVISION=1
21 PKGLICENSE="one of README.licenses.md or CUSTOM" 21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="short summary" 22 PKGSUMMARY="TIFF libraries and utilities"
23 PKGDOWNLOAD="https://download.osgeo.org/$PKGNAME/tiff-$PKGVERSION.tar.gz" 23 PKGDOWNLOAD="https://download.osgeo.org/$PKGNAME/tiff-$PKGVERSION.tar.gz"
24 PKGOPTIONS="JPEG LZMA ZLIB ZSTD" 24 PKGOPTIONS="JPEG LZMA WEBP ZLIB ZSTD"
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}
31 : ${CXXFLAGS:=-O2} 31 : ${CXXFLAGS:=-O2}
32 : ${LDFLAGS:=} 32 : ${LDFLAGS:=}
33 : ${LIBS:=} 33 : ${LIBS:=}
34 : ${JPEG:=yes} 34 : ${JPEG:=yes}
35 : ${LZMA:=yes} 35 : ${LZMA:=yes}
36 : ${WEBP:=yes}
36 : ${ZLIB:=yes} 37 : ${ZLIB:=yes}
37 : ${ZSTD:=yes} 38 : ${ZSTD:=yes}
38 39
39 if [ "$JPEG" = "yes" ]; then 40 if [ "$JPEG" = "yes" ]; then
40 PKGDEPENDS="libjpeg-turbo $PKGDEPENDS" 41 PKGDEPENDS="libjpeg-turbo $PKGDEPENDS"
46 if [ "$LZMA" = "yes" ]; then 47 if [ "$LZMA" = "yes" ]; then
47 PKGDEPENDS="xz $PKGDEPENDS" 48 PKGDEPENDS="xz $PKGDEPENDS"
48 with_lzma="--enable-lzma" 49 with_lzma="--enable-lzma"
49 else 50 else
50 with_lzma="--disable-lzma" 51 with_lzma="--disable-lzma"
52 fi
53
54 if [ "$WEBP" = "yes" ]; then
55 PKGDEPENDS="libwebp $PKGDEPENDS"
56 with_webp="--enable-webp"
57 else
58 with_webp="--disable-webp"
51 fi 59 fi
52 60
53 if [ "$ZLIB" = "yes" ]; then 61 if [ "$ZLIB" = "yes" ]; then
54 PKGDEPENDS="zlib $PKGDEPENDS" 62 PKGDEPENDS="zlib $PKGDEPENDS"
55 with_zlib="--enable-zlib" 63 with_zlib="--enable-zlib"
82 --prefix= \ 90 --prefix= \
83 --with-docdir=/share/doc/libtiff \ 91 --with-docdir=/share/doc/libtiff \
84 --enable-shared \ 92 --enable-shared \
85 $with_jpeg \ 93 $with_jpeg \
86 $with_lzma \ 94 $with_lzma \
95 $with_webp \
87 $with_zlib \ 96 $with_zlib \
88 $with_zstd 97 $with_zstd
89 make 98 make
90 make install DESTDIR=$DESTDIR 99 make install DESTDIR=$DESTDIR
91 find $DESTDIR -type f -name "*.la" -delete 100 find $DESTDIR -type f -name "*.la" -delete