# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name sphinx version 2.0.6 revision 1 categories textproc net license GPL-2 platforms darwin maintainers nomaintainer description Sphinx is a full-text search engine long_description Sphinx is a full-text search engine, meant to provide \ fast, size-efficient and relevant fulltext search \ functions to other applications. Sphinx was specially \ designed to integrate well with SQL databases and \ scripting languages. Currently built-in data sources \ support fetching data either via direct connection to \ MySQL or PostgreSQL, or from an XML pipe. homepage http://sphinxsearch.com/ master_sites ${homepage}files/ distname ${name}-${version}-release checksums rmd160 6fd53230457e62a6aabcb5321265abd8ea324cf6 \ sha256 de943c397efda706661b3a12e12e9f8cc8a03bf6c02c5a6ba967a06384feede2 if {${name} == ${subport}} { depends_lib port:expat \ port:libiconv patchfiles endian.patch configure.args --datadir=${prefix}/share/doc \ --sysconfdir=${prefix}/etc/sphinx \ --without-mysql \ --without-unixodbc test.run yes variant postgres requires postgresql82 description {Legacy compatibility variant} {} variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 description {Enable PostgreSQL 8.2 support} { depends_lib-append port:postgresql82 configure.args-append --with-pgsql \ --with-pgsql-includes=${prefix}/include/postgresql82 \ --with-pgsql-libs=${prefix}/lib/postgresql82 } variant postgresql83 conflicts postgresql82 postgresql84 postgresql90 postgresql91 postgresql92 description {Enable PostgreSQL 8.3 support} { depends_lib-append port:postgresql83 configure.args-append --with-pgsql \ --with-pgsql-includes=${prefix}/include/postgresql83 \ --with-pgsql-libs=${prefix}/lib/postgresql83 } variant postgresql84 conflicts postgresql82 postgresql83 postgresql90 postgresql91 postgresql92 description {Enable PostgreSQL 8.4 support} { depends_lib-append port:postgresql84 configure.args-append --with-pgsql \ --with-pgsql-includes=${prefix}/include/postgresql84 \ --with-pgsql-libs=${prefix}/lib/postgresql84 } variant postgresql90 conflicts postgresql82 postgresql83 postgresql84 postgresql91 postgresql92 description {Enable PostgreSQL 9.0 support} { depends_lib-append port:postgresql90 configure.args-append --with-pgsql \ --with-pgsql-includes=${prefix}/include/postgresql90 \ --with-pgsql-libs=${prefix}/lib/postgresql90 } variant postgresql91 conflicts postgresql82 postgresql83 postgresql84 postgresql90 postgresql92 description {Enable PostgreSQL 9.1 support} { depends_lib-append port:postgresql91 configure.args-append --with-pgsql \ --with-pgsql-includes=${prefix}/include/postgresql91 \ --with-pgsql-libs=${prefix}/lib/postgresql91 } variant postgresql92 conflicts postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {Enable PostgreSQL 9.2 support} { depends_lib-append port:postgresql92 configure.args-append --with-pgsql \ --with-pgsql-includes=${prefix}/include/postgresql92 \ --with-pgsql-libs=${prefix}/lib/postgresql92 } variant mysql5 conflicts mysql51 mysql55 mariadb percona description {Enable MySQL 5 support} { depends_lib-append path:bin/mysql_config5:mysql5 configure.args-delete --without-mysql configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql \ --with-mysql-libs=${prefix}/lib/mysql5/mysql } variant mysql51 conflicts mysql5 mysql55 mariadb percona description {Enable MySQL 5.1 support} { depends_lib-append port:mysql51 configure.args-delete --without-mysql configure.args-append --with-mysql-includes=${prefix}/include/mysql51/mysql \ --with-mysql-libs=${prefix}/lib/mysql51/mysql } variant mysql55 conflicts mysql5 mysql51 mariadb percona description {Enable MySQL 5.5 support} { depends_lib-append port:mysql55 configure.args-delete --without-mysql configure.args-append --with-mysql-includes=${prefix}/include/mysql55/mysql \ --with-mysql-libs=${prefix}/lib/mysql55/mysql } variant mariadb conflicts mysql5 mysql51 mysql55 percona description {Enable MariaDB support} { depends_lib-append port:mariadb configure.args-delete --without-mysql configure.args-append --with-mysql-includes=${prefix}/include/mariadb/mysql \ --with-mysql-libs=${prefix}/lib/mariadb/mysql } variant percona conflicts mysql5 mysql51 mysql55 mariadb description {Enable Percona support} { depends_lib-append port:percona configure.args-delete --without-mysql configure.args-append --with-mysql-includes=${prefix}/include/percona/mysql \ --with-mysql-libs=${prefix}/lib/percona/mysql } if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mariadb] && ![variant_isset percona]} { default_variants +mysql5 } livecheck.type regex livecheck.url ${homepage}downloads/release/ livecheck.regex ${name}-(\[0-9.\]+)-release${extract.suffix} } else { livecheck.type none } subport libsphinxclient { license LGPL-2 description C library to talk to the Sphinx full-text search engine long_description ${description} worksrcdir ${worksrcdir}/api/${subport} # build shared library too use_autoreconf yes use_parallel_build no }