diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-12 03:31:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-12 03:31:11 +0000 |
commit | 3a9a4f8b478ff62e3c752e20305edb2c7d91959f (patch) | |
tree | af2b80e575254ddcdc57ea6b2ae02607bb0a7824 /media-sound/ncmpcpp/files/ncmpcpp-taglib-pc.patch | |
parent | 7236d0a40beeff3f6f0fcede52d54dfb81880faa (diff) |
gentoo auto-resync : 12:11:2022 - 03:31:11
Diffstat (limited to 'media-sound/ncmpcpp/files/ncmpcpp-taglib-pc.patch')
-rw-r--r-- | media-sound/ncmpcpp/files/ncmpcpp-taglib-pc.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/media-sound/ncmpcpp/files/ncmpcpp-taglib-pc.patch b/media-sound/ncmpcpp/files/ncmpcpp-taglib-pc.patch new file mode 100644 index 000000000000..3a3c55e923d9 --- /dev/null +++ b/media-sound/ncmpcpp/files/ncmpcpp-taglib-pc.patch @@ -0,0 +1,56 @@ +From 8796a4469795dfb067d02e19ddb3ae380d9b2fc3 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@gentoo.org> +Date: Thu, 10 Nov 2022 23:58:33 +0000 +Subject: [PATCH] Check for taglib with pkg-config before trying taglib-config + +Programs like taglib-config are not good when cross-compiling. +--- + configure.ac | 27 +++++++++++++++++++-------- + 1 file changed, 19 insertions(+), 8 deletions(-) + +diff --git a/configure.ac b/configure.ac +index ef0c52b7..193840e6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -257,19 +257,30 @@ PKG_CHECK_MODULES([libcurl], [libcurl], [ + + # taglib + if test "$taglib" != "no" ; then +- AC_PATH_PROG(TAGLIB_CONFIG, taglib-config) +- if test "$TAGLIB_CONFIG" != "" ; then +- CPPFLAGS="$CPPFLAGS `$TAGLIB_CONFIG --cflags`" +- LIBS="$LIBS `$TAGLIB_CONFIG --libs`" ++ PKG_CHECK_MODULES([taglib], [taglib], [ ++ AC_SUBST(taglib_CFLAGS) ++ AC_SUBST(taglib_LIBS) ++ ], [ ++ AC_PATH_PROG([TAGLIB_CONFIG], [taglib-config]) ++ if test "$TAGLIB_CONFIG" != ""; then ++ taglib_CFLAGS=`$TAGLIB_CONFIG --cflags` ++ taglib_LIBS=`$TAGLIB_CONFIG --libs` ++ else ++ if test "$taglib" = "yes" ; then ++ AC_MSG_ERROR([could not find taglib.pc or taglib-config executable]) ++ fi ++ fi ++ ]) ++ ++ if test "$TAGLIB_CONFIG$taglib_LIBS" != "" ; then ++ CPPFLAGS="$CPPFLAGS $taglib_CFLAGS" ++ LIBS="$LIBS $taglib_LIBS" ++ + AC_CHECK_HEADERS([taglib.h], , + if test "$taglib" = "yes" ; then + AC_MSG_ERROR([missing taglib.h header]) + fi + ) +- else +- if test "$taglib" = "yes" ; then +- AC_MSG_ERROR([taglib-config executable is missing]) +- fi + fi + fi + +-- +2.38.1 + |