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
|
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"
|
||||||
|
|
|
@ -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@
|
||||||
|
|
|
@ -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@
|
||||||
|
|
Loading…
Reference in New Issue