Ticket #21138: Portfile-strigi

File Portfile-strigi, 2.1 KB (added by mf2k (Frank Schima), 15 years ago)

Modified strigi portfile

Line 
1# $Id: Portfile 55989 2009-08-22 21:44:41Z jmr@macports.org $
2
3PortSystem  1.0
4PortGroup   cmake 1.0
5
6name            strigi
7version         0.6.4
8categories      devel
9maintainers     gmail.com:clubjuggler openmaintainer
10description     Fastest and smallest desktop searching program
11long_description Strigi is a daemon which uses a very fast and efficient crawler that can index data on your harddrive. Indexing operations are performed without hammering your system, this makes Strigi the fastest and smallest desktop searching program. Strigi can index different file formats, including the contents of the archive files.
12platforms       darwin
13homepage        http://strigi.sourceforge.net/
14master_sites    sourceforge
15
16checksums           md5     324fd9606ac77765501717ff92c04f9a \
17                    sha1    e91f31cc59fdfc303b662a8af899efe1365643bf \
18                    rmd160  4b72de166b077778caa2b3ff31c2168a62155bd1
19
20use_bzip2       yes
21patchfiles      patch-MacroCheckGccVisibility.cmake.diff
22#patch.pre_args  -p1
23
24depends_lib     port:bzip2 \
25                port:clucene \
26                port:dbus \
27                port:libxml2 \
28                port:zlib
29
30use_parallel_build   no
31
32configure.args-append   -DICONV_INCLUDE_DIR:PATH=${prefix}/include \
33                        -DICONV_LIBRARIES:FILEPATH=${prefix}/lib/libiconv.dylib \
34                        -DLIBXML2_INCLUDE_DIR:PATH=${prefix}/include/libxml2 \
35                        -DLIBXML2_LIBRARIES:FILEPATH=${prefix}/lib/libxml2.dylib
36
37# Best practice for CMake dictates that builds should be out of source.
38# However, it appears that strigi uses java to create source files and
39# they don't get put in the right place if you're doing an out of source
40# build, so for now this is an in-source build. That does, however, simplify
41# things because the build and destroot phases can be left at the default
42# values.
43
44post-destroot   {
45                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
46                xinstall -m 644 -W ${worksrcpath} COPYING README AUTHORS ChangeLog TODO ${destroot}${prefix}/share/doc/${name}
47}
48
49platform darwin 10 {
50        patchfiles-append patch-dbusmessagereader.cpp.diff \
51                          patch-dbusclientinterface.cpp.diff
52}