5 if test "$shared" = "yes"; then
13 fullname=${name}${build_suffix}
15 libs=$(eval echo \$extralibs_${shortname})
16 deps=$(eval echo \$${shortname}_deps)
20 fulldepname=${depname}${build_suffix}
21 . ${depname}/${depname}.version
22 depversion=$(eval echo \$${depname}_VERSION)
23 requires="$requires ${fulldepname} >= ${depversion}, "
25 requires=${requires%, }
27 version=$(grep ${name}_VERSION= $name/${name}.version | cut -d= -f2)
29 cat <<EOF > $name/$fullname.pc
31 exec_prefix=\${prefix}
38 Requires: $($shared || echo $requires)
39 Requires.private: $($shared && echo $requires)
41 Libs: -L\${libdir} $rpath -l${fullname#lib} $($shared || echo $libs)
42 Libs.private: $($shared && echo $libs)
43 Cflags: -I\${includedir}
46 mkdir -p doc/examples/pc-uninstalled
47 includedir=${source_path}
48 [ "$includedir" = . ] && includedir="\${pcfiledir}/../../.."
49 cat <<EOF > doc/examples/pc-uninstalled/${name}-uninstalled.pc
52 libdir=\${pcfiledir}/../../../$name
53 includedir=${source_path}
60 Libs: -L\${libdir} -Wl,-rpath,\${libdir} -l${fullname#lib} $($shared || echo $libs)
61 Cflags: -I\${includedir}