Ticket #16727: Portfile

File Portfile, 2.4 KB (added by pete@…, 11 years ago)

Updated Portfile adding PostgreSQL 8.4 support as well

Line 
1# $Id: Portfile 40407 2008-09-30 22:44:55Z brett@macports.org $
2
3PortSystem 1.0
4
5name                    sphinx
6version                 0.9.8.1
7revision    2
8categories              textproc net
9maintainers             brett@macports.org openmaintainer
10
11platforms               darwin
12description             Sphinx is a full-text search engine
13long_description        \
14Sphinx is a full-text search engine, meant to provide fast, size-efficient and relevant \
15fulltext search functions to other applications. Sphinx was specially designed to integrate \
16well with SQL databases and scripting languages. Currently built-in data sources \
17support fetching data either via direct connection to MySQL or PostgreSQL, or from an XML pipe.
18
19homepage                http://www.sphinxsearch.com
20master_sites            ${homepage}/downloads/
21distfiles               sphinx-${version}.tar.gz
22checksums               sha1 eed4c6f5b314f965c19cca8aebd0b6d847cd35f9
23
24configure.args  --mandir=${prefix}/share/man \
25                --datadir=${prefix}/share/doc \
26                --sysconfdir=${prefix}/etc/sphinx \
27                --without-mysql \
28                --without-pgsql
29
30default_variants +mysql
31
32test.run         yes
33
34variant 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
42variant 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
50variant 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
58variant 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}