diff --git a/extra/mate-media/mate-media-build.patch b/extra/mate-media/mate-media-build.patch new file mode 100644 index 0000000..0dd7050 --- /dev/null +++ b/extra/mate-media/mate-media-build.patch @@ -0,0 +1,45 @@ +--- configure.ac.orig 2013-11-03 20:13:23.140450797 +0700 ++++ configure.ac 2013-11-03 20:14:34.055710980 +0700 +@@ -45,9 +45,6 @@ + AC_PROG_GCC_TRADITIONAL + AC_FUNC_MMAP + +-# CFLAGS +-MATE_COMPILE_WARNINGS +- + # AS_NANO(GM_RELEASE="yes", GM_RELEASE="no") + AS_COMPILER_FLAG(-Wall, GM_ERROR_CFLAGS="-Wall") + +@@ -260,6 +257,21 @@ + MATE_COMPILE_WARNINGS([maximum]) + MATE_CXX_WARNINGS + ++AC_ARG_ENABLE(deprecated, ++ [AS_HELP_STRING([--enable-deprecated], ++ [warn about deprecated usages [default=no]])],, ++ [enable_deprecated=no]) ++ ++if test "x$enable_deprecated" = "xyes"; then ++ DISABLE_DEPRECATED="\ ++ -DMATE_DISABLE_DEPRECATED \ ++ -DGDK_PIXBUF_DISABLE_DEPRECATED \ ++ -DGTK_DISABLE_DEPRECATED \ ++ -DGDK_DISABLE_DEPRECATED" ++ AC_SUBST(DISABLE_DEPRECATED) ++fi ++ ++ + # Turn on the additional warnings last, so warnings don't affect other tests. + AC_ARG_ENABLE(more-warnings, + [AC_HELP_STRING([--enable-more-warnings], ++++ Makefile.am 2013-11-03 20:15:53.073902725 +0700 +@@ -21,7 +21,8 @@ + DISTCHECK_CONFIGURE_FLAGS = \ + --disable-scrollkeeper \ + --enable-more-warnings \ +- --enable-compile-warnings=maximum ++ --enable-compile-warnings=maximum \ ++ --enable-deprecated + + DIST_SUBDIRS = \ + po \ diff --git a/extra/mate-media/mate-media.SlackBuild b/extra/mate-media/mate-media.SlackBuild index 8ea8291..e5ff5d9 100644 --- a/extra/mate-media/mate-media.SlackBuild +++ b/extra/mate-media/mate-media.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=mate-media VERSION=${VERSION:-1.6.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_msb} if [ -z "$ARCH" ]; then @@ -74,6 +74,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Upstream patch to make mate-media buildable for Slackware 14.1 +patch -p0 < $CWD/mate-media-build.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./autogen.sh \ @@ -85,7 +88,7 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-pulseaudio \ --disable-scrollkeeper \ - --disable-gstmix \ + --enable-gstmix \ --enable-gst-mixer-applet \ --build=$ARCH-slackware-linux