tufao: Add the tufao http server implementation

Add a patch to hardcode some paths as otherwise it tries to install
files into the directories of cmake-native and qmake-native
This commit is contained in:
Holger Hans Peter Freyther 2014-03-21 13:26:28 +01:00
parent 303f97f4a6
commit 6d25c7dda8
3 changed files with 49 additions and 0 deletions

View File

@ -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
)

View File

@ -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@

View File

@ -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/*"