libsndfile: Fix linking with external libs.

This commit is contained in:
Alexpux
2014-04-21 07:47:16 +04:00
parent 2b1fe901ef
commit 1053deb0f0
2 changed files with 22 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
--- libsndfile-1.0.25/configure.ac.orig 2014-04-21 07:35:07.656800000 +0400
+++ libsndfile-1.0.25/configure.ac 2014-04-21 07:35:43.256000000 +0400
@@ -335,7 +335,7 @@
enable_external_libs=yes
EXTERNAL_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS"
- EXTERNAL_LIBS="$FLAC_LIBS $VORBISENC_LIBS $SPEEX_LIBS"
+ EXTERNAL_LIBS="$FLAC_LIBS $OGG_LIBS $VORBIS_LIBS $VORBISENC_LIBS $SPEEX_LIBS"
else
echo
AC_MSG_WARN([[*** One or more of the external libraries (ie libflac, libogg and]])

View File

@@ -15,18 +15,23 @@ options=('staticlibs' 'strip')
source=(http://www.mega-nerd.com/libsndfile/files/${_realname}-${pkgver}.tar.gz
0001-more-elegant-and-foolproof-autogen-fallback.all.patch
0002-conditional-truncate.mingw.patch
0003-fix-source-searches.mingw.patch)
0003-fix-source-searches.mingw.patch
0004-fix-linking-external-libs.patch)
md5sums=('e2b7bb637e01022c7d20f95f9c3990a2'
'9b4254acf1cfc17a1e94af29f7260d30'
'c9ac8330da543496b0b5cb6ae081a7b6'
'f225019fdc006262cae9bb0ca91bc446')
'f225019fdc006262cae9bb0ca91bc446'
'4417bf29cc527d9d9e0ac2e42a5695a0')
prepare() {
cd ${srcdir}/${_realname}-${pkgver}
patch -p1 -i ${srcdir}/0001-more-elegant-and-foolproof-autogen-fallback.all.patch
patch -p1 -i ${srcdir}/0002-conditional-truncate.mingw.patch
patch -p1 -i ${srcdir}/0003-fix-source-searches.mingw.patch
patch -p1 -i ${srcdir}/0004-fix-linking-external-libs.patch
#sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' src/binheader_writef_check.py \
# src/create_symbols_file.py programs/test-sndfile-metadata-set.py
autoreconf -fi -I M4
}
@@ -40,7 +45,9 @@ build() {
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--disable-sqlite \
--disable-test-coverage
--disable-test-coverage \
--enable-external-libs
#--enable-experimental # speex support
make
}