Magellan Linux

Annotation of /branches/R11-stable/extras/strigi/strigi-0.7.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18257 - (hide annotations) (download)
Thu Jun 27 10:06:48 2013 UTC (10 years, 10 months ago) by niro
File size: 1950 byte(s)
-release branches/R11-stable
1 niro 17517 # $Id$
2    
3     PNAME="strigi"
4 niro 17518 PVER="0.7.8"
5     PBUILD="r1"
6 niro 17517
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.23
15     >= media-video/ffmpeg-1.2
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.53"
26    
27 niro 17519 SRCFILE="${PNAME}-${PVER}.tar.bz2"
28 niro 17517 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     )
39    
40     UP2DATE="updatecmd http://www.vandenoever.info/software/${PNAME}/ | grep ${PNAME}- | firsttarball"
41     #UP2DATE="updatecmd http://rdieter.fedorapeople.org/strigi | grep ${PNAME}- | firsttarball xz"
42    
43     src_compile()
44     {
45     cd ${SRCDIR}
46    
47     # warn about /proc in chroot environments
48     [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments."
49    
50     # build outside of the source dir
51     install -d ${BUILDDIR}/build || die
52     cd ${BUILDDIR}/build
53    
54     # only using libxml2 not expat
55     cmake_configure \
56     -DFORCE_DEPS=ON \
57     $(cmake_enable CLUCENE) \
58     $(cmake_enable CLUCENE_NG) \
59     $(cmake_enable DBUS) \
60     $(cmake_enable INOTIFY) \
61     $(cmake_enable FAM) \
62     $(cmake_enable QT4) \
63     $(cmake_enable EXIV2) \
64 niro 17522 $(cmake_enable FFMPEG) \
65 niro 17517 $(cmake_disable REGENERATEXSD) \
66     $(cmake_disable LOG4CXX) \
67     || die
68    
69     # fix problems with as-needed
70     sed -i '/^CLUCENE1_LDFLAGS:/s/\(.*\)/&;-lclucene-shared/' CMakeCache.txt || die
71    
72     mmake || die
73     }
74    
75     src_install()
76     {
77     cmake_src_install || die
78     minstalldir /etc/xdg/autostart || die
79     minstallfile -s strigi-daemon.desktop /etc/xdg/autostart/ || die
80     }