1 | # $Id: Portfile 40407 2008-09-30 22:44:55Z brett@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name sphinx |
---|
6 | version 0.9.8.1 |
---|
7 | revision 2 |
---|
8 | categories textproc net |
---|
9 | maintainers brett@macports.org openmaintainer |
---|
10 | |
---|
11 | platforms darwin |
---|
12 | description Sphinx is a full-text search engine |
---|
13 | long_description \ |
---|
14 | Sphinx is a full-text search engine, meant to provide fast, size-efficient and relevant \ |
---|
15 | fulltext search functions to other applications. Sphinx was specially designed to integrate \ |
---|
16 | well with SQL databases and scripting languages. Currently built-in data sources \ |
---|
17 | support fetching data either via direct connection to MySQL or PostgreSQL, or from an XML pipe. |
---|
18 | |
---|
19 | homepage http://www.sphinxsearch.com |
---|
20 | master_sites ${homepage}/downloads/ |
---|
21 | distfiles sphinx-${version}.tar.gz |
---|
22 | checksums sha1 eed4c6f5b314f965c19cca8aebd0b6d847cd35f9 |
---|
23 | |
---|
24 | configure.args --mandir=${prefix}/share/man \ |
---|
25 | --datadir=${prefix}/share/doc \ |
---|
26 | --sysconfdir=${prefix}/etc/sphinx \ |
---|
27 | --without-mysql \ |
---|
28 | --without-pgsql |
---|
29 | |
---|
30 | default_variants +mysql |
---|
31 | |
---|
32 | test.run yes |
---|
33 | |
---|
34 | variant mysql description {Enable MySQL support} { |
---|
35 | depends_lib-append port:mysql5 |
---|
36 | configure.args-append --with-mysql |
---|
37 | configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql |
---|
38 | configure.args-append --with-mysql-libs=${prefix}/lib/mysql5/mysql |
---|
39 | configure.args-delete --without-mysql |
---|
40 | } |
---|
41 | |
---|
42 | variant postgresql82 description {Enable PostgreSQL 8.2 support} { |
---|
43 | depends_lib-append port:postgresql82 |
---|
44 | configure.args-append --with-pgsql |
---|
45 | configure.args-append --with-pgsql-includes=${prefix}/include/postgresql82 |
---|
46 | configure.args-append --with-pgsql-libs=${prefix}/lib/postgresql82 |
---|
47 | configure.args-delete --without-pgsql |
---|
48 | } |
---|
49 | |
---|
50 | variant postgresql83 description {Enable PostgreSQL 8.3 support} { |
---|
51 | depends_lib-append port:postgresql83 |
---|
52 | configure.args-append --with-pgsql |
---|
53 | configure.args-append --with-pgsql-includes=${prefix}/include/postgresql83 |
---|
54 | configure.args-append --with-pgsql-libs=${prefix}/lib/postgresql83 |
---|
55 | configure.args-delete --without-pgsql |
---|
56 | } |
---|
57 | |
---|
58 | variant postgresql84 description {Enable PostgreSQL 8.4 support} { |
---|
59 | depends_lib-append port:postgresql84 |
---|
60 | configure.args-append --with-pgsql |
---|
61 | configure.args-append --with-pgsql-includes=${prefix}/include/postgresql84 |
---|
62 | configure.args-append --with-pgsql-libs=${prefix}/lib/postgresql84 |
---|
63 | configure.args-delete --without-pgsql |
---|
64 | } |
---|