ports: Add libjpeg port

This commit is contained in:
Bananymous 2025-06-11 11:06:32 +03:00
parent aa691f236e
commit ac745bfa3d
3 changed files with 46 additions and 0 deletions

13
ports/libjpeg/build.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash ../install.sh
NAME='libjpeg'
VERSION='9f'
DOWNLOAD_URL="https://www.ijg.org/files/jpegsrc.v9f.tar.gz#04705c110cb2469caa79fb71fba3d7bf834914706e9641a4589485c1f832565b"
TAR_CONTENT="jpeg-$VERSION"
install() {
make install DESTDIR="$BANAN_SYSROOT" || exit 1
# remove libtool files
rm -f $BANAN_SYSROOT/usr/lib/libjpeg.la
}

View File

@ -0,0 +1,13 @@
diff -ruN jpeg-9f/config.sub jpeg-9f-banan_os/config.sub
--- jpeg-9f/config.sub 2024-01-08 19:38:48.000000000 +0200
+++ jpeg-9f-banan_os/config.sub 2025-06-11 10:57:34.463953673 +0300
@@ -1748,7 +1748,8 @@
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
- | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr*)
+ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
+ | banan_os* )
;;
# This one is extra strict with allowed versions
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)

View File

@ -0,0 +1,20 @@
diff -ruN jpeg-9f/configure jpeg-9f-banan_os/configure
--- jpeg-9f/configure 2024-01-08 19:38:44.000000000 +0200
+++ jpeg-9f-banan_os/configure 2025-06-11 11:03:15.719030091 +0300
@@ -12944,6 +12944,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"