ports: Add libpng port
This commit is contained in:
parent
a0a9d49d81
commit
aa691f236e
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash ../install.sh
|
||||
|
||||
NAME='libpng'
|
||||
VERSION='1.6.48'
|
||||
DOWNLOAD_URL="https://download.sourceforge.net/libpng/libpng-$VERSION.tar.gz#68f3d83a79d81dfcb0a439d62b411aa257bb4973d7c67cd1ff8bdf8d011538cd"
|
||||
DEPENDENCIES=('zlib')
|
||||
|
||||
install() {
|
||||
make install DESTDIR="$BANAN_SYSROOT" || exit 1
|
||||
|
||||
# remove libtool files
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libpng.la
|
||||
rm -f $BANAN_SYSROOT/usr/lib/libpng16.la
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
diff -ruN libpng-1.6.48/config.sub libpng-1.6.48-banan_os/config.sub
|
||||
--- libpng-1.6.48/config.sub 2025-04-30 16:51:46.000000000 +0300
|
||||
+++ libpng-1.6.48-banan_os/config.sub 2025-06-10 14:07:16.060041002 +0300
|
||||
@@ -1768,7 +1768,7 @@
|
||||
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
|
||||
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
|
||||
| nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
|
||||
- | fiwix* | mlibc* | cos* | mbr* | ironclad* )
|
||||
+ | fiwix* | mlibc* | cos* | mbr* | ironclad* | banan_os* )
|
||||
;;
|
||||
# This one is extra strict with allowed versions
|
||||
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
|
|
@ -0,0 +1,31 @@
|
|||
diff -ruN libpng-1.6.48/configure libpng-1.6.48-banan_os/configure
|
||||
--- libpng-1.6.48/configure 2025-04-30 16:51:46.000000000 +0300
|
||||
+++ libpng-1.6.48-banan_os/configure 2025-06-10 15:01:05.944037763 +0300
|
||||
@@ -6523,6 +6523,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
|
||||
;;
|
||||
@@ -12389,6 +12393,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