Portfile

# $Id: Portfile 20491 2006-11-03 15:43:42Z blair@macports.org $

PortSystem 1.0
name mnogosearch
version 3.2.38
categories www
maintainers nomaintainer@macports.org
description Full-featured SQL-based web search engine
long_description \
mnoGoSearch is a full-featured SQL-based web search engine. \
mnoGoSearch consists of two parts. The first part is the indexing \
mechanism (indexer). indexer walks over html hypertext references and \
stores found words and new references into a database. The second part \
is the web CGI front-end to provide searching using data collected by \
indexer.

platforms darwin

homepage http://www.mnogosearch.org/
master_sites ${homepage}Download/

checksums md5 2aa9a123857a3a6ee77daac762979310

depends_lib port:openssl port:zlib

patchfiles patch-doc_Makefile.in

configure.env CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
configure.args --sysconfdir=${prefix}/etc/mnogosearch \
--localstatedir=${prefix}/var/mnogosearch \
--datadir=${prefix}/share/mnogosearch \
--mandir=${prefix}/share/man --disable-static \
--with-openssl --with-zlib

post-configure {
ui_msg "\n\n-------------------------------------------------------------"
ui_msg "Note: if you did not select any database variants, mnogosearch"
ui_msg "will be built without the indexer (which may not be what you"
ui_msg "wanted)."
ui_msg "-------------------------------------------------------------\n\n"
}

destroot.keepdirs ${destroot}${prefix}/var/mnogosearch

post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
NEWS README README.CVS README.XML TODO \
${destroot}${prefix}/share/doc/${name}
}

variant mysql3 {
depends_lib-append port:mysql3
configure.args-append --with-mysql=${prefix}
}

variant mysql4 {
depends_lib-append port:mysql4
configure.args-append --with-mysql=${prefix}
}

variant mysql5 {
depends_lib-append port:mysql5
configure.args-append --with-mysql=${prefix}
}

variant postgresql7 {
depends_lib-append port:postgresql7
configure.args-append --with-pgsql=${prefix}/lib/pgsql7
}

variant postgresql81 {
depends_lib-append port:postgresql81
configure.args-append --with-pgsql=${prefix}/lib/postgresql81
}

# Other database variants would go here

variant nosyslog {
configure.args-append --disable-syslog
}

files