summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-05-10 09:53:36 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-12 14:58:52 +0200
commit26d7232722b01c05473d1cc5be8c1fa5ad4a9885 (patch)
tree2db3dad22ee28de0e5079529e244c43207845756 /configure
parenta568a84edf4780a5a136d8e4f07448ea3a2a5c97 (diff)
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure b/configure
index c373640037..ad71494e0c 100755
--- a/configure
+++ b/configure
@@ -3958,18 +3958,22 @@ Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs)
Libs.private: $(enabled shared && echo $libs)
Cflags: -I\${includedir}
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=
exec_prefix=
-libdir=\${pcfiledir}
-includedir=${source_path}
+libdir=\${pcfiledir}/../../../$name
+includedir=${includedir}
Name: $name
Description: $comment
Version: $version
Requires: $requires
Conflicts:
-Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs
+Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs)
Cflags: -I\${includedir}
EOF
}