Magellan Linux

Contents of /trunk/extras/strigi/strigi-0.7.8-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21147 - (show annotations) (download)
Thu Mar 13 07:41:03 2014 UTC (10 years, 3 months ago) by niro
File size: 2191 byte(s)
-fix build with gcc-4.8
1 # $Id$
2
3 PNAME="strigi"
4 PVER="0.7.8"
5 PBUILD="r2"
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.7
13 >= media-gfx/exiv2-0.24
14 >= media-video/ffmpeg-2.1
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.55"
25
26 SRCFILE="${PNAME}-${PVER}.tar.bz2"
27 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
28
29 sminclude qt4 cmake mtools
30
31 # check also http://www.vandenoever.info/software/strigi/
32 SRC_URI=(
33 http://rdieter.fedorapeople.org/strigi/${SRCFILE}
34 http://www.vandenoever.info/software/${PNAME}/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 mirror://${PNAME}/strigi-daemon.desktop
37 mirror://${PNAME}/${PNAME}-${PVER}-gcc48.patch
38 )
39
40 UP2DATE="updatecmd http://www.vandenoever.info/software/${PNAME}/ | grep ${PNAME}- | firsttarball"
41
42 src_prepare()
43 {
44 munpack ${SRCFILE} || die
45 cd ${SRCDIR}
46
47 # fix build with gcc-4.8
48 mpatch ${PNAME}-${PVER}-gcc48.patch || die
49 }
50
51 src_compile()
52 {
53 cd ${SRCDIR}
54
55 # warn about /proc in chroot environments
56 [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments."
57
58 # build outside of the source dir
59 install -d ${BUILDDIR}/build || die
60 cd ${BUILDDIR}/build
61
62 # only using libxml2 not expat
63 # the clucene module is depreacted and there is no active development,
64 # see: http://trueg.wordpress.com/2011/09/22/about-strigi-soprano-virtuoso-clucene-and-libstreamanalyzer/
65 cmake_configure \
66 -DFORCE_DEPS=ON \
67 $(cmake_disable CLUCENE) \
68 $(cmake_disable CLUCENE_NG) \
69 $(cmake_enable DBUS) \
70 $(cmake_enable INOTIFY) \
71 $(cmake_enable FAM) \
72 $(cmake_enable QT4) \
73 $(cmake_enable EXIV2) \
74 $(cmake_enable FFMPEG) \
75 $(cmake_disable REGENERATEXSD) \
76 $(cmake_disable LOG4CXX) \
77 || die
78
79 # fix problems with as-needed
80 sed -i '/^CLUCENE1_LDFLAGS:/s/\(.*\)/&;-lclucene-shared/' CMakeCache.txt || die
81
82 mmake || die
83 }
84
85 src_install()
86 {
87 cmake_src_install || die
88 minstalldir /etc/xdg/autostart || die
89 minstallfile -s strigi-daemon.desktop /etc/xdg/autostart/ || die
90 }