Ticket #28722: Portfile.postgres90

File Portfile.postgres90, 3.4 KB (added by jason@…, 14 years ago)

complete portfile that includes postgresql90 support

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 67429 2010-05-09 13:56:57Z jmr@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 PostgreSQL, or from an XML pipe.
20
21homepage                    http://www.sphinxsearch.com/
22master_sites            ${homepage}downloads/
23checksums               sha1 8c739b96d756a50972c27c7004488b55d7458015 \
24                        rmd160 ed3cd1a9328114c1d2a6325cce5520065076c275
25
26depends_lib                 port:expat \
27                    port:libiconv
28
29configure.args      --mandir=${prefix}/share/man \
30                    --datadir=${prefix}/share/doc \
31                    --sysconfdir=${prefix}/etc/sphinx \
32                    --without-mysql \
33                    ac_cv_search_iconv=-liconv
34
35test.run            yes
36
37variant postgres conflicts postgresql83 postgresql84 postgresql90 description {Enable PostgreSQL support for old PgSQL 8.2} {
38    depends_lib-append      port:postgresql82
39    configure.args-append   --with-pgsql \
40                            --with-pgsql-includes=${prefix}/include/postgresql82 \
41                            --with-pgsql-libs=${prefix}/lib/postgresql82
42}
43
44variant postgresql83 conflicts postgres postgresql84 postgresql90 description {Enable PostgreSQL support for newer PgSQL v8.3} {
45    depends_lib-append      port:postgresql83
46    configure.args-append   --with-pgsql \
47                            --with-pgsql-includes=${prefix}/include/postgresql83 \
48                            --with-pgsql-libs=${prefix}/lib/postgresql83
49}
50
51variant postgresql84 conflicts postgres postgresql83 postgresql90 description {Enable PostgreSQL support for newer PgSQL v8.4} {
52    depends_lib-append      port:postgresql84
53    configure.args-append   --with-pgsql \
54                            --with-pgsql-includes=${prefix}/include/postgresql84 \
55                            --with-pgsql-libs=${prefix}/lib/postgresql84
56}
57
58variant postgresql90 conflicts postgres postgresql83 postgresql84 description {Enable PostgreSQL support for newer PgSQL v9.0} {
59    depends_lib-append      port:postgresql90
60    configure.args-append   --with-pgsql \
61                            --with-pgsql-includes=${prefix}/include/postgresql90 \
62                            --with-pgsql-libs=${prefix}/lib/postgresql90
63}
64
65
66variant mysql5 description {Enable MySQL 5 support} {
67    depends_lib-append      path:bin/mysql_config5:mysql5
68    configure.args-delete   --without-mysql
69    configure.args-append   --with-mysql-includes=${prefix}/include/mysql5/mysql \
70                                    --with-mysql-libs=${prefix}/lib/mysql5/mysql
71}
72
73if {![variant_isset postgres] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset mysql5]} {
74    default_variants +mysql5
75}