aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2022-05-08 23:59:19 +0000
committerDaniel Engberg <diizzy@FreeBSD.org>2022-05-09 00:01:00 +0000
commitf33bae87bb39ae853b2e268a459e8900135d2029 (patch)
tree6ae0399e8f5a09ed0177e5c4a9bdfc007d66d6a8
parent3dca89f8e300fa0f8180d02204191472fbe71cde (diff)
downloadports-f33bae87bb39ae853b2e268a459e8900135d2029.tar.gz
ports-f33bae87bb39ae853b2e268a459e8900135d2029.zip
audio/ocp: Fix detection using pkg-config with libmad 0.16
Filename for libmad's pc file is now libmad.pc, this broke pkg-config check however fallback detection code still worked. Approved by: portmgr (blanket)
-rw-r--r--audio/ocp/files/patch-configure46
1 files changed, 46 insertions, 0 deletions
diff --git a/audio/ocp/files/patch-configure b/audio/ocp/files/patch-configure
new file mode 100644
index 000000000000..95716fbbddfd
--- /dev/null
+++ b/audio/ocp/files/patch-configure
@@ -0,0 +1,46 @@
+--- configure.orig 2022-05-08 19:20:04 UTC
++++ configure
+@@ -8815,12 +8815,12 @@ if test -n "$MAD_CFLAGS"; then
+ pkg_cv_MAD_CFLAGS="$MAD_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mad\""; } >&5
+- ($PKG_CONFIG --exists --print-errors "mad") 2>&5
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmad\""; } >&5
++ ($PKG_CONFIG --exists --print-errors "libmad") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+- pkg_cv_MAD_CFLAGS=`$PKG_CONFIG --cflags "mad" 2>/dev/null`
++ pkg_cv_MAD_CFLAGS=`$PKG_CONFIG --cflags "libmad" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+ pkg_failed=yes
+@@ -8832,12 +8832,12 @@ if test -n "$MAD_LIBS"; then
+ pkg_cv_MAD_LIBS="$MAD_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mad\""; } >&5
+- ($PKG_CONFIG --exists --print-errors "mad") 2>&5
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmad\""; } >&5
++ ($PKG_CONFIG --exists --print-errors "libmad") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+- pkg_cv_MAD_LIBS=`$PKG_CONFIG --libs "mad" 2>/dev/null`
++ pkg_cv_MAD_LIBS=`$PKG_CONFIG --libs "libmad" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+ pkg_failed=yes
+@@ -8858,9 +8858,9 @@ else
+ _pkg_short_errors_supported=no
+ fi
+ if test $_pkg_short_errors_supported = yes; then
+- MAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mad" 2>&1`
++ MAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmad" 2>&1`
+ else
+- MAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mad" 2>&1`
++ MAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmad" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$MAD_PKG_ERRORS" >&5