mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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>
This commit is contained in:
parent
0341541f14
commit
ee02b8f52a
3 changed files with 26 additions and 13 deletions
12
libraries/gstreamermm/gstreamermm-volatile.patch
Normal file
12
libraries/gstreamermm/gstreamermm-volatile.patch
Normal file
|
@ -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;
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue