Browse Source

l/libffado: Removed.

slackware-14.2
Damien Goutte-Gattat 6 years ago
parent
commit
fc491febe3
  1. 65
      l/libffado/libffado-2.1.0-fix-includes.patch
  2. 1
      l/libffado/libffado-2.2.1.tgz.sha1
  3. 133
      l/libffado/libffado.SlackBuild
  4. 12
      l/libffado/slack-desc

65
l/libffado/libffado-2.1.0-fix-includes.patch

@ -1,65 +0,0 @@
diff -Naur libffado-2.1.0.orig/src/bebob/bebob_dl_mgr.cpp libffado-2.1.0/src/bebob/bebob_dl_mgr.cpp
--- libffado-2.1.0.orig/src/bebob/bebob_dl_mgr.cpp 2012-07-06 15:31:48.000000000 +0200
+++ libffado-2.1.0/src/bebob/bebob_dl_mgr.cpp 2013-08-18 13:03:14.470057466 +0200
@@ -36,6 +36,7 @@
#include <cstdio>
#include <cstring>
#include <unistd.h>
+#include <memory>
namespace BeBoB {
enum {
diff -Naur libffado-2.1.0.orig/src/ffadodevice.h libffado-2.1.0/src/ffadodevice.h
--- libffado-2.1.0.orig/src/ffadodevice.h 2012-03-08 14:27:34.000000000 +0100
+++ libffado-2.1.0/src/ffadodevice.h 2013-08-18 13:02:52.717280476 +0200
@@ -34,6 +34,7 @@
#include <vector>
#include <string>
+#include <memory>
class DeviceManager;
class ConfigRom;
diff -Naur libffado-2.1.0.orig/src/libutil/serialize.h libffado-2.1.0/src/libutil/serialize.h
--- libffado-2.1.0.orig/src/libutil/serialize.h 2008-06-08 16:34:59.000000000 +0200
+++ libffado-2.1.0/src/libutil/serialize.h 2013-08-18 13:09:12.560470156 +0200
@@ -26,10 +26,6 @@
-#if SERIALIZE_USE_EXPAT
- #include "serialize_expat.h"
-#else
- #include "serialize_libxml.h"
-#endif
+#include "serialize_expat.h"
#endif
diff -Naur libffado-2.1.0.orig/src/libutil/serialize_expat.cpp libffado-2.1.0/src/libutil/serialize_expat.cpp
--- libffado-2.1.0.orig/src/libutil/serialize_expat.cpp 2009-12-19 17:12:53.000000000 +0100
+++ libffado-2.1.0/src/libutil/serialize_expat.cpp 2013-08-18 13:04:30.626298133 +0200
@@ -21,10 +21,12 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
- // FOR CACHE_VERSION
+#include <version.h> // FOR CACHE_VERSION
#include "serialize.h"
+#include <cstdlib>
+
using namespace std;
diff -Naur libffado-2.1.0.orig/tests/scan-devreg.cpp libffado-2.1.0/tests/scan-devreg.cpp
--- libffado-2.1.0.orig/tests/scan-devreg.cpp 2009-07-23 13:12:27.000000000 +0200
+++ libffado-2.1.0/tests/scan-devreg.cpp 2013-08-18 13:04:47.254132147 +0200
@@ -36,6 +36,7 @@
#include <cstdlib>
#include <iostream>
#include <cstring>
+#include <memory>
using namespace std;

1
l/libffado/libffado-2.2.1.tgz.sha1

@ -1 +0,0 @@
189c2205df215fa497566a2338a52daa2e7034fa libffado-2.2.1.tgz

133
l/libffado/libffado.SlackBuild

@ -1,133 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2010,2011,2013,2014 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest libffado sourcecode is available at: <http://www.ffado.org/>.
#
# Depends: d/scons, l/libiec61883, l/libconfig
# Source package infos
NAMESRC=${NAMESRC:-libffado}
VERSION=${VERSION:-2.2.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tgz}
WGET=${WGET:-http://www.ffado.org/files/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-libffado}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Extract
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Fix missing headers
patch -p 1 < $CWD/libffado-2.1.0-fix-includes.patch
# Compile
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
scons PREFIX=/usr \
LIBDIR=/usr/lib$LIBDIRSUFFIX \
ENABLE_OPTIMIZATIONS=yes \
SERIALIZE_USE_EXPAT=yes \
BUILD_TESTS=no
scons install DESTDIR=$PKG WILL_DEAL_WITH_XDG_MYSELF=yes
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS ChangeLog LICENSE.GPLv{2,3} README $PKG/usr/doc/$NAME
# Install desktop files
(
cd support/xdg
mkdir -p $PKG/usr/share/{applications,pixmaps}
install -m 644 ffado.org-ffadomixer.desktop $PKG/usr/share/applications
install -m 644 hi64-apps-ffado.png $PKG/usr/share/pixmaps
)
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

12
l/libffado/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler------------------------------------------------------|
libffado: libffado (a driver for FireWire-based audio interfaces)
libffado:
libffado: The FFADO project aims to provide a free driver implementation for
libffado: FireWire based (semi-) professional audio interfaces. The focus of
libffado: the project are on audio/music production rather than consumer
libffado: audio.
libffado:
libffado:
libffado:
libffado:
libffado:
Loading…
Cancel
Save