wok rev 25781

Add ffado and depends/bdepends
author Stanislas Leduc <shann@slitaz.org>
date Mon Sep 23 18:13:10 2024 +0200 (2 months ago)
parents 24024e28a27b
children f25a84c6254a
files dbus-c++-dev/receipt dbus-c++/receipt dbus-c++/stuff/dbus-c++-0.9.0-copy_data_from_received_message.patch dbus-c++/stuff/dbus-c++-0.9.0-disable-threading.patch dbus-c++/stuff/dbus-c++-0.9.0-fix-writechar.patch dbus-c++/stuff/dbus-c++-0.9.0-gcc47.patch dbus-c++/stuff/dbus-c++-0.9.0-template-operators.patch ffado-tools/receipt libconfig/receipt libdbus-c++/receipt libffado/receipt libxml3++-dev/receipt libxml3++/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dbus-c++-dev/receipt	Mon Sep 23 18:13:10 2024 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dbus-c++-dev"
     1.7 +VERSION="0.9.0"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="A C++ API for D-BUS - development files."
    1.10 +MAINTAINER="maintainer@slitaz.org"
    1.11 +LICENSE="LGPL2"
    1.12 +WEB_SITE="https://sourceforge.net/projects/dbus-cplusplus/"
    1.13 +WANTED="dbus-c++"
    1.14 +
    1.15 +DEPENDS="dbus-c++"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	get_dev_files
    1.21 +
    1.22 +	# Ensure remove .la files
    1.23 +	find $fs -name "*.la" -delete
    1.24 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/dbus-c++/receipt	Mon Sep 23 18:13:10 2024 +0200
     2.3 @@ -0,0 +1,53 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="dbus-c++"
     2.7 +VERSION="0.9.0"
     2.8 +CATEGORY="x-window"
     2.9 +SHORT_DESC="A C++ API for D-BUS."
    2.10 +MAINTAINER="maintainer@slitaz.org"
    2.11 +LICENSE="LGPL2"
    2.12 +WEB_SITE="https://sourceforge.net/projects/dbus-cplusplus/"
    2.13 +
    2.14 +TARBALL="lib$PACKAGE-$VERSION.tar.gz"
    2.15 +WGET_URL="$SF_MIRROR/dbus-cplusplus/$TARBALL"
    2.16 +
    2.17 +DEPENDS="expat dbus libdbus-c++"
    2.18 +BUILD_DEPENDS="automake libtool expat-dev dbus-dev"
    2.19 +
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	patch -Np0 -i $stuff/dbus-c++-0.9.0-gcc47.patch
    2.24 +	# https://sourceforge.net/p/dbus-cplusplus/patches/18/
    2.25 +	patch -Np1 -i $stuff/dbus-c++-0.9.0-disable-threading.patch
    2.26 +	# https://sourceforge.net/p/dbus-cplusplus/patches/19/
    2.27 +	patch -Np1 -i $stuff/dbus-c++-0.9.0-fix-writechar.patch
    2.28 +	# https://sourceforge.net/p/dbus-cplusplus/patches/22/
    2.29 +	patch -Np1 -i $stuff/dbus-c++-0.9.0-template-operators.patch
    2.30 +	# https://sourceforge.net/p/dbus-cplusplus/patches/27/
    2.31 +	patch -Np1 -i $stuff/dbus-c++-0.9.0-copy_data_from_received_message.patch
    2.32 +
    2.33 +	autoreconf -vfi
    2.34 +
    2.35 +	./configure				\
    2.36 +		--disable-ecore			\
    2.37 +		--disable-static		\
    2.38 +		--disable-tests			\
    2.39 +		--disable-examples		\
    2.40 +		--enable-glib			\
    2.41 +		--prefix=/usr			\
    2.42 +		$CONFIGURE_ARGS &&
    2.43 +
    2.44 +	# Prevent overlinking
    2.45 +	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
    2.46 +
    2.47 +	make &&
    2.48 +	make install
    2.49 +}
    2.50 +
    2.51 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.52 +genpkg_rules()
    2.53 +{
    2.54 +	mkdir -p $fs/usr
    2.55 +	cp -a $install/usr/bin	$fs/usr
    2.56 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/dbus-c++/stuff/dbus-c++-0.9.0-copy_data_from_received_message.patch	Mon Sep 23 18:13:10 2024 +0200
     3.3 @@ -0,0 +1,27 @@
     3.4 +From 2a770f61c060d19f7fe118c2a066306fa3e9ec3d Mon Sep 17 00:00:00 2001
     3.5 +From: =?UTF-8?q?Th=C3=A9o=20Goudout?= <theo.goudout@mydatakeeper.fr>
     3.6 +Date: Thu, 1 Aug 2019 08:24:29 +0000
     3.7 +Subject: [PATCH] Fix assert fail when copying data from received message
     3.8 +
     3.9 +---
    3.10 + src/message.cpp | 4 +++-
    3.11 + 1 file changed, 3 insertions(+), 1 deletion(-)
    3.12 +
    3.13 +diff --git a/src/message.cpp b/src/message.cpp
    3.14 +index 3f0cac4..1c4caab 100644
    3.15 +--- a/src/message.cpp
    3.16 ++++ b/src/message.cpp
    3.17 +@@ -350,7 +350,9 @@ void MessageIter::copy_data(MessageIter &to)
    3.18 +       (
    3.19 +         (DBusMessageIter *) & (to._iter),
    3.20 +         from.type(),
    3.21 +-        from.type() == DBUS_TYPE_VARIANT ? NULL : sig,
    3.22 ++        (from.type() == DBUS_TYPE_STRUCT || from.type() == DBUS_TYPE_DICT_ENTRY)
    3.23 ++            ? NULL
    3.24 ++            : sig,
    3.25 +         (DBusMessageIter *) & (to_container._iter)
    3.26 +       );
    3.27 + 
    3.28 +-- 
    3.29 +2.22.0
    3.30 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/dbus-c++/stuff/dbus-c++-0.9.0-disable-threading.patch	Mon Sep 23 18:13:10 2024 +0200
     4.3 @@ -0,0 +1,45 @@
     4.4 +--- libdbus-c++-0.9.0/include/dbus-c++/dispatcher.h.threading	2017-02-15 13:40:53.796004263 +0000
     4.5 ++++ libdbus-c++-0.9.0/include/dbus-c++/dispatcher.h	2017-02-15 13:40:46.907000493 +0000
     4.6 +@@ -188,6 +188,7 @@
     4.7 + /* classes for multithreading support
     4.8 + */
     4.9 + 
    4.10 ++#if 0
    4.11 + class DXXAPI Mutex
    4.12 + {
    4.13 + public:
    4.14 +@@ -243,9 +244,11 @@
    4.15 + typedef bool (*CondVarWaitTimeoutFn)(CondVar *cv, Mutex *mx, int timeout);
    4.16 + typedef void (*CondVarWakeOneFn)(CondVar *cv);
    4.17 + typedef void (*CondVarWakeAllFn)(CondVar *cv);
    4.18 ++#endif
    4.19 + 
    4.20 + void DXXAPI _init_threading();
    4.21 + 
    4.22 ++#if 0
    4.23 + void DXXAPI _init_threading(
    4.24 +   MutexNewFn, MutexFreeFn, MutexLockFn, MutexUnlockFn,
    4.25 +   CondVarNewFn, CondVarFreeFn, CondVarWaitFn, CondVarWaitTimeoutFn, CondVarWakeOneFn, CondVarWakeAllFn
    4.26 +@@ -312,6 +315,7 @@
    4.27 +     cv->wake_all();
    4.28 +   }
    4.29 + };
    4.30 ++#endif
    4.31 + 
    4.32 + } /* namespace DBus */
    4.33 + 
    4.34 +--- libdbus-c++-0.9.0/src/dispatcher.cpp.threading	2017-02-15 13:48:22.627249868 +0000
    4.35 ++++ libdbus-c++-0.9.0/src/dispatcher.cpp	2017-02-15 13:48:29.164253445 +0000
    4.36 +@@ -253,6 +253,7 @@
    4.37 + #endif//DBUS_HAS_THREADS_INIT_DEFAULT
    4.38 + }
    4.39 + 
    4.40 ++#if 0
    4.41 + void DBus::_init_threading(
    4.42 +   MutexNewFn m1,
    4.43 +   MutexFreeFn m2,
    4.44 +@@ -318,3 +319,4 @@
    4.45 + #endif//DBUS_HAS_RECURSIVE_MUTEX
    4.46 +   dbus_threads_init(&functions);
    4.47 + }
    4.48 ++#endif
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/dbus-c++/stuff/dbus-c++-0.9.0-fix-writechar.patch	Mon Sep 23 18:13:10 2024 +0200
     5.3 @@ -0,0 +1,9 @@
     5.4 +--- libdbus-c++-0.9.0/src/pipe.cpp.writechar	2017-02-16 11:07:13.591950169 +0000
     5.5 ++++ libdbus-c++-0.9.0/src/pipe.cpp	2017-02-16 11:04:17.158796092 +0000
     5.6 +@@ -83,5 +83,5 @@
     5.7 + void Pipe::signal()
     5.8 + {
     5.9 +   // TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
    5.10 +-  ::write(_fd_write, '\0', 1);
    5.11 ++  ::write(_fd_write, "", 1);
    5.12 + }
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/dbus-c++/stuff/dbus-c++-0.9.0-gcc47.patch	Mon Sep 23 18:13:10 2024 +0200
     6.3 @@ -0,0 +1,10 @@
     6.4 +--- src/eventloop-integration.cpp.orig	2012-05-09 11:22:09.683290763 +0200
     6.5 ++++ src/eventloop-integration.cpp	2012-05-09 11:22:44.313288912 +0200
     6.6 +@@ -38,6 +38,7 @@
     6.7 + #include <cassert>
     6.8 + #include <sys/poll.h>
     6.9 + #include <fcntl.h>
    6.10 ++#include <unistd.h>
    6.11 + 
    6.12 + using namespace DBus;
    6.13 + using namespace std;
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/dbus-c++/stuff/dbus-c++-0.9.0-template-operators.patch	Mon Sep 23 18:13:10 2024 +0200
     7.3 @@ -0,0 +1,88 @@
     7.4 +commit a0b9ef3b469ca23c6a3229d8abb967cbbddcee38
     7.5 +Author: Peter Williams <peter@newton.cx>
     7.6 +Date:   Sat Dec 19 21:12:46 2015 -0500
     7.7 +
     7.8 +    Fix some weird template/operator issues on OS X.
     7.9 +    
    7.10 +    I frankly don't understand at all what's going on here. These fixes
    7.11 +    derive from:
    7.12 +    
    7.13 +    https://chromium.googlesource.com/chromiumos/third_party/dbus-cplusplus/+/c3f69f6be02e31521474dce7eadf6ba4f4a7ce94
    7.14 +    https://chromium.googlesource.com/chromiumos/third_party/dbus-cplusplus/+/7104857773f790a549d399715482fa23d9b736cd
    7.15 +    
    7.16 +    Except I've dropped some changes that break the OS X build for me. Frankly, if
    7.17 +    it compiles, that's good enough for me.
    7.18 +
    7.19 +diff --git a/include/dbus-c++/types.h b/include/dbus-c++/types.h
    7.20 +index 044e72b..7b3108f 100644
    7.21 +--- a/include/dbus-c++/types.h
    7.22 ++++ b/include/dbus-c++/types.h
    7.23 +@@ -89,13 +89,7 @@ public:
    7.24 +   }
    7.25 + 
    7.26 +   template <typename T>
    7.27 +-  operator T() const
    7.28 +-  {
    7.29 +-    T cast;
    7.30 +-    MessageIter ri = _msg.reader();
    7.31 +-    ri >> cast;
    7.32 +-    return cast;
    7.33 +-  }
    7.34 ++  operator T() const;
    7.35 + 
    7.36 + private:
    7.37 + 
    7.38 +@@ -316,7 +310,7 @@ struct type< Struct<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14,
    7.39 +   }
    7.40 + };
    7.41 + 
    7.42 +-} /* namespace DBus */
    7.43 ++extern DXXAPI DBus::MessageIter &operator << (DBus::MessageIter &iter, const DBus::Variant &val);
    7.44 + 
    7.45 + inline DBus::MessageIter &operator << (DBus::MessageIter &iter, const DBus::Invalid &)
    7.46 + {
    7.47 +@@ -551,6 +545,8 @@ inline DBus::MessageIter &operator >> (DBus::MessageIter &iter, DBus::Signature
    7.48 +   return ++iter;
    7.49 + }
    7.50 + 
    7.51 ++extern DXXAPI DBus::MessageIter &operator >> (DBus::MessageIter &iter, DBus::Variant &val);
    7.52 ++
    7.53 + template<typename E>
    7.54 + inline DBus::MessageIter &operator >> (DBus::MessageIter &iter, std::vector<E>& val)
    7.55 + {
    7.56 +@@ -644,7 +640,16 @@ inline DBus::MessageIter &operator >> (DBus::MessageIter &iter, DBus::Struct<T1,
    7.57 +   return ++iter;
    7.58 + }
    7.59 + 
    7.60 +-extern DXXAPI DBus::MessageIter &operator >> (DBus::MessageIter &iter, DBus::Variant &val);
    7.61 ++template <typename T>
    7.62 ++inline DBus::Variant::operator T() const
    7.63 ++{
    7.64 ++  T cast;
    7.65 ++  DBus::MessageIter ri = _msg.reader();
    7.66 ++  ri >> cast;
    7.67 ++  return cast;
    7.68 ++}
    7.69 ++
    7.70 ++} /* namespace DBus */
    7.71 + 
    7.72 + #endif//__DBUSXX_TYPES_H
    7.73 + 
    7.74 +diff --git a/src/types.cpp b/src/types.cpp
    7.75 +index d414a3e..70f9ac0 100644
    7.76 +--- a/src/types.cpp
    7.77 ++++ b/src/types.cpp
    7.78 +@@ -34,7 +34,7 @@
    7.79 + #include "message_p.h"
    7.80 + #include "internalerror.h"
    7.81 + 
    7.82 +-using namespace DBus;
    7.83 ++namespace DBus {
    7.84 + 
    7.85 + Variant::Variant()
    7.86 +   : _msg(CallMessage()) // dummy message used as temporary storage for variant data
    7.87 +@@ -104,3 +104,4 @@ MessageIter &operator >> (MessageIter &iter, Variant &val)
    7.88 +   return ++iter;
    7.89 + }
    7.90 + 
    7.91 ++} /* namespace DBus */
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/ffado-tools/receipt	Mon Sep 23 18:13:10 2024 +0200
     8.3 @@ -0,0 +1,20 @@
     8.4 +# SliTaz package receipt.
     8.5 +
     8.6 +PACKAGE="ffado-tools"
     8.7 +VERSION="2.4.8"
     8.8 +CATEGORY="multimedia"
     8.9 +SHORT_DESC="FFADO debugging and firmware tools."
    8.10 +MAINTAINER="maintainer@slitaz.org"
    8.11 +LICENSE="GPL2"
    8.12 +WEB_SITE="https://www.ffado.org/"
    8.13 +
    8.14 +WANTED="libffado"
    8.15 +DEPENDS="libffado libdbus-c++"
    8.16 +
    8.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    8.18 +genpkg_rules()
    8.19 +{
    8.20 +	mkdir -p $fs/usr/bin $fs/usr/lib
    8.21 +	cp -a $install/usr/bin/ffado* $fs/usr/bin
    8.22 +	cp -a $install/usr/lib/libffado $fs/usr/lib
    8.23 +}
     9.1 --- a/libconfig/receipt	Mon Sep 23 14:15:08 2024 +0000
     9.2 +++ b/libconfig/receipt	Mon Sep 23 18:13:10 2024 +0200
     9.3 @@ -24,12 +24,13 @@
     9.4  # Rules to configure and make the package.
     9.5  compile_rules()
     9.6  {
     9.7 +        # --disable-cxx, libconfig++ need for libffado
     9.8 +
     9.9  	autoreconf &&
    9.10  	./configure				\
    9.11  		--prefix=/usr			\
    9.12  		--infodir=/usr/share/info	\
    9.13  		--mandir=/usr/share/man		\
    9.14 -		--disable-cxx			\
    9.15  		--disable-doc			\
    9.16  		$CONFIGURE_ARGS &&
    9.17  	make &&
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/libdbus-c++/receipt	Mon Sep 23 18:13:10 2024 +0200
    10.3 @@ -0,0 +1,20 @@
    10.4 +# SliTaz package receipt.
    10.5 +
    10.6 +PACKAGE="libdbus-c++"
    10.7 +VERSION="0.9.0"
    10.8 +CATEGORY="x-window"
    10.9 +SHORT_DESC="A C++ API for D-BUS."
   10.10 +MAINTAINER="maintainer@slitaz.org"
   10.11 +LICENSE="LGPL2"
   10.12 +WEB_SITE="https://sourceforge.net/projects/dbus-cplusplus/"
   10.13 +WANTED="dbus-c++"
   10.14 +DEPENDS="dbus glib"
   10.15 +
   10.16 +HOST_ARCH="i486 x86_64"
   10.17 +
   10.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.19 +genpkg_rules()
   10.20 +{
   10.21 +	mkdir -p $fs/usr/lib
   10.22 +	cp -a $install/usr/lib/*.so*	$fs/usr/lib
   10.23 +}
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/libffado/receipt	Mon Sep 23 18:13:10 2024 +0200
    11.3 @@ -0,0 +1,48 @@
    11.4 +# SliTaz package receipt.
    11.5 +
    11.6 +PACKAGE="libffado"
    11.7 +VERSION="2.4.8"
    11.8 +CATEGORY="multimedia"
    11.9 +SHORT_DESC="Driver for FireWire audio devices."
   11.10 +MAINTAINER="maintainer@slitaz.org"
   11.11 +LICENSE="GPL2"
   11.12 +WEB_SITE="https://www.ffado.org/"
   11.13 +TARBALL="$PACKAGE-$VERSION.tgz"
   11.14 +WGET_URL="$WEB_SITE/files/$TARBALL"
   11.15 +
   11.16 +DEPENDS="libraw1394 libconfig libxml3++ libiec61883"
   11.17 +BUILD_DEPENDS="scons dbus-python-dev dbus-dev gcc83 \
   11.18 +dbus-c++-dev libraw1394-dev libconfig-dev alsa-lib-dev \
   11.19 +libiec61883-dev libxml3++-dev jack-audio-connection-kit-dev"
   11.20 +
   11.21 +# Rules to configure and make the package.
   11.22 +compile_rules()
   11.23 +{
   11.24 +    case "$ARCH" in
   11.25 +        i?86)
   11.26 +            arch=i386 ;;
   11.27 +        x86_64)
   11.28 +            arch=x86_64 ;;
   11.29 +    esac
   11.30 +
   11.31 +    export CC=gcc-83 CXX=g++-83
   11.32 +    # Disable CXX11_ABI, ensure work with glib that build without gcc83
   11.33 +    # see https://github.com/Beep6581/RawTherapee/issues/3024
   11.34 +    export CXXFLAGS="$CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0"
   11.35 +
   11.36 +    scons                      		\
   11.37 +	CUSTOM_ENV=True			\
   11.38 +        DIST_TARGET=$arch		\
   11.39 +	DETECT_USERSPACE_ENV=False	\
   11.40 +        PREFIX=/usr             	\
   11.41 +        DEBUG=no
   11.42 +
   11.43 +    scons DESTDIR=$install install
   11.44 +}
   11.45 +
   11.46 +# Rules to gen a SliTaz package suitable for Tazpkg.
   11.47 +genpkg_rules()
   11.48 +{
   11.49 +	mkdir -p $fs/usr/lib
   11.50 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
   11.51 +}
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/libxml3++-dev/receipt	Mon Sep 23 18:13:10 2024 +0200
    12.3 @@ -0,0 +1,25 @@
    12.4 +# SliTaz package receipt.
    12.5 +
    12.6 +PACKAGE="libxml3++-dev"
    12.7 +VERSION="3.0.1"
    12.8 +CATEGORY="development"
    12.9 +SHORT_DESC="libxml++ C++ wrapper devel files."
   12.10 +MAINTAINER="pankso@slitaz.org"
   12.11 +LICENSE="LGPL2.1"
   12.12 +WANTED="libxml3++"
   12.13 +WEB_SITE="https://sourceforge.net/projects/libxmlplusplus/"
   12.14 +
   12.15 +DEPENDS="glib-dev glibmm-dev libsigc++-dev libxml2-dev libxml++ zlib-dev \
   12.16 +gcc-lib-base pkg-config"
   12.17 +
   12.18 +HOST_ARCH="i486 x86_64"
   12.19 +
   12.20 +# Rules to gen a SliTaz package suitable for Tazpkg.
   12.21 +genpkg_rules()
   12.22 +{
   12.23 +	mkdir -p $fs/usr/lib $fs/usr/share
   12.24 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   12.25 +	cp -a $install/usr/lib/libxml++-3.0 $fs/usr/lib
   12.26 +	cp -a $install/usr/include $fs/usr
   12.27 +}
   12.28 +
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/libxml3++/receipt	Mon Sep 23 18:13:10 2024 +0200
    13.3 @@ -0,0 +1,54 @@
    13.4 +# SliTaz package receipt.
    13.5 +
    13.6 +PACKAGE="libxml3++"
    13.7 +SOURCE="libxml++"
    13.8 +VERSION="3.0.1"
    13.9 +CATEGORY="system-tools"
   13.10 +SHORT_DESC="C++ wrapper for the libxml XML parser library."
   13.11 +MAINTAINER="pankso@slitaz.org"
   13.12 +LICENSE="LGPL2.1"
   13.13 +TARBALL="$SOURCE-$VERSION.tar.xz"
   13.14 +WEB_SITE="https://sourceforge.net/projects/libxmlplusplus/"
   13.15 +WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION%.*}/$TARBALL"
   13.16 +
   13.17 +DEPENDS="glibmm libsigc++ libxml2 zlib gcc83-lib-base"
   13.18 +BUILD_DEPENDS="gcc83 glibmm-dev libsigc++-dev libxml2-dev \
   13.19 +zlib-dev mm-common pkg-config"
   13.20 +
   13.21 +HOST_ARCH="i486 x86_64"
   13.22 +
   13.23 +# What is the latest version available today?
   13.24 +current_version()
   13.25 +{
   13.26 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
   13.27 +	sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
   13.28 +}
   13.29 +
   13.30 +# Rules to configure and make the package.
   13.31 +compile_rules()
   13.32 +{
   13.33 +	cd $src
   13.34 +
   13.35 +	# Allow build with gcc > 6.
   13.36 +	# See https://svnweb.freebsd.org/ports?view=revision&revision=431411
   13.37 +	#patch -p1 < $stuff/build_with_gcc6.patch
   13.38 +
   13.39 +	# Disable CXX11_ABI, ensure work with glib that build without gcc83
   13.40 +	# see https://github.com/Beep6581/RawTherapee/issues/3024
   13.41 +	export CXXFLAGS="$CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0"
   13.42 +
   13.43 +	./configure --prefix=/usr \
   13.44 +		CC=gcc-83 \
   13.45 +		CXX=g++-83 \
   13.46 +		--disable-documentation \
   13.47 +		$CONFIGURE_ARGS &&
   13.48 +	make &&
   13.49 +	make DESTDIR=$DESTDIR install
   13.50 +}
   13.51 +
   13.52 +# Rules to gen a SliTaz package suitable for Tazpkg.
   13.53 +genpkg_rules()
   13.54 +{
   13.55 +	mkdir -p $fs/usr/lib
   13.56 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
   13.57 +}