diff --git a/package/qextserialport/0002-main-include.patch b/package/qextserialport/0002-main-include.patch index 858f3354d5..27f67f65ae 100644 --- a/package/qextserialport/0002-main-include.patch +++ b/package/qextserialport/0002-main-include.patch @@ -1,7 +1,7 @@ Create a main include file QExtSerialPort This main include file will be installed in - so that Qt applications can use this + so that Qt applications can use this library by including header files in a Qt-like style. Signed-off-by: Thomas Petazzoni diff --git a/package/qextserialport/0003-pkgconfig.patch b/package/qextserialport/0003-pkgconfig.patch index d67f3fcbb3..bb55ad782e 100644 --- a/package/qextserialport/0003-pkgconfig.patch +++ b/package/qextserialport/0003-pkgconfig.patch @@ -10,7 +10,7 @@ Index: qextserialport-ef4af2a2ee3f/qextserialport.pc +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib -+includedir=${prefix}/include/QExtSerialPort ++includedir=${prefix}/include/QtExtSerialPort + +Name: QtExtSerialPort +Description: QtExtSerialPort library diff --git a/package/qextserialport/qextserialport.mk b/package/qextserialport/qextserialport.mk index f48f596898..15cb74cbd4 100644 --- a/package/qextserialport/qextserialport.mk +++ b/package/qextserialport/qextserialport.mk @@ -27,10 +27,8 @@ define QEXTSERIALPORT_BUILD_CMDS endef define QEXTSERIALPORT_INSTALL_STAGING_CMDS - mkdir -p $(STAGING_DIR)/usr/include/QExtSerialPort - cp $(@D)/src/*.h $(STAGING_DIR)/usr/include/QExtSerialPort/ - cp $(@D)/src/QExtSerialPort $(STAGING_DIR)/usr/include/QExtSerialPort/ - cp -a $(@D)/*.so* $(STAGING_DIR)/usr/lib/ + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install + cp $(@D)/src/QExtSerialPort $(STAGING_DIR)/usr/include/QtExtSerialPort/ cp $(@D)/qextserialport.pc $(STAGING_DIR)/usr/lib/pkgconfig/ endef