source: trunk/dports/www/mnogosearch/Portfile @ 4812

Last change on this file since 4812 was 4812, checked in by toby, 14 years ago

more master_sites opendarwin foobage.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1# $Id: Portfile,v 1.2 2004/01/18 03:44:39 toby Exp $
2PortSystem                      1.0
3name                            mnogosearch
4version                         3.2.15
5categories                      www
6maintainers                     blb@pobox.com
7description                     Full-featured SQL-based web search engine
8
9long_description \
10        mnoGoSearch is a full-featured SQL-based web search engine. \
11        mnoGoSearch consists of two parts. The first part is the indexing \
12        mechanism (indexer).  indexer walks over html hypertext references and \
13        stores found words and new references into a database. The second part \
14        is the web CGI front-end to provide searching using data collected by \
15        indexer.
16
17homepage                        http://www.mnogosearch.org/
18
19master_sites            http://www.mnogosearch.org/Download/ \
20                                        opendarwin::lt
21
22platforms                       darwin
23distfiles-append        ltconfig13:lt ltmain13:lt
24checksums                       ${distname}${extract.suffix} md5 87ec6a854850d4df87ca888fa919e1b9 \
25                                        ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
26                                        ltmain13 md5 e094ae92724c4015dbab97de151c2525
27
28extract.only            ${distname}${extract.suffix}
29
30patchfiles                      patch-configure patch-doc_Makefile.in
31
32post-patch {
33        file copy -force ${distpath}/ltconfig13 ${worksrcpath}/ltconfig
34        file copy -force ${distpath}/ltmain13 ${worksrcpath}/ltmain.sh
35}
36
37configure.env           CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
38configure.args          --sysconfdir=${prefix}/etc/mnogosearch \
39                                        --localstatedir=${prefix}/var/mnogosearch \
40                                        --datadir=${prefix}/share/mnogosearch \
41                                        --mandir=${prefix}/share/man --disable-static
42
43post-configure {
44        ui_msg "\n\n-------------------------------------------------------------"
45        ui_msg "Note:  if you did not select any database variants, mnogosearch"
46        ui_msg "will be built without the indexer (which may not be what you"
47        ui_msg "wanted)."
48        ui_msg "-------------------------------------------------------------\n\n"
49}
50
51variant mysql {
52        depends_lib-append              lib:libmysqlclient:mysql
53        configure.args-append   --with-mysql=${prefix}
54}
55
56variant mysql4 {
57        depends_lib-append              lib:libmysqlclient:mysql4
58        configure.args-append   --with-mysql=${prefix}
59}
60
61# Other database variants would go here
62
63variant expat {
64        depends_lib-append              lib:libexpat:expat
65        configure.args-append   --with-expat
66}
67
68variant nosyslog {
69        configure.args-append   --disable-syslog
70}
71
72variant ssl {
73        depends_lib-append              lib:libssl:openssl
74        configure.args-append   --with-openssl
75}
76
77variant zlib {
78        depends_lib-append              lib:libz:zlib
79        configure.args-append   --with-zlib
80}
81
82post-destroot {
83        set mnogovar    "${destroot}${prefix}/var/mnogosearch"
84        # XXX another .turd hack...
85        system "touch ${mnogovar}/raw/.turd ${mnogovar}/splitter/.turd"
86        system "touch ${mnogovar}/tree/.turd ${mnogovar}/cache/.turd"
87        system "touch ${mnogovar}/store/.turd"
88}
89
Note: See TracBrowser for help on using the repository browser.