Added gkrellm-2.3.2 template. YES, IT WORKS!!!
[pkgfs.git] / helper-templates / pkg-config-transform.sh
blobcddfa2bff39af7729ae8d8b78674dd6083d129c3
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()
7 local file="$1"
8 local pkg="$pkgname-$version"
10 [ -z "$file" ] && return 1
12 $sed_cmd \
13 -e "s|^exec_prefix=$PKGFS_DESTDIR/$pkg.*$|exec_prefix=\${prefix}|" \
14 -e "s|-L\${libdir}|-L\${libdir} -Wl,-R\${libdir}|" \
15 $file > $file.in && \
16 $mv_cmd $file.in $file
17 [ "$?" -eq 0 ] && \
18 echo "=> Transformed pkg-config file: $(basename $file)."