# -*- 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 PortGroup compiler_blacklist_versions 1.0 name firebird set v 2.5.2 set suffix 26540-0 version ${v}.${suffix} distname Firebird-${version} extract.suffix .tar.bz2 categories databases platforms darwin maintainers yahoo.fr:jul_bsd openmaintainer description Firebird SQL Database long_description Firebird is a relational database offering many \ ANSI SQL standard features that runs on Linux, \ Windows, and a variety of Unix platforms. \ Firebird offers excellent concurrency, high \ performance, and powerful language support for \ stored procedures and triggers. It has been \ used in production systems, under a variety of \ names, since 1981 and is common in embedded \ applications. homepage http://www.firebirdsql.org license based on Mozilla Public License master_sites sourceforge:project/firebird/firebird/${v}-Release/ checksums rmd160 cad7fef7f47263f4a6a53f3eb962649bf90bf9c8 \ sha256 bbb9a408198898818d5be3c301dde0f8524fd8e2f509662121d7393e02520721 use_bzip2 yes ## Firebird can't compiled w clang (w/o TLS): use mp-gcc depends_build port:libtool port:gmake compiler.blacklist clang #configure.compiler macports-gcc-4.9 configure.env LIBTOOLIZE=glibtoolize \ LIBTOOL=glibtool configure.args --mandir=${prefix}/share/man \ ## default compiler: "error: thread-local storage is unsupported for the current target" => better force recent gcc ## FIXME! need review to adjust blacklist #compiler.blacklist gcc-4.0 gcc-4.2 macports-gcc-4.2 macports-gcc-4.3 {clang < 500} #configure.compiler macports-gcc-4.9 configure.args --mandir=${prefix}/share/man \ --with-editline \ --with-fbbin=${prefix}/bin --with-fbsbin=${prefix}/sbin \ --with-fbconf=${prefix}/etc/firebird --with-fbdoc=${prefix}/share/firebird/doc \ --with-fbudf=${prefix}/share/examples/firebird/UDF --with-fbsample=${prefix}/share/examples/firebird \ --with-fbsample-db=${prefix}/share/examples/firebird/empbuild \ --with-fbintl=${prefix}/share/doc/firebird/intl \ --with-fbmisc=${prefix}/share/doc/firebird/misc \ --with-fbsecure-db=${prefix}/etc/firebird \ --with-fbmsg=${prefix}/etc/firebird \ --with-fblog=${prefix}/var/log/firebird \ --with-fbglock=${prefix}/var/log/firebird \ --with-fbplugins=${prefix}/share/doc/firebird ## for some reason, customizing CFLAGS,CPPFLAGS,LDFLAGS,LD_LIBRARY_PATH doesn't seem to work be it as configure.cflags or env ... go bad, but fall on another/different error... #configure.cxx ${prefix}/bin/g++-mp-4.9 -L${prefix}/lib post-configure { addgroup firebird add_users firebird gid=[existsgroup firebird] home=${prefix}/var/firebird shell=/sbin/nologin realname=Firebird\ DB\ user } build.cmd ${prefix}/bin/gmake startupitem.create yes startupitem.name fb_inet_server startupitem.executable "${prefix}/bin/fb_inet_server" startupitem.logfile ${prefix}/var/log/fb_inet_server.log startupitem.netchange yes destroot { xinstall -m 755 -d ${frameworks_dir}/ file copy ${worksrcpath}/gen/firebird/frameworks/Firebird.framework \ ${frameworks_dir}/ } default_variants +includedicu variant superserver description { use superserver configuration } { configure-append --enable-superserver } variant includedicu description { use Firebird internal ICU } conflicts systemicu { # configure.env-append LDFLAGS="-L${worksrcpath}/gen/firebird/lib" LD_LIBRARY_PATH="${worksrcpath}/gen/firebird/lib" ## NOK # configure.env-append LDFLAGS="-L../lib" ## NOK # configure.env-append LDFLAGS="-L${worksrcpath}/extern/icu/source/lib" ## NOK # configure.env-append LDFLAGS="-L${worksrcpath}/extern/icu/source/lib -search_paths_first" ## NOK # configure.env-append LDFLAGS="-L${worksrcpath}/extern/icu/source/stubdata" ## NOK # configure.env-append LDFLAGS="-L${worksrcpath}/extern/icu/source/lib -Wl,-search_paths_first" } variant systemicu description { use Macports ICU } conflicts includedicu { ## Note: recommendation seems to avoid using outside icu ## FIXME! conflict w previous variant or replace it configure.args-append --with-system-icu configure.env-append CXXFLAGS='-L${prefix}/lib' default_variants-delete +includedicu } variant clang description { fix to compile with clang } { post-patch { reinplace "s|MACOSX_DEPLOYMENT_TARGET=10.6|MACOSX_DEPLOYMENT_TARGET=10.7|" ${worksrcpath}/builds/posix/prefix.darwin_x86_64 reinplace "s|macosx-version-min=10.6|macosx-version-min=10.7|" ${worksrcpath}/builds/posix/prefix.darwin_x86_64 } } livecheck.type regex livecheck.url ${homepage}/en/server-packages/ livecheck.regex "Firebird-(\\d+\\.\\d+\\.\\d+\\.\\d+-\\d+).tar.bz2"