diff --git a/ports/SDL2_image/build.sh b/ports/SDL2_image/build.sh index 6b4924ea..0a8e8872 100755 --- a/ports/SDL2_image/build.sh +++ b/ports/SDL2_image/build.sh @@ -3,7 +3,7 @@ NAME='SDL2_image' VERSION='2.8.8' DOWNLOAD_URL="https://github.com/libsdl-org/SDL_image/releases/download/release-$VERSION/SDL2_image-$VERSION.tar.gz#2213b56fdaff2220d0e38c8e420cbe1a83c87374190cba8c70af2156097ce30a" -DEPENDENCIES=('sdl2-compat' 'libpng' 'libjpeg' 'libtiff' 'libwebp') +DEPENDENCIES=('sdl2-compat' 'libpng' 'libjpeg-turbo' 'libtiff' 'libwebp') configure() { cmake --fresh -S . -B build -G Ninja \ diff --git a/ports/SuperTuxKart/build.sh b/ports/SuperTuxKart/build.sh index a391ee1d..18baf2d8 100755 --- a/ports/SuperTuxKart/build.sh +++ b/ports/SuperTuxKart/build.sh @@ -4,7 +4,7 @@ NAME='SuperTuxKart' VERSION='1.5' DOWNLOAD_URL="https://github.com/supertuxkart/stk-code/releases/download/$VERSION/SuperTuxKart-$VERSION-src.tar.gz#33cf8841e4ff4082d80b9248014295bbbea61d14683e86dff100e3ab8f7b27cb" TAR_CONTENT="SuperTuxKart-$VERSION-src" -DEPENDENCIES=('sdl2-compat' 'curl' 'openal-soft' 'freetype' 'harfbuzz' 'libvorbis' 'libjpeg' 'libpng' 'zlib') +DEPENDENCIES=('sdl2-compat' 'curl' 'openal-soft' 'freetype' 'harfbuzz' 'libvorbis' 'libjpeg-turbo' 'libpng' 'zlib') configure() { cmake --fresh -B build -S . -G Ninja \ diff --git a/ports/gdk-pixbuf/build.sh b/ports/gdk-pixbuf/build.sh index 71e7160b..6d51e6f7 100755 --- a/ports/gdk-pixbuf/build.sh +++ b/ports/gdk-pixbuf/build.sh @@ -3,7 +3,7 @@ NAME='gdk-pixbuf' VERSION='2.44.4' DOWNLOAD_URL="https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/archive/$VERSION/gdk-pixbuf-$VERSION.tar.gz#6de2f77d992155b4121d20036e7e986dfe595a0e654381cdd0d7257f493c208a" -DEPENDENCIES=('glib' 'libpng' 'libjpeg' 'libtiff' 'shared-mime-info') +DEPENDENCIES=('glib' 'libpng' 'libjpeg-turbo' 'libtiff' 'shared-mime-info') CONFIGURE_OPTIONS=( '-Dprefix=/usr' '-Dtests=false' diff --git a/ports/libjpeg-turbo/build.sh b/ports/libjpeg-turbo/build.sh new file mode 100755 index 00000000..599993ae --- /dev/null +++ b/ports/libjpeg-turbo/build.sh @@ -0,0 +1,27 @@ +#!/bin/bash ../install.sh + +NAME='libjpeg-turbo' +VERSION='3.2.0' +DOWNLOAD_URL="https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/$VERSION/libjpeg-turbo-$VERSION.tar.gz#6f30092cef9fb839779646608f4ee14ae3cbac989c47fa05e841b0841f09878e" +DEPENDENCIES=('zlib' 'libspng') + +configure() { + cmake --fresh -S . -B build -G Ninja \ + --toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_STATIC=OFF \ + -DWITH_SYSTEM_ZLIB=ON \ + -DWITH_SYSTEM_SPNG=ON \ + -DWITH_JPEG8=ON \ + -DWITH_TESTS=OFF \ + || exit 1 +} + +build() { + cmake --build build || exit 1 +} + +install() { + DESTDIR="$DESTDIR" cmake --install build || exit 1 +} diff --git a/ports/libjpeg/build.sh b/ports/libjpeg/build.sh deleted file mode 100755 index 1b47fb16..00000000 --- a/ports/libjpeg/build.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash ../install.sh - -NAME='libjpeg' -VERSION='10' -DOWNLOAD_URL="https://www.ijg.org/files/jpegsrc.v$VERSION.tar.gz#8b9eaa13242690ebd03e1728ab1edf97a81a78ed6e83624d493655f31ac95ab5" -TAR_CONTENT="jpeg-$VERSION" -CONFIG_SUB=('config.sub') -CONFIGURE_OPTIONS=( - '--disable-static' -) diff --git a/ports/libjpeg/patches/0001-add-shared-library-support.patch b/ports/libjpeg/patches/0001-add-shared-library-support.patch deleted file mode 100644 index 2bd8fc2c..00000000 --- a/ports/libjpeg/patches/0001-add-shared-library-support.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff -ruN libjpeg-10/configure libjpeg-10-banan_os/configure ---- libjpeg-10/configure 2025-12-31 20:03:45.000000000 +0200 -+++ libjpeg-10-banan_os/configure 2026-07-05 13:28:25.721646060 +0300 -@@ -7457,6 +7457,10 @@ - lt_cv_deplibs_check_method=pass_all - ;; - -+banan_os*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ - beos*) - lt_cv_deplibs_check_method=pass_all - ;; -@@ -13234,6 +13238,16 @@ - esac - ;; - -+banan_os*) -+ version_type=linux # correct to gnu/linux during the next big refactor -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' -+ soname_spec='$libname$release$shared_ext$major' -+ dynamic_linker="$host_os DynamicLoader.so" -+ shlibpath_var=LD_LIBRARY_PATH -+ ;; -+ - beos*) - library_names_spec='$libname$shared_ext' - dynamic_linker="$host_os ld.so" diff --git a/ports/libtiff/build.sh b/ports/libtiff/build.sh index 53893eed..90845dbf 100755 --- a/ports/libtiff/build.sh +++ b/ports/libtiff/build.sh @@ -4,7 +4,7 @@ NAME='libtiff' VERSION='4.7.2' DOWNLOAD_URL="https://download.osgeo.org/libtiff/tiff-$VERSION.tar.xz#4996f0c4f93094719b1ca5c6279b20e588773ba8a247533e486416fb662ddb88" TAR_CONTENT="tiff-$VERSION" -DEPENDENCIES=('zlib' 'zstd' 'libjpeg') +DEPENDENCIES=('zlib' 'zstd' 'libjpeg-turbo') CONFIGURE_OPTIONS=( '--disable-static' ) diff --git a/ports/libwebp/build.sh b/ports/libwebp/build.sh index d82ba114..f18eeee7 100755 --- a/ports/libwebp/build.sh +++ b/ports/libwebp/build.sh @@ -3,9 +3,10 @@ NAME='libwebp' VERSION='1.5.0' DOWNLOAD_URL="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$VERSION.tar.gz#7d6fab70cf844bf6769077bd5d7a74893f8ffd4dfb42861745750c63c2a5c92c" -DEPENDENCIES=('libpng' 'libjpeg' 'libtiff') +DEPENDENCIES=('libpng' 'libjpeg-turbo' 'libtiff') CONFIG_SUB=('config.sub') CONFIGURE_OPTIONS=( + '--disable-static' "--with-pngincludedir=$BANAN_SYSROOT/usr/include" "--with-pnglibdir=$BANAN_SYSROOT/usr/lib" ) diff --git a/ports/links/build.sh b/ports/links/build.sh index 3fcbaa14..b834bee9 100755 --- a/ports/links/build.sh +++ b/ports/links/build.sh @@ -3,7 +3,7 @@ NAME='links' VERSION='2.30' DOWNLOAD_URL="http://links.twibright.com/download/links-$VERSION.tar.gz#7f0d54f4f7d1f094c25c9cbd657f98bc998311122563b1d757c9aeb1d3423b9e" -DEPENDENCIES=('openssl' 'zlib' 'zstd' 'libpng' 'libjpeg' 'libtiff' 'libwebp') +DEPENDENCIES=('openssl' 'zlib' 'zstd' 'libpng' 'libjpeg-turbo' 'libtiff' 'libwebp') post_configure() { config_defines=(