contrib/sdl2_image/Pkgfile

24 lines
664 B
Plaintext
Raw Normal View History

# Description: SDL_image is an image file loading library.
2022-07-10 15:45:28 +02:00
# URL: https://github.com/libsdl-org/SDL_image
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libsdl2 libwebp
name=sdl2_image
2023-02-10 18:25:41 +01:00
version=2.6.3
release=2
2022-07-10 15:45:28 +02:00
source=(https://github.com/libsdl-org/SDL_image/releases/download/release-$version/SDL2_image-$version.tar.gz)
build() {
cmake -S SDL2_image-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
2020-01-21 12:04:43 +01:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
2020-01-21 12:04:43 +01:00
# delete installed license.txt
rm -rf $PKG/usr/share
}