Mercurial > vanilla
diff 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 |
line wrap: on
line diff
--- a/graphics/sdl2-image/sdl2-image.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/graphics/sdl2-image/sdl2-image.sh Wed Oct 27 11:32:16 2021 +0200 @@ -145,35 +145,38 @@ with_webp="--disable-webp" fi -rm -rf SDL2_image-$PKGVERSION -tar xvf SDL2_image-$PKGVERSION.tar.gz -cd SDL2_image-$PKGVERSION +build() +{ + rm -rf SDL2_image-$PKGVERSION + tar xvf SDL2_image-$PKGVERSION.tar.gz + cd SDL2_image-$PKGVERSION -CC="$CC" \ -CFLAGS="$CFLAGS" \ -LDFLAGS="$LDFLAGS" \ -LIBS="$LIBS" \ -./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - $with_bmp \ - $with_gif \ - $with_jpeg \ - $with_lbm \ - $with_pcx \ - $with_png \ - $with_pnm \ - $with_svg \ - $with_tga \ - $with_tiff \ - $with_webp \ - $with_xcf \ - $with_xpm \ - $with_xv -make -make install DESTDIR=$DESTDIR -find $DESTDIR -type f -name "*.la" -delete + CC="$CC" \ + CFLAGS="$CFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix= \ + $with_bmp \ + $with_gif \ + $with_jpeg \ + $with_lbm \ + $with_pcx \ + $with_png \ + $with_pnm \ + $with_svg \ + $with_tga \ + $with_tiff \ + $with_webp \ + $with_xcf \ + $with_xpm \ + $with_xv + make + make install DESTDIR=$DESTDIR + find $DESTDIR -type f -name "*.la" -delete -cd .. -rm -rf SDL2_image-$PKGVERSION + cd .. + rm -rf SDL2_image-$PKGVERSION +}