diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-08-16 15:17:45 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-19 18:33:47 +0700 |
commit | ee02b8f52a5c21e1847b47f2342ee3dceba27385 (patch) | |
tree | dcc927d2e263279f7201245ae6bf0566d3c00e98 /libraries/gstreamermm | |
parent | 0341541f14c3ce90bb1bcf8abc1e9d8ee65cd4d6 (diff) | |
download | slackbuilds-ee02b8f52a5c21e1847b47f2342ee3dceba27385.tar.gz |
libraries/gstreamermm: Updated for version 1.10.0.
Patched for gcc >= 11.x
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/gstreamermm')
-rw-r--r-- | libraries/gstreamermm/gstreamermm-volatile.patch | 12 | ||||
-rw-r--r-- | libraries/gstreamermm/gstreamermm.SlackBuild | 21 | ||||
-rw-r--r-- | libraries/gstreamermm/gstreamermm.info | 6 |
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="" |