mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2025-02-01 21:21:05 +00:00
Add extra configure flags for building SDL2_image.
Slim down the library as much as possible, and link directly against libpng rather than searching for it at runtime (so that the OS X package building code will find libpng correctly).
This commit is contained in:
parent
db2f7268bd
commit
a3a88dfc9d
1 changed files with 11 additions and 1 deletions
|
@ -2,4 +2,14 @@ description "SDL imaging library"
|
|||
dependencies SDL2
|
||||
check_pkgconfig SDL2_image
|
||||
fetch_download https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.1.tar.gz
|
||||
build_autotools --disable-imageio
|
||||
|
||||
# SDL2_image supports lots of different file formats but we only care
|
||||
# about .png files. So just build a really thin library without support
|
||||
# for all the other formats we don't care about.
|
||||
# We also disable the OS X ImageIO plugin, and link directly to libpng
|
||||
# rather than searching for it at runtime.
|
||||
build_autotools --disable-imageio --disable-png-shared \
|
||||
--disable-bmp --disable-gif --disable-jpg --disable-lbm --disable-pcx \
|
||||
--disable-pnm --disable-tga --disable-tif --disable-xcf --disable-xpm \
|
||||
--disable-xv --disable-webp
|
||||
|
||||
|
|
Loading…
Reference in a new issue