Magellan Linux

Contents of /trunk/extras/strigi/strigi-0.7.7-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13986 - (show annotations) (download)
Sat Nov 3 13:15:04 2012 UTC (11 years, 6 months ago) by niro
File size: 2341 byte(s)
-patched and reenabled ffmpeg
1 # $Id$
2
3 PNAME="strigi"
4 PVER="0.7.7"
5 PBUILD="r5"
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-cpp/clucene-2.3
13 >= dev-libs/libxml2-2.7
14 >= media-gfx/exiv2-0.21
15 >= media-video/ffmpeg-1.0
16 >= sys-apps/dbus-1.6
17 >= virtual/java
18 >= app-admin/gamin-0.1.10
19 >= app-arch/bzip2-1.0.6
20 >= x11-libs/qt4-core-4.8
21 >= x11-libs/qt4-dbus-4.8
22 >= x11-libs/qt4-gui-4.8"
23
24 SDEPEND=">= virtual/java-jdk
25 >= dev-libs/boost-1.51"
26
27 SRCFILE="${PNAME}-${PVER}.tar.xz"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 sminclude qt4 cmake mtools
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}-gcc47.patch
39 mirror://${PNAME}/${PNAME}-${PVER}-ffmpeg.patch
40 )
41
42 #UP2DATE="updatecmd http://www.vandenoever.info/software/${PNAME}/ | grep ${PNAME}- | firsttarball"
43 UP2DATE="updatecmd http://rdieter.fedorapeople.org/strigi | grep ${PNAME}- | firsttarball xz"
44
45 src_prepare()
46 {
47 munpack ${SRCFILE} || die
48 cd ${SRCDIR}/strigidaemon
49 mpatch ${PNAME}-${PVER}-gcc47.patch || die
50 cd ${SRCDIR}
51 mpatch ${PNAME}-${PVER}-ffmpeg.patch || die
52 }
53
54 src_compile()
55 {
56 cd ${SRCDIR}
57
58 # warn about /proc in chroot environments
59 [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments."
60
61 # build outside of the source dir
62 install -d ${BUILDDIR}/build || die
63 cd ${BUILDDIR}/build
64
65 # only using libxml2 not expat
66 cmake_configure \
67 -DFORCE_DEPS=ON \
68 $(cmake_enable POLLING) \
69 $(cmake_enable CLUCENE) \
70 $(cmake_enable CLUCENE_NG) \
71 $(cmake_enable DBUS) \
72 $(cmake_enable INOTIFY) \
73 $(cmake_enable FAM) \
74 $(cmake_enable QT4) \
75 $(cmake_enable EXIV2) \
76 $(cmake_disable FFMPEG) \
77 $(cmake_disable HYPERESTRAIER) \
78 $(cmake_disable CPPUNIT) \
79 $(cmake_disable REGENERATEXSD) \
80 $(cmake_disable LOG4CXX) \
81 $(cmake_disable XINE) \
82 || die
83
84 # fix problems with as-needed
85 sed -i '/^CLUCENE1_LDFLAGS:/s/\(.*\)/&;-lclucene-shared/' CMakeCache.txt || die
86
87 mmake || die
88 }
89
90 src_install()
91 {
92 cmake_src_install || die
93 minstalldir /etc/xdg/autostart || die
94 minstallfile -s strigi-daemon.desktop /etc/xdg/autostart/ || die
95 }