ports: Replace libjpeg with libjpeg turbo
This is faster and adds some extensions on top of that
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
NAME='SDL2_image'
|
NAME='SDL2_image'
|
||||||
VERSION='2.8.8'
|
VERSION='2.8.8'
|
||||||
DOWNLOAD_URL="https://github.com/libsdl-org/SDL_image/releases/download/release-$VERSION/SDL2_image-$VERSION.tar.gz#2213b56fdaff2220d0e38c8e420cbe1a83c87374190cba8c70af2156097ce30a"
|
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() {
|
configure() {
|
||||||
cmake --fresh -S . -B build -G Ninja \
|
cmake --fresh -S . -B build -G Ninja \
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ NAME='SuperTuxKart'
|
|||||||
VERSION='1.5'
|
VERSION='1.5'
|
||||||
DOWNLOAD_URL="https://github.com/supertuxkart/stk-code/releases/download/$VERSION/SuperTuxKart-$VERSION-src.tar.gz#33cf8841e4ff4082d80b9248014295bbbea61d14683e86dff100e3ab8f7b27cb"
|
DOWNLOAD_URL="https://github.com/supertuxkart/stk-code/releases/download/$VERSION/SuperTuxKart-$VERSION-src.tar.gz#33cf8841e4ff4082d80b9248014295bbbea61d14683e86dff100e3ab8f7b27cb"
|
||||||
TAR_CONTENT="SuperTuxKart-$VERSION-src"
|
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() {
|
configure() {
|
||||||
cmake --fresh -B build -S . -G Ninja \
|
cmake --fresh -B build -S . -G Ninja \
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
NAME='gdk-pixbuf'
|
NAME='gdk-pixbuf'
|
||||||
VERSION='2.44.4'
|
VERSION='2.44.4'
|
||||||
DOWNLOAD_URL="https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/archive/$VERSION/gdk-pixbuf-$VERSION.tar.gz#6de2f77d992155b4121d20036e7e986dfe595a0e654381cdd0d7257f493c208a"
|
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=(
|
CONFIGURE_OPTIONS=(
|
||||||
'-Dprefix=/usr'
|
'-Dprefix=/usr'
|
||||||
'-Dtests=false'
|
'-Dtests=false'
|
||||||
|
|||||||
27
ports/libjpeg-turbo/build.sh
Executable file
27
ports/libjpeg-turbo/build.sh
Executable file
@@ -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
|
||||||
|
}
|
||||||
@@ -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'
|
|
||||||
)
|
|
||||||
@@ -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"
|
|
||||||
@@ -4,7 +4,7 @@ NAME='libtiff'
|
|||||||
VERSION='4.7.2'
|
VERSION='4.7.2'
|
||||||
DOWNLOAD_URL="https://download.osgeo.org/libtiff/tiff-$VERSION.tar.xz#4996f0c4f93094719b1ca5c6279b20e588773ba8a247533e486416fb662ddb88"
|
DOWNLOAD_URL="https://download.osgeo.org/libtiff/tiff-$VERSION.tar.xz#4996f0c4f93094719b1ca5c6279b20e588773ba8a247533e486416fb662ddb88"
|
||||||
TAR_CONTENT="tiff-$VERSION"
|
TAR_CONTENT="tiff-$VERSION"
|
||||||
DEPENDENCIES=('zlib' 'zstd' 'libjpeg')
|
DEPENDENCIES=('zlib' 'zstd' 'libjpeg-turbo')
|
||||||
CONFIGURE_OPTIONS=(
|
CONFIGURE_OPTIONS=(
|
||||||
'--disable-static'
|
'--disable-static'
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
NAME='libwebp'
|
NAME='libwebp'
|
||||||
VERSION='1.5.0'
|
VERSION='1.5.0'
|
||||||
DOWNLOAD_URL="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$VERSION.tar.gz#7d6fab70cf844bf6769077bd5d7a74893f8ffd4dfb42861745750c63c2a5c92c"
|
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')
|
CONFIG_SUB=('config.sub')
|
||||||
CONFIGURE_OPTIONS=(
|
CONFIGURE_OPTIONS=(
|
||||||
|
'--disable-static'
|
||||||
"--with-pngincludedir=$BANAN_SYSROOT/usr/include"
|
"--with-pngincludedir=$BANAN_SYSROOT/usr/include"
|
||||||
"--with-pnglibdir=$BANAN_SYSROOT/usr/lib"
|
"--with-pnglibdir=$BANAN_SYSROOT/usr/lib"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
NAME='links'
|
NAME='links'
|
||||||
VERSION='2.30'
|
VERSION='2.30'
|
||||||
DOWNLOAD_URL="http://links.twibright.com/download/links-$VERSION.tar.gz#7f0d54f4f7d1f094c25c9cbd657f98bc998311122563b1d757c9aeb1d3423b9e"
|
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() {
|
post_configure() {
|
||||||
config_defines=(
|
config_defines=(
|
||||||
|
|||||||
Reference in New Issue
Block a user