comparison graphics/libtiff/libtiff.sh @ 1222:325631424c65

misc: bring back build function
author David Demelier <markand@malikania.fr>
date Wed, 27 Oct 2021 11:32:16 +0200
parents a47aaf9743a0
children 9867e578b1a9
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
70 with_zstd="--enable-zstd" 70 with_zstd="--enable-zstd"
71 else 71 else
72 with_zstd="--disable-zstd" 72 with_zstd="--disable-zstd"
73 fi 73 fi
74 74
75 rm -rf tiff-$PKGVERSION 75 build()
76 tar xvf tiff-$PKGVERSION.tar.gz 76 {
77 cd tiff-$PKGVERSION 77 rm -rf tiff-$PKGVERSION
78 tar xvf tiff-$PKGVERSION.tar.gz
79 cd tiff-$PKGVERSION
78 80
79 CC="$CC" \ 81 CC="$CC" \
80 CFLAGS="$CFLAGS" \ 82 CFLAGS="$CFLAGS" \
81 CXX="$CXX" \ 83 CXX="$CXX" \
82 CXXFLAGS="$CXXFLAGS" \ 84 CXXFLAGS="$CXXFLAGS" \
83 LDFLAGS="$LDFLAGS" \ 85 LDFLAGS="$LDFLAGS" \
84 LIBS="$LIBS" \ 86 LIBS="$LIBS" \
85 ./configure \ 87 ./configure \
86 --build=$CBUILD \ 88 --build=$CBUILD \
87 --host=$CHOST \ 89 --host=$CHOST \
88 --prefix=/usr \ 90 --prefix= \
89 --with-docdir=/share/doc/libtiff \ 91 --with-docdir=/share/doc/libtiff \
90 --enable-shared \ 92 --enable-shared \
91 $with_jpeg \ 93 $with_jpeg \
92 $with_lzma \ 94 $with_lzma \
93 $with_webp \ 95 $with_webp \
94 $with_zlib \ 96 $with_zlib \
95 $with_zstd 97 $with_zstd
96 make 98 make
97 make install DESTDIR=$DESTDIR 99 make install DESTDIR=$DESTDIR
98 find $DESTDIR -type f -name "*.la" -delete 100 find $DESTDIR -type f -name "*.la" -delete
99 101
100 cd .. 102 cd ..
101 rm -rf tiff-$PKGVERSION 103 rm -rf tiff-$PKGVERSION
104 }