diff --git a/recipes-qt/tufao/files/hardcode_paths.patch b/recipes-qt/tufao/files/hardcode_paths.patch new file mode 100644 index 0000000000..cbfe4baa87 --- /dev/null +++ b/recipes-qt/tufao/files/hardcode_paths.patch @@ -0,0 +1,21 @@ +diff --git a/pkg/CMakeLists.txt b/pkg/CMakeLists.txt +index 25891a5..dffce68 100644 +--- a/pkg/CMakeLists.txt ++++ b/pkg/CMakeLists.txt +@@ -9,7 +9,7 @@ configure_file(FindTufao.cmake.in FindTufao${TUFAO_VERSION_MAJOR}.cmake @ONLY) + + # Install info + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tufao${TUFAO_VERSION_MAJOR}.prf" +- DESTINATION "${QT_MKSPECS_DIR}/features" ++ DESTINATION "/usr/lib/qt5/mkspecs/features" + COMPONENT development + ) + if(PKG_CONFIG_FOUND) +@@ -19,6 +19,6 @@ if(PKG_CONFIG_FOUND) + ) + endif(PKG_CONFIG_FOUND) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FindTufao${TUFAO_VERSION_MAJOR}.cmake" +- DESTINATION "${CMAKE_ROOT}/Modules" ++ DESTINATION "/usr/share/cmake-2.8/Modules" + COMPONENT development + ) diff --git a/recipes-qt/tufao/files/qt_sysroot.patch b/recipes-qt/tufao/files/qt_sysroot.patch new file mode 100644 index 0000000000..71ff92ed56 --- /dev/null +++ b/recipes-qt/tufao/files/qt_sysroot.patch @@ -0,0 +1,13 @@ +diff --git a/pkg/tufao.prf.in b/pkg/tufao.prf.in +index 8fa53d9..2560df3 100644 +--- a/pkg/tufao.prf.in ++++ b/pkg/tufao.prf.in +@@ -1,5 +1,5 @@ + QT += network + + DEFINES += TUFAO_VERSION_MAJOR=@TUFAO_VERSION_MAJOR@ +-INCLUDEPATH += "@CMAKE_INSTALL_PREFIX@/@includedir@" +-LIBS += -L"@CMAKE_INSTALL_PREFIX@/@libdir@" -l@TUFAO_LIBRARY@ ++INCLUDEPATH += "$$[QT_SYSROOT]@CMAKE_INSTALL_PREFIX@/@includedir@" ++LIBS += -L"$$[QT_SYSROOT]@CMAKE_INSTALL_PREFIX@/@libdir@" -l@TUFAO_LIBRARY@ + diff --git a/recipes-qt/tufao/tufao1_1.0.2.bb b/recipes-qt/tufao/tufao1_1.0.2.bb new file mode 100644 index 0000000000..8fea0218f7 --- /dev/null +++ b/recipes-qt/tufao/tufao1_1.0.2.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "Tufao webserver" +HOMEPAGE = "http://vinipsmaker.github.io/tufao/" + +LICENSE = "LGPLv2" +LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c" + +inherit cmake_qt5 + +SRC_URI = "git://github.com/vinipsmaker/tufao;branch=master \ + file://hardcode_paths.patch \ + file://qt_sysroot.patch " +S= "${WORKDIR}/git" +SRCREV = "0d37027f8e7a64bc58196b963dffc72e13420c7a" + +FILES_${PN}-dev += "${datadir}/cmake-* ${libdir}/qt5/mkspecs/features/*"