openbsd-ports/audio/audacity/patches/patch-configure
2009-10-28 18:40:13 +00:00

73 lines
2.8 KiB
Plaintext

$OpenBSD: patch-configure,v 1.12 2009/10/28 18:40:13 jakemsr Exp $
--- configure.orig Mon Aug 31 03:45:37 2009
+++ configure Sat Oct 17 15:08:27 2009
@@ -822,7 +822,6 @@ JACK_CFLAGS
JACK_LIBS'
ac_subdirs_all='"lib-src/FileDialog"
$CONFIG_SUBDIRS
-lib-src/portaudio-v19
lib-src/portmixer'
# Initialize some variables set by options.
@@ -6933,7 +6932,7 @@ if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_new+set
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lFLAC -lFLAC++ -lFLAC $LIBS"
+LIBS="-lFLAC -lFLAC++ -lFLAC -logg $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -7136,7 +7135,7 @@ fi
if test "x$lib_found" = "xyes" && test "x$header_found" = "xyes" ; then
LIBFLAC_SYSTEM_AVAILABLE="yes"
- LIBFLAC_SYSTEM_LIBS="-lFLAC++ -lFLAC"
+ LIBFLAC_SYSTEM_LIBS="-lFLAC++ -lFLAC -logg"
LIBFLAC_SYSTEM_CPPSYMBOLS="USE_LIBFLAC"
{ $as_echo "$as_me:$LINENO: FLAC libraries are available as system libraries" >&5
$as_echo "$as_me: FLAC libraries are available as system libraries" >&6;}
@@ -9215,13 +9214,8 @@ _ACEOF
esac
-LOCAL_LIBS="$LOCAL_LIBS portaudio-v19/lib/libportaudio.a"
-EXTRAOBJS="$EXTRAOBJS ../lib-src/portaudio-v19/lib/libportaudio.a"
-CXXFLAGS="-I\$(top_srcdir)/lib-src/portaudio-v19/include $CXXFLAGS"
-subdirs="$subdirs lib-src/portaudio-v19"
-
case "${host_os}" in
darwin* | rhapsody*)
LIBS="-framework AudioUnit -framework AudioToolbox $LIBS"
@@ -9637,7 +9631,6 @@ _ACEOF
subdirs="$subdirs lib-src/portmixer"
- ac_configure_args="$ac_configure_args --with-pa-include=../portaudio-v19/include"
fi
{ $as_echo "$as_me:$LINENO: checking for lrint" >&5
@@ -11255,7 +11248,7 @@ $as_echo "$as_me: WARNING: no configuration informatio
{ $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
# The eval makes quoting arguments work.
- eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
+ eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args CFLAGS='"$CFLAGS"' CXXFLAGS='"$CXXFLAGS"' LDFLAGS='"$LDFLAGS"' \
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
{ { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
@@ -11271,9 +11264,8 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_u
fi
-pa_libs=
-pa_libs=`grep 'Libs:' lib-src/portaudio-v19/portaudio-2.0.pc | sed -e 's/Libs://;s/-L${libdir}//;s/-lportaudio//'`
-sed -i -e "s/@PA_LIBS@/$pa_libs/" src/Makefile
+pa_libs=`pkg-config --libs portaudio-2.0`
+perl -pi -e "s#\@PA_LIBS\@#$pa_libs#" src/Makefile
echo ""
echo "Finished configure:"