mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
cdd6d68b2a
All of these patches did the same thing, which is already in upstream config.sub. With this change, we need only add `use_fresh_config_sub=true` to the package.sh file. Note that this is not done automatically in case the port has a modified config.sub file.
26 lines
1,013 B
Bash
Executable file
26 lines
1,013 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=SDL2_image
|
|
useconfigure=true
|
|
use_fresh_config_sub=true
|
|
version=2.0.5
|
|
depends=("SDL2" "libpng" "libjpeg" "libtiff")
|
|
files="https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${version}.tar.gz SDL_image-${version}.tar.gz bdd5f6e026682f7d7e1be0b6051b209da2f402a2dd8bd1c4bd9c25ad263108d0"
|
|
auth_type=sha256
|
|
|
|
configure() {
|
|
run ./configure \
|
|
--host="${SERENITY_ARCH}-pc-serenity" \
|
|
--with-sdl-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
|
|
--enable-webp=false --enable-webp-shared=false \
|
|
LDFLAGS="-lgui -lgfx -lipc -lcore -lm"
|
|
}
|
|
|
|
build() {
|
|
run make -k
|
|
}
|
|
|
|
install() {
|
|
run make -k DESTDIR="${SERENITY_INSTALL_ROOT}" install
|
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_image.so -Wl,-soname,libSDL2_image.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_image.a -Wl,--no-whole-archive -lpng -ljpeg -ltiff
|
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libSDL2_image.la
|
|
}
|