comparison graphics/imlib2/imlib2.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 3dece1f7570b
children 27d1a83dc8d6
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
93 with_zlib="--with-zlib" 93 with_zlib="--with-zlib"
94 else 94 else
95 with_zlib="--without-zlib" 95 with_zlib="--without-zlib"
96 fi 96 fi
97 97
98 build() 98 rm -rf $PKGNAME-$PKGVERSION
99 { 99 tar xvf $PKGNAME-$PKGVERSION.tar.bz2
100 rm -rf $PKGNAME-$PKGVERSION 100 cd $PKGNAME-$PKGVERSION
101 tar xvf $PKGNAME-$PKGVERSION.tar.bz2
102 cd $PKGNAME-$PKGVERSION
103 101
104 CC="$CC" \ 102 CC="$CC" \
105 CFLAGS="$CFLAGS" \ 103 CFLAGS="$CFLAGS" \
106 LDFLAGS="$LDFLAGS" \ 104 LDFLAGS="$LDFLAGS" \
107 LIBS="$LIBS" \ 105 LIBS="$LIBS" \
108 ./configure \ 106 ./configure \
109 --build=$CBUILD \ 107 --build=$CBUILD \
110 --host=$CHOST \ 108 --host=$CHOST \
111 --prefix= \ 109 --prefix= \
112 $with_bzip2 \ 110 $with_bzip2 \
113 $with_gif \ 111 $with_gif \
114 $with_jpeg \ 112 $with_jpeg \
115 $with_id3 \ 113 $with_id3 \
116 $with_png \ 114 $with_png \
117 $with_tiff \ 115 $with_tiff \
118 $with_x \ 116 $with_x \
119 $with_zlib 117 $with_zlib
120 make 118 make
121 make install DESTDIR=$DESTDIR 119 make install DESTDIR=$DESTDIR
122 find $DESTDIR -type f -name "*.la" -delete 120 find $DESTDIR -type f -name "*.la" -delete
123 121
124 cd .. 122 cd ..
125 rm -rf $PKGNAME-$PKGVERSION 123 rm -rf $PKGNAME-$PKGVERSION
126 }