Add a minor fix for pkgconfig.
This commit is contained in:
parent
b7bd6b2d8e
commit
ea3ffb6a96
|
@ -37,6 +37,7 @@ PC="$1"; shift
|
|||
HEADER_NAME="$1"; shift
|
||||
|
||||
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
|
||||
echo "Changing variables..."
|
||||
echo " Building script"
|
||||
echo -n " Building script ( "
|
||||
SED_SCRIPT="script.sed"
|
||||
for param in P PC HEADER_NAME
|
||||
for param in P PC HEADER_NAME PMINUSL
|
||||
do
|
||||
echo "s,@${param}@,${!param},g" >> "${SED_SCRIPT}"
|
||||
echo -n "${PARAM} "
|
||||
done
|
||||
echo ")"
|
||||
|
||||
# Create a list of all the files.
|
||||
echo " Building list of files"
|
||||
|
|
|
@ -16,5 +16,5 @@ Version: @VERSION@
|
|||
Requires:
|
||||
|
||||
# Compilation information
|
||||
Libs: -L@LIBDIR@ -l@P@
|
||||
Libs: -L@LIBDIR@ @PMINUSL@
|
||||
Cflags: -I@INCLUDEDIR@
|
||||
|
|
|
@ -16,5 +16,5 @@ Version: @VERSION@
|
|||
Requires:
|
||||
|
||||
# Compilation information
|
||||
Libs: -L@LIBDIR@ -l@P@
|
||||
Libs: -L@LIBDIR@ @PMINUSL@
|
||||
Cflags: -I@INCLUDEDIR@
|
||||
|
|
Loading…
Reference in New Issue