Remove pkg-config-transform helper, it's not useful right now.

--HG--
extra : convert_revision : 7c9627f3487c03ae21c1b4ca7682cffdb62808fb
This commit is contained in:
Juan RP
2008-10-23 23:37:45 +02:00
parent 0c2a5b90da
commit d987a000cc
2 changed files with 1 additions and 31 deletions

View File

@@ -1,19 +0,0 @@
#
# This helper will transform the pkg-config files with correct
# directories pointing at XBPS_MASTERDIR specified in the config file.
#
pkgconfig_transform_file()
{
local file="$1"
local pkg="$pkgname-$version"
[ -z "$file" ] && return 1
$sed_cmd \
-e "s|^exec_prefix=$XBPS_DESTDIR/$pkg.*$|exec_prefix=\${prefix}|" \
-e "s|-L\${libdir}|-L\${libdir} -Wl,-R\${libdir}|" \
$file > $file.in && \
$mv_cmd $file.in $file
[ "$?" -eq 0 ] && \
echo "=> Transformed pkg-config file: $(basename $file)."
}