5 if test "$shared" = "yes"; then
14 libs=$(eval echo \$extralibs_${shortname})
15 deps=$(eval echo \$${shortname}_deps)
19 . ${depname}/${depname}.version
20 depversion=$(eval echo \$${depname}_VERSION)
21 requires="$requires ${depname} >= ${depversion}, "
24 requires=${requires%, }
26 version=$(grep ${name}_VERSION= $name/${name}.version | cut -d= -f2)
28 cat <<EOF > $name/$name.pc
30 exec_prefix=\${prefix}
37 Requires: $($shared || echo $requires)
38 Requires.private: $($shared && echo $requires)
40 Libs: -L\${libdir} -l${shortname} $($shared || echo $libs)
41 Libs.private: $($shared && echo $libs)
42 Cflags: -I\${includedir}
45 cat <<EOF > $name/$name-uninstalled.pc
49 includedir=${source_path}
56 Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs
57 Cflags: -I\${includedir}