openbsd-ports/multimedia/k3b/patches/patch-configure
jakemsr 6838aeee39 * FFmpeg headers moved
* FFmpeg LIB_DEPENDS/WANTLIB changes
* add @bin markers in PLISTs
* bump PKGNAMEs

feedback/ok brad@
2008-07-09 02:07:36 +00:00

51 lines
1.4 KiB
Plaintext

$OpenBSD: patch-configure,v 1.2 2008/07/09 02:13:01 jakemsr Exp $
--- configure.orig Fri Nov 2 03:02:31 2007
+++ configure Sun Jun 22 00:56:53 2008
@@ -29531,7 +29531,10 @@ rm -f core conftest.err conftest.$ac_objext conftest_i
fi
if test "x$LIBPTHREAD" = "xPTHREAD" ; then
- LIBPTHREAD=""
+ case $host_os in
+ openbsd*) LIBPTHREAD="-pthread" ;;
+ *) LIBPTHREAD="" ;;
+ esac
fi
@@ -36499,8 +36502,8 @@ ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${a
cat >conftest.$ac_ext <<_ACEOF
extern "C" {
- #include <ffmpeg/avformat.h>
- #include <ffmpeg/avcodec.h>
+ #include <libavformat/avformat.h>
+ #include <libavcodec/avcodec.h>
}
int main() {
@@ -36537,11 +36540,11 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
OLD_LIBS=$LIBS
- LIBS="-lavformat -lavcodec $LIBS"
+ LIBS="$(pkg-config --libs libavcodec libavformat) $LIBS"
cat >conftest.$ac_ext <<_ACEOF
extern "C" {
- #include <ffmpeg/avformat.h>
- #include <ffmpeg/avcodec.h>
+ #include <libavformat/avformat.h>
+ #include <libavcodec/avcodec.h>
}
int main() {
@@ -36784,7 +36787,7 @@ if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_process
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lFLAC $all_libraries $LIBS"
+LIBS="-lFLAC -logg -lm $all_libraries $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF