summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2021-08-16 15:17:45 +0200
committer Matteo Bernardini2021-08-16 17:51:15 +0200
commit7f7030a72f2d94956ef228a74b9f5593b1e55e5b (patch)
treea403c711503ce5fc14925934bc521331f54cb4d9
parent7f0150c9a1a8f0e16b524f2730987f486c7e5ed5 (diff)
downloadslackbuilds-7f7030a72f2d94956ef228a74b9f5593b1e55e5b.tar.gz
libraries/gstreamermm: Updated for version 1.10.0.
Patched for gcc >= 11.x Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--libraries/gstreamermm/gstreamermm-volatile.patch12
-rw-r--r--libraries/gstreamermm/gstreamermm.SlackBuild21
-rw-r--r--libraries/gstreamermm/gstreamermm.info6
3 files changed, 26 insertions, 13 deletions
diff --git a/libraries/gstreamermm/gstreamermm-volatile.patch b/libraries/gstreamermm/gstreamermm-volatile.patch
new file mode 100644
index 0000000000..c9da689fce
--- /dev/null
+++ b/libraries/gstreamermm/gstreamermm-volatile.patch
@@ -0,0 +1,12 @@
+diff -up gstreamermm-1.10.0/gstreamer/gstreamermm/register.h.vol gstreamermm-1.10.0/gstreamer/gstreamermm/register.h
+--- gstreamermm-1.10.0/gstreamer/gstreamermm/register.h.vol 2017-10-20 11:26:46.000000000 +0200
++++ gstreamermm-1.10.0/gstreamer/gstreamermm/register.h 2021-07-25 14:22:10.275157229 +0200
+@@ -110,7 +110,7 @@ register_mm_type(const gchar * type_name
+ /* The typedef for GType may be gulong or gsize, depending on the
+ * system and whether the compiler is c++ or not. The g_once_init_*
+ * functions always take a gsize * though ... */
+- static volatile gsize gonce_data = 0;
++ static gsize gonce_data = 0;
+ if (g_once_init_enter (&gonce_data)) {
+ GTypeInfo info;
+
diff --git a/libraries/gstreamermm/gstreamermm.SlackBuild b/libraries/gstreamermm/gstreamermm.SlackBuild
index f6122dac2a..fa907074e7 100644
--- a/libraries/gstreamermm/gstreamermm.SlackBuild
+++ b/libraries/gstreamermm/gstreamermm.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for gstreamermm
# Copyright (C) 2010 Juan Valencia <jvalenciae@gmail.com>
+# Copyright 2012-2021 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,14 +26,14 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gstreamermm
-VERSION=${VERSION:-1.4.3}
+VERSION=${VERSION:-1.10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -50,8 +51,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -77,28 +78,28 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Needed for gcc >= 7.x - Thanks to opensuse
-patch -p1 < $CWD/fix_warnings.patch
+patch -p1 < $CWD/gstreamermm-volatile.patch
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS -std=c++11" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
+ --enable-unittests=no \
--build=$ARCH-slackware-linux
make libdocdir=/usr/doc/$PRGNAM-$VERSION
make libdocdir=/usr/doc/$PRGNAM-$VERSION install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README \
+cp -a AUTHORS COPYING NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/gstreamermm/gstreamermm.info b/libraries/gstreamermm/gstreamermm.info
index 396b84e976..b5f77e4613 100644
--- a/libraries/gstreamermm/gstreamermm.info
+++ b/libraries/gstreamermm/gstreamermm.info
@@ -1,8 +1,8 @@
PRGNAM="gstreamermm"
-VERSION="1.4.3"
+VERSION="1.10.0"
HOMEPAGE="https://www.gnome.org/"
-DOWNLOAD="https://ftp.gnome.org/pub/GNOME/sources/gstreamermm/1.4/gstreamermm-1.4.3.tar.xz"
-MD5SUM="8f6c4b85083308def933eab1433a1865"
+DOWNLOAD="https://ftp.gnome.org/pub/GNOME/sources/gstreamermm/1.10/gstreamermm-1.10.0.tar.xz"
+MD5SUM="57e9300f247ad27a4ef4df4fecc137c9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""