comparison graphics/sdl2-image/sdl2-image.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
143 with_webp="--enable-webp" 143 with_webp="--enable-webp"
144 else 144 else
145 with_webp="--disable-webp" 145 with_webp="--disable-webp"
146 fi 146 fi
147 147
148 rm -rf SDL2_image-$PKGVERSION 148 build()
149 tar xvf SDL2_image-$PKGVERSION.tar.gz 149 {
150 cd SDL2_image-$PKGVERSION 150 rm -rf SDL2_image-$PKGVERSION
151 tar xvf SDL2_image-$PKGVERSION.tar.gz
152 cd SDL2_image-$PKGVERSION
151 153
152 CC="$CC" \ 154 CC="$CC" \
153 CFLAGS="$CFLAGS" \ 155 CFLAGS="$CFLAGS" \
154 LDFLAGS="$LDFLAGS" \ 156 LDFLAGS="$LDFLAGS" \
155 LIBS="$LIBS" \ 157 LIBS="$LIBS" \
156 ./configure \ 158 ./configure \
157 --build=$CBUILD \ 159 --build=$CBUILD \
158 --host=$CHOST \ 160 --host=$CHOST \
159 --prefix=/usr \ 161 --prefix= \
160 $with_bmp \ 162 $with_bmp \
161 $with_gif \ 163 $with_gif \
162 $with_jpeg \ 164 $with_jpeg \
163 $with_lbm \ 165 $with_lbm \
164 $with_pcx \ 166 $with_pcx \
165 $with_png \ 167 $with_png \
166 $with_pnm \ 168 $with_pnm \
167 $with_svg \ 169 $with_svg \
168 $with_tga \ 170 $with_tga \
169 $with_tiff \ 171 $with_tiff \
170 $with_webp \ 172 $with_webp \
171 $with_xcf \ 173 $with_xcf \
172 $with_xpm \ 174 $with_xpm \
173 $with_xv 175 $with_xv
174 make 176 make
175 make install DESTDIR=$DESTDIR 177 make install DESTDIR=$DESTDIR
176 find $DESTDIR -type f -name "*.la" -delete 178 find $DESTDIR -type f -name "*.la" -delete
177 179
178 cd .. 180 cd ..
179 rm -rf SDL2_image-$PKGVERSION 181 rm -rf SDL2_image-$PKGVERSION
182 }