ports: Add libtiff port
This commit is contained in:
parent
ac745bfa3d
commit
f4f424bf04
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash ../install.sh
|
||||||
|
|
||||||
|
NAME='libtiff'
|
||||||
|
VERSION='4.7.0'
|
||||||
|
DOWNLOAD_URL="https://download.osgeo.org/libtiff/tiff-$VERSION.tar.gz#67160e3457365ab96c5b3286a0903aa6e78bdc44c4bc737d2e486bcecb6ba976"
|
||||||
|
TAR_CONTENT="tiff-$VERSION"
|
||||||
|
DEPENDENCIES=('zlib' 'zstd' 'libjpeg')
|
||||||
|
|
||||||
|
install() {
|
||||||
|
make install "DESTDIR=$BANAN_SYSROOT" || exit 1
|
||||||
|
|
||||||
|
# remove libtool files
|
||||||
|
rm -f $BANAN_SYSROOT/usr/lib/libtiff.la
|
||||||
|
rm -f $BANAN_SYSROOT/usr/lib/libtiffxx.la
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
diff -ruN tiff-4.7.0/config/config.sub tiff-4.7.0-banan_os/config/config.sub
|
||||||
|
--- tiff-4.7.0/config/config.sub 2024-09-11 10:38:00.000000000 +0300
|
||||||
|
+++ tiff-4.7.0-banan_os/config/config.sub 2025-06-11 12:55:18.797614388 +0300
|
||||||
|
@@ -1976,6 +1976,7 @@
|
||||||
|
| atheos* \
|
||||||
|
| auroraux* \
|
||||||
|
| aux* \
|
||||||
|
+ | banan_os* \
|
||||||
|
| beos* \
|
||||||
|
| bitrig* \
|
||||||
|
| bme* \
|
|
@ -0,0 +1,72 @@
|
||||||
|
diff -ruN tiff-4.7.0/configure tiff-4.7.0-banan_os/configure
|
||||||
|
--- tiff-4.7.0/configure 2024-09-11 10:42:32.000000000 +0300
|
||||||
|
+++ tiff-4.7.0-banan_os/configure 2025-06-11 14:56:13.977026933 +0300
|
||||||
|
@@ -6312,6 +6312,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
|
||||||
|
;;
|
||||||
|
@@ -10492,6 +10496,11 @@
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
+ banan_os*)
|
||||||
|
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
||||||
|
+ link_all_deplibs=yes
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
beos*)
|
||||||
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
||||||
|
allow_undefined_flag=unsupported
|
||||||
|
@@ -12059,6 +12068,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"
|
||||||
|
@@ -14558,6 +14577,11 @@
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
+ banan_os*)
|
||||||
|
+ # FIXME: insert proper C++ library support
|
||||||
|
+ ld_shlibs_CXX=no
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
beos*)
|
||||||
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
||||||
|
allow_undefined_flag_CXX=unsupported
|
||||||
|
@@ -16456,6 +16480,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"
|
Loading…
Reference in New Issue