2 # This helper will transform the pkg-config files with correct
3 # directories pointing at PKGFS_MASTERDIR specified in the config file.
5 pkgconfig_transform_file
()
8 local pkg
="$pkgname-$version"
10 [ -z "$file" ] && return 1
13 -e "s|^exec_prefix=$PKGFS_DESTDIR/$pkg.*$|exec_prefix=\${prefix}|" \
14 -e "s|-L\${libdir}|-L\${libdir} -Wl,-R\${libdir}|" \
16 $mv_cmd $file.
in $file
18 echo "=> Transformed pkg-config file: $(basename $file)."