qt4: fix sed to have correct *.pc files
it seems sed doesn't handle \? properly if the string in not between quotes. without this patch, we get something like (for example for QtDBusE.pc : Libs: -L${libdir} -lQtDBusE Libs.private: -L/home/ebenard/WORK/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/board/ usr/lib -L/usr/lib -L/home/ebenard/WORK/setup-scripts/build/tmp-angstrom_2010_x-eglibc/sysroots/board /usr/lib -lQtXmlE -L/usr/lib -lQtCoreE -lpthread Cflags: -DQT_SHARED -I/usr/include/qtopia -I${includedir} with the patch we get what is expected : Libs: -L${libdir} -lQtDBusE Libs.private: -lQtXmlE -lQtCoreE -lpthread Cflags: -DQT_SHARED -I/usr/include/qtopia -I${includedir} (From OE-Core rev: 2e635b4fe6be9d5bfcdd837a523833b7eb0819a0) Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e82ae04361
commit
4f408de16b
|
@ -3,7 +3,7 @@ SECTION = "libs"
|
|||
LICENSE = "LGPLv2.1 | GPLv3"
|
||||
HOMEPAGE = "http://qt.nokia.com"
|
||||
DEPENDS += "directfb tslib"
|
||||
INC_PR = "r36"
|
||||
INC_PR = "r37"
|
||||
|
||||
QT_BASE_NAME ?= "qt4-embedded"
|
||||
QT_BASE_LIB ?= "libqt-embedded"
|
||||
|
|
|
@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com"
|
|||
SECTION = "x11/libs"
|
||||
DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
|
||||
|
||||
INC_PR = "r33"
|
||||
INC_PR = "r34"
|
||||
|
||||
QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
|
||||
QT_GLFLAGS_qemux86 = "-opengl"
|
||||
|
|
|
@ -294,13 +294,13 @@ do_install() {
|
|||
rm -f ${D}/${bindir}/lrelease
|
||||
|
||||
# fix pkgconfig, libtool and prl files
|
||||
sed -i -e s#-L${S}/lib/\?##g \
|
||||
-e s#-L${STAGING_LIBDIR}/\?##g \
|
||||
sed -i -e 's#-L${S}/lib/\?##g' \
|
||||
-e 's#-L${STAGING_LIBDIR}/\?##g' \
|
||||
-e 's#STAGING_LIBDIR}#libdir}'#g \
|
||||
-e s#-L${libdir}/\?##g \
|
||||
-e 's#-L${libdir}/\?##g' \
|
||||
-e s#'$(OE_QMAKE_LIBS_X11)'#"${OE_QMAKE_LIBS_X11}"#g \
|
||||
-e s#" -Wl,-rpath-link,${S}/lib/\?"##g \
|
||||
-e s#" -Wl,-rpath-link,${libdir}/\?"##g \
|
||||
-e 's#" -Wl,-rpath-link,${S}/lib/\?"##g' \
|
||||
-e 's#" -Wl,-rpath-link,${libdir}/\?"##g' \
|
||||
-e 's#Iin#I${in#g' \
|
||||
${D}${libdir}/*.la ${D}${libdir}/*.prl ${D}${libdir}/pkgconfig/*.pc
|
||||
|
||||
|
|
Loading…
Reference in New Issue