Add a minor fix for pkgconfig.

This commit is contained in:
Laurence Withers 2006-07-24 17:13:01 +01:00
parent b7bd6b2d8e
commit ea3ffb6a96
3 changed files with 7 additions and 4 deletions

View File

@ -37,6 +37,7 @@ PC="$1"; shift
HEADER_NAME="$1"; shift HEADER_NAME="$1"; shift
DEST_DIR="${DEST_DIR}/${P}" DEST_DIR="${DEST_DIR}/${P}"
PMINUSL="-l$(echo ${P} | sed -e 's,^lib,,')"
@ -58,12 +59,14 @@ mv project.kdevelop.filelist ${P}.kdevelop.filelist
# Build sed script # Build sed script
echo "Changing variables..." echo "Changing variables..."
echo " Building script" echo -n " Building script ( "
SED_SCRIPT="script.sed" SED_SCRIPT="script.sed"
for param in P PC HEADER_NAME for param in P PC HEADER_NAME PMINUSL
do do
echo "s,@${param}@,${!param},g" >> "${SED_SCRIPT}" echo "s,@${param}@,${!param},g" >> "${SED_SCRIPT}"
echo -n "${PARAM} "
done done
echo ")"
# Create a list of all the files. # Create a list of all the files.
echo " Building list of files" echo " Building list of files"

View File

@ -16,5 +16,5 @@ Version: @VERSION@
Requires: Requires:
# Compilation information # Compilation information
Libs: -L@LIBDIR@ -l@P@ Libs: -L@LIBDIR@ @PMINUSL@
Cflags: -I@INCLUDEDIR@ Cflags: -I@INCLUDEDIR@

View File

@ -16,5 +16,5 @@ Version: @VERSION@
Requires: Requires:
# Compilation information # Compilation information
Libs: -L@LIBDIR@ -l@P@ Libs: -L@LIBDIR@ @PMINUSL@
Cflags: -I@INCLUDEDIR@ Cflags: -I@INCLUDEDIR@