39 lines
971 B
Diff
39 lines
971 B
Diff
|
diff -up taglib/taglib-config.cmake.multilib taglib/taglib-config.cmake
|
||
|
--- taglib/taglib-config.cmake.multilib 2006-09-20 07:52:28.000000000 -0500
|
||
|
+++ taglib/taglib-config.cmake 2008-01-16 07:08:42.000000000 -0600
|
||
|
@@ -14,10 +14,10 @@ EOH
|
||
|
exit 1;
|
||
|
}
|
||
|
|
||
|
-prefix=${CMAKE_INSTALL_PREFIX}
|
||
|
-exec_prefix=${CMAKE_INSTALL_PREFIX}
|
||
|
-libdir=${LIB_INSTALL_DIR}
|
||
|
-includedir=${INCLUDE_INSTALL_DIR}
|
||
|
+taglib_prefix="`pkg-config --variable=prefix taglib`"
|
||
|
+taglib_cflags="`pkg-config --cflags taglib`"
|
||
|
+taglib_libs="`pkg-config --libs taglib`"
|
||
|
+taglib_version="`pkg-config --modversion taglib`"
|
||
|
|
||
|
flags=""
|
||
|
|
||
|
@@ -29,16 +29,16 @@ while test $# -gt 0
|
||
|
do
|
||
|
case $1 in
|
||
|
--libs)
|
||
|
- flags="$flags -L$libdir -ltag"
|
||
|
+ flags="$flags $taglib_libs"
|
||
|
;;
|
||
|
--cflags)
|
||
|
- flags="$flags -I$includedir/taglib"
|
||
|
+ flags="$flags $taglib_cflags"
|
||
|
;;
|
||
|
--version)
|
||
|
echo 1.4
|
||
|
;;
|
||
|
--prefix)
|
||
|
- echo $prefix
|
||
|
+ echo $taglib_prefix
|
||
|
;;
|
||
|
*)
|
||
|
echo "$0: unknown option $1"
|