Commit 26d72327 authored by Nicolas George's avatar Nicolas George

configure: produce useful uninstalled pc files.

The old files were scattered in several directories,
with an unusual name, but dependencies to the usual name,
and relative paths.

The new files are regrouped in a singled directory
(doc/examples/pc-uninstalled) with their usual name
and more absolute paths.

With this change, it becomes possible to compile the examples
with the ffmpeg build tree by setting the environment variable:
PKG_CONFIG_PATH=pc-uninstalled
parent a568a84e
...@@ -3958,18 +3958,22 @@ Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs) ...@@ -3958,18 +3958,22 @@ Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs)
Libs.private: $(enabled shared && echo $libs) Libs.private: $(enabled shared && echo $libs)
Cflags: -I\${includedir} Cflags: -I\${includedir}
EOF EOF
cat <<EOF > $name/$name-uninstalled.pc
mkdir -p doc/examples/pc-uninstalled
includedir=${source_path}
[ "$includedir" = . ] && includedir="\${pcfiledir}/../../.."
cat <<EOF > doc/examples/pc-uninstalled/$name.pc
prefix= prefix=
exec_prefix= exec_prefix=
libdir=\${pcfiledir} libdir=\${pcfiledir}/../../../$name
includedir=${source_path} includedir=${includedir}
Name: $name Name: $name
Description: $comment Description: $comment
Version: $version Version: $version
Requires: $requires Requires: $requires
Conflicts: Conflicts:
Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs)
Cflags: -I\${includedir} Cflags: -I\${includedir}
EOF EOF
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment