diff --git a/media-libs/libsndfile/libsndfile-1.0.25.recipe b/media-libs/libsndfile/libsndfile-1.0.25.recipe new file mode 100644 index 000000000..c361b6648 --- /dev/null +++ b/media-libs/libsndfile/libsndfile-1.0.25.recipe @@ -0,0 +1,87 @@ +SUMMARY="C library for reading and writing files containing sampled sound" +DESCRIPTION=" +libsndfile is a library of C routines for reading and writing \ +files containing sampled audio data. +" +HOMEPAGE="http://www.mega-nerd.com/libsndfile" +COPYRIGHT=" + 1999-2011 Erik de Castro Lopo +" +LICENSE="GNU LGPL v2.1" +SRC_URI="http://www.mega-nerd.com/libsndfile/files/$portVersionedName.tar.gz" +CHECKSUM_SHA256="59016dbd326abe7e2366ded5c344c853829bebfd1702ef26a07ef662d6aa4882" +REVISION="1" +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="!x86_gcc2 x86" + +PATCHES="$portVersionedName.patchset" + +PROVIDES=" + libsndfile$secondaryArchSuffix = $portVersion compat >= 1 + cmd:sndfile_cmp + cmd:sndfile_concat + cmd:sndfile_convert + cmd:sndfile_deinterleave + cmd:sndfile_info + cmd:sndfile_interleave + cmd:sndfile_metadata_get + cmd:sndfile_metadata_set + cmd:sndfile_play + cmd:sndfile_regtest + cmd:sndfile_salvage + lib:libsndfile$secondaryArchSuffix = $portVersion compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libflac$secondaryArchSuffix + lib:libogg$secondaryArchSuffix + lib:libvorbis$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libflac$secondaryArchSuffix + devel:libogg$secondaryArchSuffix + devel:libvorbis$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + cmd:pkg_config + " + +BUILD() +{ + libtoolize --force --copy --install + aclocal -I M4 + autoconf + automake + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libsndfile + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libsndfile${secondaryArchSuffix}_devel = $portVersion compat >= 1 + devel:libsndfile$secondaryArchSuffix = $portVersion compat >= 1 + " +REQUIRES_devel=" + libsndfile$secondaryArchSuffix == $portVersion base + " diff --git a/media-libs/libsndfile/patches/libsndfile-1.0.25.patchset b/media-libs/libsndfile/patches/libsndfile-1.0.25.patchset new file mode 100644 index 000000000..d1203e9d4 --- /dev/null +++ b/media-libs/libsndfile/patches/libsndfile-1.0.25.patchset @@ -0,0 +1,21 @@ +From c94a905e75ff6769bd4289d56f687d6c2a8f6ba4 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Tue, 20 May 2014 16:43:24 +0000 +Subject: haiku patch + + +diff --git a/src/sndfile.h.in b/src/sndfile.h.in +index 8926fc6..ef9636b 100644 +--- a/src/sndfile.h.in ++++ b/src/sndfile.h.in +@@ -29,6 +29,7 @@ + /* This is the version 1.0.X header file. */ + #define SNDFILE_1 + ++#include + #include + #include + +-- +1.8.3.4 +