# -*- 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.2.4 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 44d282421b62bbeb7dc269849bcc366bd16722a9 \ sha256 c76a88789ca1d7d86df9869718ad217ae8a72740b9e84f2b98b61fa47feb64ef if {${name} eq ${subport}} { depends_lib port:expat \ port:libiconv post-extract { # Copy launchd plists to worksrcpath file copy ${filespath}/org.macports.${name}.plist ${worksrcpath}/org.macports.${name}.plist } #patchfiles endian.patch post-patch { reinplace "s|@NAME@|${name}|g" ${worksrcpath}/org.macports.${name}.plist reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/org.macports.${name}.plist } configure.args --datadir=${prefix}/share/doc \ --sysconfdir=${prefix}/etc/${name} \ --localstatedir=${prefix}/var/${name} \ --without-mysql \ --without-unixodbc destroot.keepdirs ${destroot}${prefix}/var/${name}/data \ ${destroot}${prefix}/var/${name}/log post-destroot { file mkdir ${destroot}${prefix}/share/${name} copy ${worksrcpath}/api \ ${destroot}${prefix}/share/${name}/api file mkdir ${destroot}${prefix}/var/${name}/data file mkdir ${destroot}${prefix}/var/${name}/log file mkdir ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${name} file copy ${worksrcpath}/org.macports.${name}.plist \ ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${name}/ } post-activate { if {![file exists ${prefix}/etc/${name}/${name}.conf]} { copy ${prefix}/etc/${name}/${name}.conf.dist \ ${prefix}/etc/${name}/${name}.conf } } startupitem.create yes startupitem.executable ${prefix}/bin/searchd --nodetach test.run yes variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 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 postgresql93 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 postgresql93 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 postgresql93 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 postgresql93 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 postgresql93 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 postgresql93 conflicts postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 postgresql92 description {Enable PostgreSQL 9.3 support} { depends_lib-append port:postgresql93 configure.args-append --with-pgsql \ --with-pgsql-includes=${prefix}/include/postgresql93 \ --with-pgsql-libs=${prefix}/lib/postgresql93 } variant mysql5 conflicts mysql51 mysql55 mysql56 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 mysql56 mariadb percona description {Enable MySQL 5.1 support} { depends_lib-append port:mysql51 configure.args-delete --without-mysql configure.args-append --with-mysql=${prefix}/lib/mysql51 } variant mysql55 conflicts mysql5 mysql51 mysql56 mariadb percona description {Enable MySQL 5.5 support} { depends_lib-append port:mysql55 configure.args-delete --without-mysql configure.args-append --with-mysql=${prefix}/lib/mysql55 } variant mysql56 conflicts mysql5 mysql51 mysql55 mariadb percona description {Enable MySQL 5.6 support} { depends_lib-append port:mysql56 configure.args-delete --without-mysql configure.args-append --with-mysql=${prefix}/lib/mysql56 } 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=${prefix}/lib/mariadb } 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=${prefix}/lib/percona } if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset postgresql93] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mysql56] && ![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 }