From 85038ba54703dfc64a0953fe38fdbdbe7cc44ee0 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Tue, 7 Jan 2014 19:13:59 +0200 Subject: [PATCH] re-add package: 'libsndfile' for pulseaudio. now built as static lib --- packages/audio/libsndfile/package.mk | 51 +++++++++++++++++++ .../patches/libsndfile-1.0.25-configure.patch | 25 +++++++++ 2 files changed, 76 insertions(+) create mode 100644 packages/audio/libsndfile/package.mk create mode 100644 packages/audio/libsndfile/patches/libsndfile-1.0.25-configure.patch diff --git a/packages/audio/libsndfile/package.mk b/packages/audio/libsndfile/package.mk new file mode 100644 index 0000000000..78faaa71e4 --- /dev/null +++ b/packages/audio/libsndfile/package.mk @@ -0,0 +1,51 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="libsndfile" +PKG_VERSION="1.0.25" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="LGPL" +PKG_SITE="http://www.mega-nerd.com/libsndfile/" +PKG_URL="http://www.mega-nerd.com/$PKG_NAME/files/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="alsa-lib flac libvorbis libogg" +PKG_BUILD_DEPENDS_TARGET="toolchain alsa-lib flac libvorbis libogg" +PKG_PRIORITY="optional" +PKG_SECTION="audio" +PKG_SHORTDESC="libsndfile: A library for accessing various audio file formats" +PKG_LONGDESC="libsndfile is a C library for reading and writing sound files such as AIFF, AU, WAV, and others through one standard interface. It can currently read/write 8, 16, 24 and 32-bit PCM files as well as 32 and 64-bit floating point WAV files and a number of compressed formats. It compiles and runs on *nix, MacOS, and Win32." + +PKG_IS_ADDON="no" +PKG_AUTORECONF="yes" + +# package specific configure options +PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-shared \ + --disable-silent-rules \ + --disable-sqlite \ + --enable-alsa \ + --enable-external-libs \ + --disable-experimental \ + --disable-test-coverage \ + --enable-largefile \ + --with-gnu-ld" + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin +} diff --git a/packages/audio/libsndfile/patches/libsndfile-1.0.25-configure.patch b/packages/audio/libsndfile/patches/libsndfile-1.0.25-configure.patch new file mode 100644 index 0000000000..ece79a7d2b --- /dev/null +++ b/packages/audio/libsndfile/patches/libsndfile-1.0.25-configure.patch @@ -0,0 +1,25 @@ +diff -Naur libsndfile-1.0.25-old/configure.ac libsndfile-1.0.25-new/configure.ac +--- libsndfile-1.0.25-old/configure.ac 2011-07-13 01:59:57.000000000 -0700 ++++ libsndfile-1.0.25-new/configure.ac 2011-07-13 17:04:14.000000000 -0700 +@@ -18,9 +18,6 @@ + AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION) + AM_SILENT_RULES([yes]) + +-dnl Add parameters for aclocal +-AC_SUBST(ACLOCAL_AMFLAGS, "-I M4") +- + AC_LANG([C]) + + AC_PROG_CC +diff -Naur libsndfile-1.0.25-old/Makefile.am libsndfile-1.0.25-new/Makefile.am +--- libsndfile-1.0.25-old/Makefile.am 2011-07-07 02:47:24.000000000 -0700 ++++ libsndfile-1.0.25-new/Makefile.am 2011-07-13 17:04:14.000000000 -0700 +@@ -2,6 +2,8 @@ + + DISTCHECK_CONFIGURE_FLAGS = --enable-gcc-werror + ++ACLOCAL_AMFLAGS = -I M4 ++ + if BUILD_OCTAVE_MOD + octave_dir = Octave + endif