Ticket #22768: Portfile

File Portfile, 2.7 KB (added by jamie-lists@…, 15 years ago)

Sphinx-0.9.9 Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 58433 2009-09-28 18:18:09Z snc@macports.org $
3
4PortSystem 1.0
5
6name                        sphinx
7version                     0.9.9
8categories                  textproc net
9maintainers                 brett openmaintainer
10
11platforms                   darwin
12description                 Sphinx is a full-text search engine
13long_description    Sphinx is a full-text search engine, meant to provide \
14                    fast, size-efficient and relevant fulltext search \
15                    functions to other applications. Sphinx was specially \
16                    designed to integrate well with SQL databases and \
17                    scripting languages. Currently built-in data sources \
18                    support fetching data either via direct connection to \
19                    MySQL, or from an XML pipe.
20
21homepage                    http://www.sphinxsearch.com
22master_sites            ${homepage}/downloads/
23checksums               sha1 8c739b96d756a50972c27c7004488b55d7458015
24
25depends_lib                 path:bin/mysql_config5:mysql5
26configure.args      --mandir=${prefix}/share/man \
27                    --datadir=${prefix}/share/doc \
28                    --sysconfdir=${prefix}/etc/sphinx \
29                            --with-mysql-includes=${prefix}/include/mysql5/mysql \
30                            --with-mysql-libs=${prefix}/lib/mysql5/mysql
31
32test.run            yes
33
34variant postgres conflicts postgresql83 postgresql84 description {Enable PostgreSQL support for old PgSQL 8.2} {
35    depends_lib-append      port:postgresql82
36    depends_lib-delete      path:bin/mysql_config5:mysql5
37    configure.args-append   --with-pgsql
38    configure.args-append   --with-pgsql-includes=${prefix}/include/postgresql82
39    configure.args-append   --with-pgsql-libs=${prefix}/lib/postgresql82
40    configure.args-delete   --with-mysql-includes
41}
42
43variant postgresql83 conflicts postgres postgresql84 description {Enable PostgreSQL support for newer PgSQL v8.3} {
44    depends_lib-append      port:postgresql83
45    depends_lib-delete      path:bin/mysql_config5:mysql5
46    configure.args-append   --with-pgsql
47    configure.args-append   --with-pgsql-includes=${prefix}/include/postgresql83
48    configure.args-append   --with-pgsql-libs=${prefix}/lib/postgresql83
49    configure.args-delete   --with-mysql-includes
50}
51
52variant postgresql84 conflicts postgres postgresql83 description {Enable PostgreSQL support for newer PgSQL v8.4} {
53    depends_lib-append      port:postgresql84
54    depends_lib-delete      path:bin/mysql_config5:mysql5
55    configure.args-append   --with-pgsql
56    configure.args-append   --with-pgsql-includes=${prefix}/include/postgresql84
57    configure.args-append   --with-pgsql-libs=${prefix}/lib/postgresql84
58    configure.args-delete   --with-mysql-includes
59}