From 9b5fd077d257434d0d1f6508f7c3f93835a7c743 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 24 Aug 2026 21:05:42 +0300 Subject: [PATCH] ports: Add mypaint port --- ports/libmypaint/build.sh | 12 +++++++ .../0001-add-shared-library-support.patch | 31 +++++++++++++++++++ ports/mypaint-brushes/build.sh | 5 +++ 3 files changed, 48 insertions(+) create mode 100755 ports/libmypaint/build.sh create mode 100644 ports/libmypaint/patches/0001-add-shared-library-support.patch create mode 100755 ports/mypaint-brushes/build.sh diff --git a/ports/libmypaint/build.sh b/ports/libmypaint/build.sh new file mode 100755 index 00000000..732140f5 --- /dev/null +++ b/ports/libmypaint/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash ../install.sh + +NAME='libmypaint' +VERSION='1.6.1' +DOWNLOAD_URL="https://github.com/mypaint/libmypaint/releases/download/v$VERSION/libmypaint-$VERSION.tar.xz#741754f293f6b7668f941506da07cd7725629a793108bb31633fb6c3eae5315f" +DEPENDENCIES=('glib' 'json-c') +CONFIG_SUB=('config.sub') +CONFIGURE_OPTIONS=( + '--disable-introspection' + '--disable-i18n' + '--disable-nls' +) diff --git a/ports/libmypaint/patches/0001-add-shared-library-support.patch b/ports/libmypaint/patches/0001-add-shared-library-support.patch new file mode 100644 index 00000000..9723c558 --- /dev/null +++ b/ports/libmypaint/patches/0001-add-shared-library-support.patch @@ -0,0 +1,31 @@ +diff -ruN libmypaint-1.6.1/configure libmypaint-1.6.1-banan_os/configure +--- libmypaint-1.6.1/configure 2020-05-11 19:38:35.000000000 +0300 ++++ libmypaint-1.6.1-banan_os/configure 2026-03-25 03:05:53.901886496 +0200 +@@ -5608,6 +5608,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 + ;; +@@ -11347,6 +11351,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/mypaint-brushes/build.sh b/ports/mypaint-brushes/build.sh new file mode 100755 index 00000000..92f55177 --- /dev/null +++ b/ports/mypaint-brushes/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash ../install.sh + +NAME='mypaint-brushes' +VERSION='2.0.2' +DOWNLOAD_URL="https://github.com/mypaint/mypaint-brushes/releases/download/v$VERSION/mypaint-brushes-$VERSION.tar.xz#7984a74edef94571d872d0629b224abaa956a36f632f5c5516b33d22e49eb566"