libsoundtouch: added a recipe for version 1.8.0

This commit is contained in:
Jerome Duval
2015-02-12 18:23:39 +00:00
parent c7f3cdb75d
commit a6c8d288a6
2 changed files with 109 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
SUMMARY="A library to adjust the sound tempo, pitch and playback rate."
DESCRIPTION="
SoundTouch is an open-source audio processing library that allows \
changing the sound tempo, pitch and playback rate parameters \
independently from each other, i.e.
"
HOMEPAGE="http://www.surina.net/soundtouch"
COPYRIGHT="
2001-2014 Olli Parviainen
"
LICENSE="GNU LGPL v2.1"
SRC_URI="http://www.surina.net/soundtouch/soundtouch-$portVersion.tar.gz"
CHECKSUM_SHA256="3d4161d74ca25c5a98c69dbb8ea10fd2be409ba1a3a0bf81db407c4c261f166b"
REVISION="1"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PATCHES="libsoundtouch-$portVersion.patchset"
PROVIDES="
libsoundtouch$secondaryArchSuffix = $portVersion compat >= 1
cmd:soundstretch$secondaryArchSuffix
lib:libSoundTouch$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
SOURCE_DIR="soundtouch"
BUILD()
{
mkdir -p config/m4
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libSoundTouch
fixPkgconfig
rm -Rf $prefix/doc
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libsoundtouch${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libSoundTouch$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
libsoundtouch$secondaryArchSuffix == $portVersion base
"

View File

@@ -0,0 +1,31 @@
From ecbdc03ca44ac431535a728c714decb12f563b8d Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 12 Feb 2015 17:01:45 +0000
Subject: Haiku build fix
diff --git a/configure.ac b/configure.ac
index 37dbcca..0ea6dfe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@ dnl Place - Suite 330, Boston, MA 02111-1307, USA
AC_INIT(SoundTouch, 1.8.0, [http://www.surina.net/soundtouch])
AC_CONFIG_AUX_DIR(config)
-AM_CONFIG_HEADER([include/soundtouch_config.h])
+AC_CONFIG_HEADERS([include/soundtouch_config.h])
AM_INIT_AUTOMAKE
AM_SILENT_RULES([yes])
#AC_DISABLE_SHARED dnl This makes libtool only build static libs
@@ -200,7 +200,7 @@ AC_FUNC_MALLOC
AC_TYPE_SIGNAL
dnl make -lm get added to the LIBS
-AC_CHECK_LIB(m, sqrt,,AC_MSG_ERROR([compatible libc math library not found]))
+AC_CHECK_LIB(m, sqrt)
dnl add whatever functions you might want to check for here
#AC_CHECK_FUNCS([floor ftruncate memmove memset mkdir modf pow realpath sqrt strchr strdup strerror strrchr strstr strtol])
--
1.8.3.4