strigi search engine, dependency of kde4.
compiles, probably doesn't run right yet.
This commit is contained in:
parent
da922b4523
commit
b423669a57
39
databases/strigi/Makefile
Normal file
39
databases/strigi/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
COMMENT= 'document indexer'
|
||||
CATEGORIES= databases devel textproc sysutils
|
||||
|
||||
HOMEPAGE= http://www.vandenoever.info/software/strigi/
|
||||
DISTNAME= strigi-0.5.1
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
SHARED_LIBS += cluceneindex 0.0 # .0.5
|
||||
SHARED_LIBS += searchclient 0.0 # .0.5
|
||||
SHARED_LIBS += streamanalyzer 0.0 # .0.5
|
||||
SHARED_LIBS += streams 0.0 # .0.5
|
||||
SHARED_LIBS += strigihtmlgui 0.0 # .0.5
|
||||
SHARED_LIBS += strigiqtdbusclient 0.0 # .0.5
|
||||
|
||||
LIB_DEPENDS= clucene::textproc/clucene \
|
||||
bz2::archivers/bzip2 \
|
||||
xml2::textproc/libxml \
|
||||
lib/qt4/QtCore,lib/qt4/QtGui,lib/qt4/QtDBus::x11/qt4
|
||||
|
||||
WANTLIB += ICE SM X11 Xcursor Xext Xi Xinerama Xrandr Xrender
|
||||
WANTLIB += c dbus-1 fontconfig freetype glib-2.0 gthread-2.0 iconv
|
||||
WANTLIB += m png pthread stdc++ z
|
||||
|
||||
MODULES+= devel/cmake
|
||||
CONFIGURE_STYLE= cmake
|
||||
SEPARATE_BUILD= simple
|
||||
|
||||
CONFIGURE_ARGS+=-DHyperEstraier_FOUND:BOOL=0
|
||||
|
||||
.include <bsd.port.mk>
|
5
databases/strigi/distinfo
Normal file
5
databases/strigi/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (strigi-0.5.1.tar.bz2) = uXa0889FH8U813PDONeJlA==
|
||||
RMD160 (strigi-0.5.1.tar.bz2) = C0dltHarLgNtpbPNXQkEt+VNnrs=
|
||||
SHA1 (strigi-0.5.1.tar.bz2) = C8MqsWaEkq1E0GH9TVdT7ANEy0E=
|
||||
SHA256 (strigi-0.5.1.tar.bz2) = 8eBWqL0lXITFq3Ce25o8Ix3xURJM1YziXNH82jp2Llk=
|
||||
SIZE (strigi-0.5.1.tar.bz2) = 651207
|
12
databases/strigi/patches/patch-cmake_FindCppUnit_cmake
Normal file
12
databases/strigi/patches/patch-cmake_FindCppUnit_cmake
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-cmake_FindCppUnit_cmake,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- cmake/FindCppUnit.cmake.orig Thu Jun 7 20:22:19 2007
|
||||
+++ cmake/FindCppUnit.cmake Thu Jun 7 20:22:45 2007
|
||||
@@ -5,7 +5,7 @@
|
||||
# CPPUNIT_INCLUDE_DIR - the libcppunit include directory
|
||||
# CPPUNIT_LIBRARIES - libcppunit library
|
||||
|
||||
-FIND_PATH(CPPUNIT_INCLUDE_DIR Test.h PATHS /usr/include/cppunit /usr/local/include/cppunit )
|
||||
+FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/Test.h PATHS /usr/include /usr/local/include )
|
||||
FIND_LIBRARY(CPPUNIT_LIBRARIES NAMES cppunit PATHS /usr/lib /usr/local/lib )
|
||||
|
||||
# IF(CPPUNIT_INCLUDE_DIR)
|
189
databases/strigi/patches/patch-cmake_FindQt4_cmake
Normal file
189
databases/strigi/patches/patch-cmake_FindQt4_cmake
Normal file
@ -0,0 +1,189 @@
|
||||
$OpenBSD: patch-cmake_FindQt4_cmake,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- cmake/FindQt4.cmake.orig Thu Apr 5 10:08:25 2007
|
||||
+++ cmake/FindQt4.cmake Fri Jun 8 23:26:03 2007
|
||||
@@ -174,6 +174,19 @@
|
||||
# Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
||||
# See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
||||
|
||||
+## macro for asking qmake to process pro files
|
||||
+MACRO(QT_QUERY_QMAKE outvar invar)
|
||||
+ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake/tmp.pro
|
||||
+ "message(CMAKE_MESSAGE<$$${invar}>)")
|
||||
+ EXECUTE_PROCESS(COMMAND ${QT_QMAKE_EXECUTABLE}
|
||||
+ WORKING_DIRECTORY
|
||||
+ ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake
|
||||
+ OUTPUT_VARIABLE _qmake_query_output
|
||||
+ ERROR_VARIABLE _qmake_query_output )
|
||||
+ FILE(REMOVE_RECURSE
|
||||
+ "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmpQmake")
|
||||
+ STRING(REGEX REPLACE ".*CMAKE_MESSAGE<([^>]*).*" "\\1" ${outvar} "${_qmake_query_output}")
|
||||
+ENDMACRO(QT_QUERY_QMAKE)
|
||||
|
||||
INCLUDE(CheckSymbolExists)
|
||||
INCLUDE(MacroAddFileDependencies)
|
||||
@@ -206,7 +219,7 @@ MACRO(QT_QUERY_QMAKE outvar invar)
|
||||
ENDMACRO(QT_QUERY_QMAKE)
|
||||
|
||||
# check for qmake
|
||||
-FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 PATHS
|
||||
+FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 PATHS
|
||||
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin"
|
||||
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin"
|
||||
$ENV{QTDIR}/bin
|
||||
@@ -541,7 +554,7 @@ IF (QT4_QMAKE_FOUND)
|
||||
MARK_AS_ADVANCED( QT_LIBRARY_DIR QT_INCLUDE_DIR QT_QT_INCLUDE_DIR QT_DOC_DIR QT_MKSPECS_DIR QT_PLUGINS_DIR)
|
||||
|
||||
# Set QT_INCLUDES
|
||||
- SET( QT_INCLUDES ${QT_INCLUDE_DIR} ${QT_QT_INCLUDE_DIR} ${QT_MKSPECS_DIR}/default )
|
||||
+ SET( QT_INCLUDES ${QT_INCLUDE_DIR} ${QT_QT_INCLUDE_DIR} ${QT_MKSPECS_DIR}/default)
|
||||
|
||||
|
||||
########################################
|
||||
@@ -1135,7 +1148,142 @@ IF (QT4_QMAKE_FOUND)
|
||||
SET(QT_QTCORE_LIBRARY ${QT_QTCORE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
|
||||
ENDIF(UNIX)
|
||||
|
||||
+ IF(EXISTS "${QT_MKSPECS_DIR}/qconfig.pri")
|
||||
+ FILE(READ ${QT_MKSPECS_DIR}/qconfig.pri _qconfig_FILE_contents)
|
||||
+ STRING(REGEX MATCH "QT_CONFIG[^\n]+" QT_QCONFIG ${_qconfig_FILE_contents})
|
||||
+ STRING(REGEX MATCH "CONFIG[^\n]+" QT_CONFIG ${_qconfig_FILE_contents})
|
||||
+ ENDIF(EXISTS "${QT_MKSPECS_DIR}/qconfig.pri")
|
||||
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES "")
|
||||
+ SET(QT_CORE_LIB_DEPENDENCIES "")
|
||||
+ SET(QT_DBUS_LIB_DEPENDENCIES "")
|
||||
+
|
||||
+ ## system png
|
||||
+ IF(QT_QCONFIG MATCHES "system-png")
|
||||
+ FIND_LIBRARY(QT_PNG_LIBRARY NAMES png)
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_PNG_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_PNG_LIBRARY)
|
||||
+ FIND_PATH(QT_PNG_INCLUDE_DIR png.h
|
||||
+ /usr/local/include
|
||||
+ /usr/include
|
||||
+ /usr/local/include/libpng # OpenBSD
|
||||
+ )
|
||||
+ MARK_AS_ADVANCED(QT_PNG_INCLUDE_DIR)
|
||||
+ SET(QT_INCLUDES ${QT_INCLUDES} ${QT_PNG_INCLUDE_DIR})
|
||||
+
|
||||
+ ENDIF(QT_QCONFIG MATCHES "system-png")
|
||||
+
|
||||
+ IF(QT_QCONFIG MATCHES "glib")
|
||||
+ FIND_LIBRARY(QT_GTHREAD_LIBRARY NAMES gthread-2.0)
|
||||
+ FIND_LIBRARY(QT_GLIB_LIBRARY NAMES glib-2.0)
|
||||
+ MARK_AS_ADVANCED(QT_GLIB_LIBRARY)
|
||||
+ MARK_AS_ADVANCED(QT_GTHREAD_LIBRARY)
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_GTHREAD_LIBRARY} ${QT_GLIB_LIBRARY})
|
||||
+ ENDIF(QT_QCONFIG MATCHES "glib")
|
||||
+
|
||||
+ IF(QT_QCONFIG MATCHES "gnu-libiconv")
|
||||
+ FIND_LIBRARY(QT_LIBINTL NAMES intl)
|
||||
+ FIND_LIBRARY(QT_LIBICONV NAMES iconv)
|
||||
+ MARK_AS_ADVANCED(QT_LIBICONV)
|
||||
+ MARK_AS_ADVANCED(QT_LIBINTL)
|
||||
+ SET(QT_CORE_LIB_DEPENDENCIES ${QT_CORE_LIB_DEPENDENCIES} ${QT_LIBICONV} ${QT_LIBICONV})
|
||||
+ ENDIF(QT_QCONFIG MATCHES "gnu-libiconv")
|
||||
+
|
||||
+ IF(QT_QCONFIG MATCHES "qdbus")
|
||||
+ FIND_LIBRARY(QT_DBUS NAMES dbus-1)
|
||||
+ MARK_AS_ADVANCED(QT_DBUS)
|
||||
+ SET(QT_DBUS_LIB_DEPENDENCIES ${QT_DBUS_LIB_DEPENDENCIES} ${QT_DBUS})
|
||||
+ ENDIF(QT_QCONFIG MATCHES "qdbus")
|
||||
+ # for X11, get X11 library directory
|
||||
+ IF(Q_WS_X11)
|
||||
+ SET(QMAKE_LIBDIR_X11 "/usr/X11R6/lib")
|
||||
+ ENDIF(Q_WS_X11)
|
||||
+
|
||||
+ ## X11 SM
|
||||
+ IF(QT_QCONFIG MATCHES "x11sm")
|
||||
+ # ask qmake where the x11 libs are
|
||||
+ FIND_LIBRARY(QT_X11_SM_LIBRARY NAMES SM PATHS ${QMAKE_LIBDIR_X11})
|
||||
+ FIND_LIBRARY(QT_X11_ICE_LIBRARY NAMES ICE PATHS ${QMAKE_LIBDIR_X11})
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_X11_SM_LIBRARY} ${QT_X11_ICE_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_X11_SM_LIBRARY)
|
||||
+ MARK_AS_ADVANCED(QT_X11_ICE_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "x11sm")
|
||||
+
|
||||
+ ## Xi
|
||||
+ IF(QT_QCONFIG MATCHES "tablet")
|
||||
+ FIND_LIBRARY(QT_XI_LIBRARY NAMES Xi PATHS ${QMAKE_LIBDIR_X11})
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_XI_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_XI_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "tablet")
|
||||
+
|
||||
+ ## Xrender
|
||||
+ IF(QT_QCONFIG MATCHES "xrender")
|
||||
+ FIND_LIBRARY(QT_XRENDER_LIBRARY NAMES Xrender PATHS ${QMAKE_LIBDIR_X11})
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_XRENDER_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_XRENDER_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "xrender")
|
||||
+
|
||||
+ ## Xrandr
|
||||
+ IF(QT_QCONFIG MATCHES "xrandr")
|
||||
+ FIND_LIBRARY(QT_XRANDR_LIBRARY NAMES Xrandr PATHS ${QMAKE_LIBDIR_X11})
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_XRANDR_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_XRANDR_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "xrandr")
|
||||
+
|
||||
+ ## Xcursor
|
||||
+ IF(QT_QCONFIG MATCHES "xcursor")
|
||||
+ FIND_LIBRARY(QT_XCURSOR_LIBRARY NAMES Xcursor PATHS ${QMAKE_LIBDIR_X11})
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_XCURSOR_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_XCURSOR_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "xcursor")
|
||||
+
|
||||
+ ## Xinerama
|
||||
+ IF(QT_QCONFIG MATCHES "xinerama")
|
||||
+ FIND_LIBRARY(QT_XINERAMA_LIBRARY NAMES Xinerama PATHS ${QMAKE_LIBDIR_X11})
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_XINERAMA_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_XINERAMA_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "xinerama")
|
||||
+
|
||||
+ ## system-freetype
|
||||
+ IF(QT_QCONFIG MATCHES "system-freetype")
|
||||
+ FIND_LIBRARY(QT_FREETYPE_LIBRARY NAMES freetype)
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_FREETYPE_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_FREETYPE_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "system-freetype")
|
||||
+
|
||||
+ ## fontconfig
|
||||
+ IF(QT_QCONFIG MATCHES "fontconfig")
|
||||
+ FIND_LIBRARY(QT_FONTCONFIG_LIBRARY NAMES fontconfig)
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${QT_FONTCONFIG_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_FONTCONFIG_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "fontconfig")
|
||||
+
|
||||
+ ## system-zlib
|
||||
+ IF(QT_QCONFIG MATCHES "system-zlib")
|
||||
+ FIND_LIBRARY(QT_ZLIB_LIBRARY NAMES z)
|
||||
+ SET(QT_CORE_LIB_DEPENDENCIES ${QT_CORE_LIB_DEPENDENCIES} ${QT_ZLIB_LIBRARY})
|
||||
+ MARK_AS_ADVANCED(QT_ZLIB_LIBRARY)
|
||||
+ ENDIF(QT_QCONFIG MATCHES "system-zlib")
|
||||
+
|
||||
+ IF(Q_WS_X11)
|
||||
+ # X11 libraries Qt absolutely depends on
|
||||
+ QT_QUERY_QMAKE(QT_LIBS_X11 "QMAKE_LIBS_X11")
|
||||
+ SEPARATE_ARGUMENTS(QT_LIBS_X11)
|
||||
+ FOREACH(QT_X11_LIB ${QT_LIBS_X11})
|
||||
+ STRING(REGEX REPLACE "-l" "" QT_X11_LIB "${QT_X11_LIB}")
|
||||
+ SET(QT_TMP_STR "QT_X11_${QT_X11_LIB}_LIBRARY")
|
||||
+ FIND_LIBRARY(${QT_TMP_STR} NAMES "${QT_X11_LIB}" PATHS ${QMAKE_LIBDIR_X11})
|
||||
+ SET(QT_GUI_LIB_DEPENDENCIES ${QT_GUI_LIB_DEPENDENCIES} ${${QT_TMP_STR}})
|
||||
+ ENDFOREACH(QT_X11_LIB)
|
||||
+
|
||||
+ QT_QUERY_QMAKE(QT_LIBS_THREAD "QMAKE_LIBS_THREAD")
|
||||
+ SET(QT_CORE_LIB_DEPENDENCIES ${QT_CORE_LIB_DEPENDENCIES} ${QT_LIBS_THREAD})
|
||||
+
|
||||
+ QT_QUERY_QMAKE(QMAKE_LIBS_DYNLOAD "QMAKE_LIBS_DYNLOAD")
|
||||
+ SET (QT_CORE_LIB_DEPENDENCIES ${QT_CORE_LIB_DEPENDENCIES} ${QMAKE_LIBS_DYNLOAD})
|
||||
+
|
||||
+ ENDIF(Q_WS_X11)
|
||||
+
|
||||
#######################################
|
||||
#
|
||||
# compatibility settings
|
||||
@@ -1163,4 +1311,3 @@ ELSE(QT4_QMAKE_FOUND)
|
||||
ENDIF(Qt4_FIND_REQUIRED)
|
||||
|
||||
ENDIF (QT4_QMAKE_FOUND)
|
||||
-
|
@ -0,0 +1,9 @@
|
||||
$OpenBSD: patch-src_archiveengine_CMakeLists_txt,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/archiveengine/CMakeLists.txt.orig Fri Jun 8 22:59:16 2007
|
||||
+++ src/archiveengine/CMakeLists.txt Fri Jun 8 22:59:32 2007
|
||||
@@ -11,4 +11,4 @@ add_library(archiveengine
|
||||
streamengine.cpp
|
||||
)
|
||||
|
||||
-target_link_libraries(archiveengine ${QT_QTCORE_LIBRARY} streams)
|
||||
+target_link_libraries(archiveengine ${QT_QTCORE_LIBRARY} ${QT_CORE_LIB_DEPENDENCIES} streams)
|
@ -0,0 +1,10 @@
|
||||
$OpenBSD: patch-src_archivereader_qclient_CMakeLists_txt,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/archivereader/qclient/CMakeLists.txt.orig Fri Jun 8 23:00:40 2007
|
||||
+++ src/archivereader/qclient/CMakeLists.txt Fri Jun 8 23:01:00 2007
|
||||
@@ -13,5 +13,5 @@ set(qclient_MOC_HDRS filebrowser.h)
|
||||
qt4_wrap_cpp(qclient_MOC_SRCS ${qclient_MOC_HDRS})
|
||||
add_executable(qclient ${qclient_SRCS} ${qclient_MOC_SRCS})
|
||||
target_link_libraries(qclient streams
|
||||
- ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY})
|
||||
+ ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_CORE_LIB_DEPENDENCIES} ${QT_GUI_LIB_DEPENDENCIES})
|
||||
|
25
databases/strigi/patches/patch-src_daemon_indexscheduler_cpp
Normal file
25
databases/strigi/patches/patch-src_daemon_indexscheduler_cpp
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-src_daemon_indexscheduler_cpp,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/daemon/indexscheduler.cpp.orig Tue May 1 22:41:25 2007
|
||||
+++ src/daemon/indexscheduler.cpp Thu Jun 7 20:11:52 2007
|
||||
@@ -102,7 +102,7 @@ IndexScheduler::index() {
|
||||
dbfiles = reader->files(0);
|
||||
|
||||
char buff [20];
|
||||
- snprintf(buff, 20* sizeof (char), "%i", dbfiles.size());
|
||||
+ snprintf(buff, 20* sizeof (char), "%li", long(dbfiles.size()));
|
||||
STRIGI_LOG_DEBUG ("strigi.IndexScheduler", string(buff) + " real files in the database")
|
||||
|
||||
// first loop through all files
|
||||
@@ -130,10 +130,10 @@ IndexScheduler::index() {
|
||||
}
|
||||
}
|
||||
|
||||
- snprintf(buff, 20* sizeof (char), "%i", dbfiles.size());
|
||||
+ snprintf(buff, 20* sizeof (char), "%li", long(dbfiles.size()));
|
||||
STRIGI_LOG_DEBUG ("strigi.IndexScheduler", string(buff) + " files to remove")
|
||||
|
||||
- snprintf(buff, 20* sizeof (char), "%i", toindex.size());
|
||||
+ snprintf(buff, 20* sizeof (char), "%li", long(toindex.size()));
|
||||
STRIGI_LOG_DEBUG ("strigi.IndexScheduler", string(buff) + " files to add or update")
|
||||
}
|
||||
|
18
databases/strigi/patches/patch-src_daemon_strigithread_cpp
Normal file
18
databases/strigi/patches/patch-src_daemon_strigithread_cpp
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-src_daemon_strigithread_cpp,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/daemon/strigithread.cpp.orig Tue Mar 13 15:19:45 2007
|
||||
+++ src/daemon/strigithread.cpp Thu Jun 7 20:11:52 2007
|
||||
@@ -99,12 +99,14 @@ threadstarter(void *d) {
|
||||
+ ".threadstarter",
|
||||
string("error setting priority: ") + strerror(errno))
|
||||
}
|
||||
+#ifndef __OpenBSD__
|
||||
r = sched_setscheduler(0, SCHED_BATCH, ¶m);
|
||||
if (r != 0) {
|
||||
STRIGI_LOG_INFO (string("strigi.daemon.") + thread->name
|
||||
+ ".threadstarter",
|
||||
string("error setting to batch: ") + strerror(errno))
|
||||
}
|
||||
+#endif
|
||||
#ifdef HAVE_LINUXIOPRIO
|
||||
sys_ioprio_set(IOPRIO_WHO_PROCESS, 0, IOPRIO_CLASS_IDLE);
|
||||
#endif
|
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-src_luceneindexer_CMakeLists_txt,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/luceneindexer/CMakeLists.txt.orig Thu May 3 23:08:10 2007
|
||||
+++ src/luceneindexer/CMakeLists.txt Thu Jun 7 21:09:55 2007
|
||||
@@ -17,7 +17,11 @@ ENDIF(WIN32)
|
||||
# CLucene requires exception support and has no support for visibility=hidden
|
||||
# so we must use the default (i.e. public) value for -fvisibility
|
||||
IF(NOT WIN32)
|
||||
+IF(__STRIGI_HAVE_GCC_VISIBILITY)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -fvisibility=default")
|
||||
+ELSE(__STRIGI_HAVE_GCC_VISIBILITY)
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions")
|
||||
+ENDIF(__STRIGI_HAVE_GCC_VISIBILITY)
|
||||
ENDIF(NOT WIN32)
|
||||
|
||||
set(cluceneindex_SRCS
|
||||
@@ -36,7 +40,7 @@ set_target_properties(cluceneindex
|
||||
DEFINE_SYMBOL MAKE_CLUCENEINDEXER_LIB
|
||||
)
|
||||
|
||||
-target_link_libraries(cluceneindex streamanalyzer ${CLUCENE_LIBRARY})
|
||||
+target_link_libraries(cluceneindex streamanalyzer ${CLUCENE_LIBRARY} pthread)
|
||||
|
||||
add_executable(luceneindexer luceneindexer.cpp)
|
||||
target_link_libraries(luceneindexer cluceneindex)
|
22
databases/strigi/patches/patch-src_qclient_CMakeLists_txt
Normal file
22
databases/strigi/patches/patch-src_qclient_CMakeLists_txt
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-src_qclient_CMakeLists_txt,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/qclient/CMakeLists.txt.orig Fri Jun 8 22:59:36 2007
|
||||
+++ src/qclient/CMakeLists.txt Fri Jun 8 23:00:03 2007
|
||||
@@ -8,15 +8,15 @@ set(qclientold_MOC_HDRS filebrowser.h)
|
||||
qt4_wrap_cpp(qclientold_MOC_SRCS ${qclientold_MOC_HDRS})
|
||||
add_executable(qclient ${qclientold_SRCS} ${qclientold_MOC_SRCS})
|
||||
|
||||
-target_link_libraries(qclient streams archiveengine ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
|
||||
+target_link_libraries(qclient streams archiveengine ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_CORE_LIB_DEPENDENCIES} ${QT_GUI_LIB_DEPENDENCIES})
|
||||
|
||||
# archivecat
|
||||
add_executable(archivecat archivecat.cpp)
|
||||
|
||||
-target_link_libraries(archivecat streams archiveengine ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
|
||||
+target_link_libraries(archivecat streams archiveengine ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_CORE_LIB_DEPENDENCIES} ${QT_GUI_LIB_DEPENDENCIES})
|
||||
|
||||
# archivedialog
|
||||
add_executable(archivedialog archivedialog.cpp)
|
||||
|
||||
-target_link_libraries(archivedialog streams archiveengine ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
|
||||
+target_link_libraries(archivedialog streams archiveengine ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_CORE_LIB_DEPENDENCIES} ${QT_GUI_LIB_DEPENDENCIES})
|
||||
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_searchclient_filterwidget_CMakeLists_txt,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/searchclient/filterwidget/CMakeLists.txt.orig Fri Jun 8 22:57:48 2007
|
||||
+++ src/searchclient/filterwidget/CMakeLists.txt Fri Jun 8 22:58:05 2007
|
||||
@@ -7,7 +7,7 @@ qt4_wrap_cpp(filterwidget_MOC_SRCS ${filterwidget_MOC_
|
||||
|
||||
add_library(filterwidget ${filterwidget_SRCS} ${filterwidget_MOC_SRCS})
|
||||
|
||||
-target_link_libraries(filterwidget ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
|
||||
+target_link_libraries(filterwidget ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_CORE_LIB_DEPENDENCIES} ${QT_GUI_LIB_DEPENDENCIES})
|
||||
|
||||
add_executable(filterwidgettest filterwidgettest.cpp)
|
||||
|
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-src_searchclient_qtdbus_CMakeLists_txt,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/searchclient/qtdbus/CMakeLists.txt.orig Fri Jun 8 23:38:21 2007
|
||||
+++ src/searchclient/qtdbus/CMakeLists.txt Fri Jun 8 23:38:58 2007
|
||||
@@ -19,7 +19,7 @@ qt4_wrap_cpp(strigiqtdbusclient_MOC_SRCS ${strigiqtdbu
|
||||
add_library(strigiqtdbusclient SHARED ${strigiqtdbusclient_SRCS}
|
||||
${strigiqtdbusclient_MOC_SRCS})
|
||||
|
||||
-target_link_libraries(strigiqtdbusclient ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})
|
||||
+target_link_libraries(strigiqtdbusclient ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_CORE_LIB_DEPENDENCIES} ${QT_GUI_LIB_DEPENDENCIES})
|
||||
set_target_properties(strigiqtdbusclient
|
||||
PROPERTIES VERSION ${STRIGI_VERSION}
|
||||
SOVERSION ${STRIGI_VERSION_MAJOR}
|
||||
@@ -37,4 +37,4 @@ set(strigiasynctest_SRCS strigiasynctest.cpp strigiasy
|
||||
set(strigiasynctest_MOC_HDRS strigiasyncwidget.h)
|
||||
qt4_wrap_cpp(strigiasynctest_MOC_SRCS ${strigiasynctest_MOC_HDRS})
|
||||
add_executable(strigiasynctest ${strigiasynctest_SRCS} ${strigiasynctest_MOC_SRCS})
|
||||
-target_link_libraries(strigiasynctest strigiqtdbusclient ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
|
||||
+target_link_libraries(strigiasynctest strigiqtdbusclient ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_CORE_LIB_DEPENDENCIES} ${QT_GUI_LIB_DEPENDENCIES})
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_sqliteindexer_CMakeLists_txt,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/sqliteindexer/CMakeLists.txt.orig Sun Apr 22 23:44:28 2007
|
||||
+++ src/sqliteindexer/CMakeLists.txt Thu Jun 7 20:13:44 2007
|
||||
@@ -10,7 +10,7 @@ add_library(sqliteindex
|
||||
sqliteindexwriter.cpp
|
||||
)
|
||||
|
||||
-target_link_libraries(sqliteindex streamanalyzer ${SQLITE_LIBRARIES})
|
||||
+target_link_libraries(sqliteindex streamanalyzer ${SQLITE_LIBRARIES} pthread)
|
||||
|
||||
add_executable(sqliteindexer sqliteindexer.cpp)
|
||||
target_link_libraries(sqliteindexer sqliteindex sqlite3)
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_streamanalyzer_analysisresult_cpp,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/streamanalyzer/analysisresult.cpp.orig Thu Jun 7 20:34:49 2007
|
||||
+++ src/streamanalyzer/analysisresult.cpp Thu Jun 7 20:35:01 2007
|
||||
@@ -72,7 +72,7 @@ Latin1Converter::_fromLatin1(char*& o, const char* dat
|
||||
l = outlen;
|
||||
}
|
||||
o = out;
|
||||
-#if defined(_WIN32) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||
+#if defined(_WIN32) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
const char* inp = (char*)data;
|
||||
#else
|
||||
char* inp = (char*)data;
|
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-src_streams_mailinputstream_cpp,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- src/streams/mailinputstream.cpp.orig Thu Jun 7 20:26:08 2007
|
||||
+++ src/streams/mailinputstream.cpp Thu Jun 7 20:31:30 2007
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "base64inputstream.h"
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
+#include <iconv.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace Strigi;
|
||||
@@ -70,11 +71,16 @@ decode(const string& enc, const string& data) {
|
||||
string s;
|
||||
iconv_t const conv(iconv_open("UTF-8", enc.c_str()));
|
||||
if (conv == (iconv_t)-1) return s;
|
||||
+#if defined(__OpenBSD__)
|
||||
+ const char* in = (char*)data.c_str();
|
||||
+#else
|
||||
char* in = (char*)data.c_str();
|
||||
+#endif
|
||||
size_t ilen = data.length();
|
||||
size_t olen = 4*ilen;
|
||||
char* out = (char*)malloc(olen);
|
||||
char* mem = out;
|
||||
+ // XXX
|
||||
size_t r = iconv(conv, &in, &ilen, &out, &olen);
|
||||
if (r != (size_t)-1) {
|
||||
s.assign(mem, out-mem);
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-test_daemon_daemonconfiguratortest_h,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- test/daemon/daemonconfiguratortest.h.orig Mon Mar 26 23:08:51 2007
|
||||
+++ test/daemon/daemonconfiguratortest.h Thu Jun 7 20:24:40 2007
|
||||
@@ -20,8 +20,8 @@
|
||||
#ifndef UNIT_TEST_DAEMONCONFIGURATORTEST_H
|
||||
#define UNIT_TEST_DAEMONCONFIGURATORTEST_H
|
||||
|
||||
-#include <TestFixture.h>
|
||||
-#include <extensions/HelperMacros.h>
|
||||
+#include <cppunit/TestFixture.h>
|
||||
+#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
#include <string>
|
||||
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-test_indextests_indexmanagertester_h,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- test/indextests/indexmanagertester.h.orig Thu Jun 7 21:11:20 2007
|
||||
+++ test/indextests/indexmanagertester.h Thu Jun 7 21:11:46 2007
|
||||
@@ -20,8 +20,8 @@
|
||||
#ifndef UNIT_TEST_INDEX_MANAGER_TESTER_H
|
||||
#define UNIT_TEST_INDEX_MANAGER_TESTER_H
|
||||
|
||||
-#include <TestFixture.h>
|
||||
-#include <extensions/HelperMacros.h>
|
||||
+#include <cppunit/TestFixture.h>
|
||||
+#include <cppunit/extensions/HelperMacros.h>
|
||||
#include <string>
|
||||
|
||||
namespace Strigi {
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-test_indextests_indexreadertester_h,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- test/indextests/indexreadertester.h.orig Thu Jun 7 21:13:26 2007
|
||||
+++ test/indextests/indexreadertester.h Thu Jun 7 21:13:32 2007
|
||||
@@ -20,8 +20,8 @@
|
||||
#ifndef UNIT_TEST_INDEX_READER_TESTER_H
|
||||
#define UNIT_TEST_INDEX_READER_TESTER_H
|
||||
|
||||
-#include <TestFixture.h>
|
||||
-#include <extensions/HelperMacros.h>
|
||||
+#include <cppunit/TestFixture.h>
|
||||
+#include <cppunit/extensions/HelperMacros.h>
|
||||
#include <string>
|
||||
|
||||
namespace Strigi {
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-test_indextests_indexwritertester_h,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- test/indextests/indexwritertester.h.orig Thu Jun 7 21:14:01 2007
|
||||
+++ test/indextests/indexwritertester.h Thu Jun 7 21:14:07 2007
|
||||
@@ -20,8 +20,8 @@
|
||||
#ifndef UNIT_TEST_INDEX_WRITER_TESTER_H
|
||||
#define UNIT_TEST_INDEX_WRITER_TESTER_H
|
||||
|
||||
-#include <TestFixture.h>
|
||||
-#include <extensions/HelperMacros.h>
|
||||
+#include <cppunit/TestFixture.h>
|
||||
+#include <cppunit/extensions/HelperMacros.h>
|
||||
#include <string>
|
||||
|
||||
namespace Strigi {
|
18
databases/strigi/patches/patch-test_test_runner_cpp
Normal file
18
databases/strigi/patches/patch-test_test_runner_cpp
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-test_test_runner_cpp,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
--- test/test_runner.cpp.orig Thu Jun 7 21:14:37 2007
|
||||
+++ test/test_runner.cpp Thu Jun 7 21:14:45 2007
|
||||
@@ -18,10 +18,10 @@
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <TestCaller.h>
|
||||
-#include <extensions/TestFactoryRegistry.h>
|
||||
-#include <TestResult.h>
|
||||
-#include <TextTestRunner.h>
|
||||
+#include <cppunit/TestCaller.h>
|
||||
+#include <cppunit/extensions/TestFactoryRegistry.h>
|
||||
+#include <cppunit/TestResult.h>
|
||||
+#include <cppunit/TextTestRunner.h>
|
||||
|
||||
int main()
|
||||
{
|
4
databases/strigi/pkg/DESCR
Normal file
4
databases/strigi/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
Strigi is supposed to be an indexing engine for KDE4.
|
||||
|
||||
Currently, this port doesn't really work all that well.
|
||||
It's just there to allow work to continue on kde4 porting.
|
89
databases/strigi/pkg/PLIST
Normal file
89
databases/strigi/pkg/PLIST
Normal file
@ -0,0 +1,89 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/06/10 21:46:27 espie Exp $
|
||||
bin/deepfind
|
||||
bin/deepgrep
|
||||
bin/luceneindexer
|
||||
bin/strigiclient
|
||||
bin/strigicmd
|
||||
bin/strigidaemon
|
||||
bin/xmlindexer
|
||||
include/strigi/
|
||||
include/strigi/analysisresult.h
|
||||
include/strigi/analyzerconfiguration.h
|
||||
include/strigi/analyzerplugin.h
|
||||
include/strigi/archivereader.h
|
||||
include/strigi/asyncsocket.h
|
||||
include/strigi/asyncsocketclient.h
|
||||
include/strigi/bufferedstream.h
|
||||
include/strigi/clientinterface.h
|
||||
include/strigi/diranalyzer.h
|
||||
include/strigi/fieldproperties.h
|
||||
include/strigi/fieldtypes.h
|
||||
include/strigi/fileinputstream.h
|
||||
include/strigi/indexeddocument.h
|
||||
include/strigi/indexwriter.h
|
||||
include/strigi/inputstream.h
|
||||
include/strigi/inputstreamreader.h
|
||||
include/strigi/jstreamsconfig.h
|
||||
include/strigi/qtdbus/
|
||||
include/strigi/qtdbus/strigiasyncclient.h
|
||||
include/strigi/qtdbus/strigiclient.h
|
||||
include/strigi/qtdbus/strigidbus.h
|
||||
include/strigi/qtdbus/strigitypes.h
|
||||
include/strigi/streamanalyzer.h
|
||||
include/strigi/streamanalyzerfactory.h
|
||||
include/strigi/streambase.h
|
||||
include/strigi/streambuffer.h
|
||||
include/strigi/streamendanalyzer.h
|
||||
include/strigi/streameventanalyzer.h
|
||||
include/strigi/streamlineanalyzer.h
|
||||
include/strigi/streamsaxanalyzer.h
|
||||
include/strigi/streamthroughanalyzer.h
|
||||
include/strigi/strigiconfig.h
|
||||
include/strigi/strigihtmlgui.h
|
||||
include/strigi/stringreader.h
|
||||
include/strigi/stringstream.h
|
||||
include/strigi/substreamprovider.h
|
||||
include/strigi/substreamproviderprovider.h
|
||||
lib/libcluceneindex.so
|
||||
@lib lib/libcluceneindex.so.${LIBcluceneindex_VERSION}
|
||||
lib/libsearchclient.so
|
||||
@lib lib/libsearchclient.so.${LIBsearchclient_VERSION}
|
||||
lib/libstreamanalyzer.so
|
||||
@lib lib/libstreamanalyzer.so.${LIBstreamanalyzer_VERSION}
|
||||
lib/libstreams.so
|
||||
@lib lib/libstreams.so.${LIBstreams_VERSION}
|
||||
lib/libstrigihtmlgui.so
|
||||
@lib lib/libstrigihtmlgui.so.${LIBstrigihtmlgui_VERSION}
|
||||
lib/libstrigiqtdbusclient.so
|
||||
@lib lib/libstrigiqtdbusclient.so.${LIBstrigiqtdbusclient_VERSION}
|
||||
lib/pkgconfig/libstreamanalyzer.pc
|
||||
lib/pkgconfig/libstreams.pc
|
||||
lib/strigi/
|
||||
lib/strigi/strigila_cpp.so
|
||||
lib/strigi/strigila_deb.so
|
||||
lib/strigi/strigila_xpm.so
|
||||
lib/strigi/strigita_au.so
|
||||
lib/strigi/strigita_pcx.so
|
||||
lib/strigi/strigita_xbm.so
|
||||
share/strigi/
|
||||
share/strigi/fieldproperties/
|
||||
share/strigi/fieldproperties/strigi_audio.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_av.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_chemistry.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_container.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_content.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_cursor.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_documentstats.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_email.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_font.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_image.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_media.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_message.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_photo.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_software.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_source_code.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_system.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_text.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_trash.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_user.fieldproperties
|
||||
share/strigi/fieldproperties/strigi_video.fieldproperties
|
Loading…
Reference in New Issue
Block a user