Magellan Linux

Contents of /branches/R11-unstable/extras/strigi/strigi-0.7.8-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25805 - (show annotations) (download)
Tue Nov 25 04:19:44 2014 UTC (9 years, 5 months ago) by niro
File size: 2241 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="strigi"
4 PVER="0.7.8"
5 PBUILD="r3"
6
7 PCAT="app-misc"
8
9 DESCRIPTION="Fast crawling desktop search engine with Qt4 GUI."
10 HOMEPAGE="http://strigi.sourceforge.net/"
11
12 DEPEND=">= dev-libs/libxml2-2.9
13 >= media-gfx/exiv2-0.24
14 >= media-video/ffmpeg-2.4
15 >= sys-apps/dbus-1.8
16 >= virtual/java
17 >= app-admin/gamin-0.1.10
18 >= app-arch/bzip2-1.0.6
19 >= x11-libs/qt4-core-4.8
20 >= x11-libs/qt4-dbus-4.8
21 >= x11-libs/qt4-gui-4.8"
22
23 SDEPEND=">= virtual/java-jdk
24 >= dev-libs/boost-1.56"
25
26 SRCFILE="${PNAME}-${PVER}.tar.bz2"
27 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
28
29 sminclude qt4 cmake mtools
30 msetfeature "!check" # no check target
31
32 # check also http://www.vandenoever.info/software/strigi/
33 SRC_URI=(
34 http://rdieter.fedorapeople.org/strigi/${SRCFILE}
35 http://www.vandenoever.info/software/${PNAME}/${SRCFILE}
36 mirror://${PNAME}/${SRCFILE}
37 mirror://${PNAME}/strigi-daemon.desktop
38 mirror://${PNAME}/${PNAME}-${PVER}-gcc48.patch
39 )
40
41 UP2DATE="updatecmd http://www.vandenoever.info/software/${PNAME}/ | grep ${PNAME}- | firsttarball"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46
47 # fix build with gcc-4.8
48 cd ${SRCDIR}/libstreams
49 mpatch ${PNAME}-${PVER}-gcc48.patch || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 # warn about /proc in chroot environments
57 [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments."
58
59 # build outside of the source dir
60 install -d ${BUILDDIR}/build || die
61 cd ${BUILDDIR}/build
62
63 # only using libxml2 not expat
64 # the clucene module is depreacted and there is no active development,
65 # see: http://trueg.wordpress.com/2011/09/22/about-strigi-soprano-virtuoso-clucene-and-libstreamanalyzer/
66 cmake_configure \
67 -DFORCE_DEPS=ON \
68 $(cmake_disable CLUCENE) \
69 $(cmake_disable CLUCENE_NG) \
70 $(cmake_enable DBUS) \
71 $(cmake_enable INOTIFY) \
72 $(cmake_enable FAM) \
73 $(cmake_enable QT4) \
74 $(cmake_enable EXIV2) \
75 $(cmake_enable FFMPEG) \
76 $(cmake_disable REGENERATEXSD) \
77 $(cmake_disable LOG4CXX) \
78 || die
79
80 # fix problems with as-needed
81 sed -i '/^CLUCENE1_LDFLAGS:/s/\(.*\)/&;-lclucene-shared/' CMakeCache.txt || die
82
83 mmake || die
84 }
85
86 src_install()
87 {
88 cmake_src_install || die
89 minstalldir /etc/xdg/autostart || die
90 minstallfile -s strigi-daemon.desktop /etc/xdg/autostart/ || die
91 }