Add upstream patch to fix taglib version detection
Reported by: pkg-fallout Obtained from: https://websvn.kde.org/?view=revision&revision=1444333
This commit is contained in:
parent
a262d567ff
commit
0f851f0b34
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=405141
1 changed files with 24 additions and 0 deletions
24
audio/taglib-extras/files/patch-svn_1444333
Normal file
24
audio/taglib-extras/files/patch-svn_1444333
Normal file
|
@ -0,0 +1,24 @@
|
|||
--- cmake/modules/FindTaglib.cmake 2009/03/18 13:31:18 940895
|
||||
+++ cmake/modules/FindTaglib.cmake 2015/11/16 19:05:39 1444333
|
||||
@@ -29,10 +29,10 @@
|
||||
|
||||
exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --version RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_VERSION)
|
||||
|
||||
- if(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
|
||||
+ if("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)
|
||||
message(STATUS "TagLib version not found: version searched :${TAGLIB_MIN_VERSION}, found ${TAGLIB_VERSION}")
|
||||
set(TAGLIB_FOUND FALSE)
|
||||
- else(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
|
||||
+ else("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)
|
||||
|
||||
exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_LIBRARIES)
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
set(TAGLIB_FOUND TRUE)
|
||||
endif(TAGLIB_LIBRARIES AND TAGLIB_CFLAGS)
|
||||
string(REGEX REPLACE " *-I" ";" TAGLIB_INCLUDES "${TAGLIB_CFLAGS}")
|
||||
- endif(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
|
||||
+ endif("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)
|
||||
mark_as_advanced(TAGLIB_CFLAGS TAGLIB_LIBRARIES TAGLIB_INCLUDES)
|
||||
|
||||
else(TAGLIBCONFIG_EXECUTABLE)
|
Loading…
Reference in a new issue