| 1 | # -*- 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 |
|---|
| 2 | # $Id$ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | PortGroup compiler_blacklist_versions 1.0 |
|---|
| 6 | |
|---|
| 7 | #distname firebirdsql |
|---|
| 8 | name Firebird |
|---|
| 9 | set v 2.5.2 |
|---|
| 10 | set suffix 26540-0 |
|---|
| 11 | version ${v}.${suffix} |
|---|
| 12 | categories databases |
|---|
| 13 | platforms darwin |
|---|
| 14 | maintainers nomaintainer |
|---|
| 15 | description Firebird SQL Database |
|---|
| 16 | long_description Firebird is a relational database offering many \ |
|---|
| 17 | ANSI SQL standard features that runs on Linux, \ |
|---|
| 18 | Windows, and a variety of Unix platforms. \ |
|---|
| 19 | Firebird offers excellent concurrency, high \ |
|---|
| 20 | performance, and powerful language support for \ |
|---|
| 21 | stored procedures and triggers. It has been \ |
|---|
| 22 | used in production systems, under a variety of \ |
|---|
| 23 | names, since 1981 and is common in embedded \ |
|---|
| 24 | applications. |
|---|
| 25 | |
|---|
| 26 | homepage http://www.firebirdsql.org |
|---|
| 27 | license based on Mozilla Public License |
|---|
| 28 | master_sites sourceforge:project/firebird/firebird/${v}-Release/ |
|---|
| 29 | checksums rmd160 cad7fef7f47263f4a6a53f3eb962649bf90bf9c8 \ |
|---|
| 30 | sha256 bbb9a408198898818d5be3c301dde0f8524fd8e2f509662121d7393e02520721 |
|---|
| 31 | use_bzip2 yes |
|---|
| 32 | |
|---|
| 33 | ## Firebird can't compiled w clang (w/o TLS) |
|---|
| 34 | depends_build port:gcc49 port:gmake port:icu |
|---|
| 35 | ## default compiler: "error: thread-local storage is unsupported for the current target" => better force recent gcc |
|---|
| 36 | #compiler.blacklist gcc-4.0 gcc-4.2 macports-gcc-4.2 macports-gcc-4.3 {clang < 500} |
|---|
| 37 | configure.compiler macports-gcc-4.9 |
|---|
| 38 | configure.args --mandir=${prefix}/share/man \ |
|---|
| 39 | --with-editline \ |
|---|
| 40 | --with-fbbin=${prefix}/bin --with-fbsbin=${prefix}/sbin \ |
|---|
| 41 | --with-fbconf=${prefix}/etc/firebird --with-fbdoc=${prefix}/share/firebird/doc \ |
|---|
| 42 | --with-fbudf=${prefix}/share/examples/firebird/UDF --with-fbsample=${prefix}/share/examples/firebird \ |
|---|
| 43 | --with-fbsample-db=${prefix}/share/examples/firebird/empbuild \ |
|---|
| 44 | --with-fbintl=${prefix}/share/doc/firebird/intl \ |
|---|
| 45 | --with-fbmisc=${prefix}/share/doc/firebird/misc \ |
|---|
| 46 | --with-fbsecure-db=${prefix}/etc/firebird \ |
|---|
| 47 | --with-fbmsg=${prefix}/etc/firebird \ |
|---|
| 48 | --with-fblog=${prefix}/var/log/firebird \ |
|---|
| 49 | --with-fbglock=${prefix}/var/log/firebird \ |
|---|
| 50 | --with-fbplugins=${prefix}/share/doc/firebird |
|---|
| 51 | ## Note: recommendation seems to avoid using outside icu |
|---|
| 52 | # --with-system-icu \ |
|---|
| 53 | |
|---|
| 54 | ## 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... |
|---|
| 55 | #configure.cxx ${prefix}/bin/g++-mp-4.9 -L${prefix}/lib |
|---|
| 56 | |
|---|
| 57 | build.cmd ${prefix}/bin/gmake |
|---|
| 58 | |
|---|
| 59 | startupitem.create yes |
|---|
| 60 | startupitem.name fb_inet_server |
|---|
| 61 | startupitem.executable "${prefix}/bin/fb_inet_server" |
|---|
| 62 | startupitem.logfile ${prefix}/var/log/fb_inet_server.log |
|---|
| 63 | startupitem.netchange yes |
|---|
| 64 | |
|---|
| 65 | destroot { |
|---|
| 66 | xinstall -m 755 -d ${frameworks_dir}/ |
|---|
| 67 | file copy ${worksrcpath}/gen/firebird/frameworks/Firebird.framework \ |
|---|
| 68 | ${frameworks_dir}/ |
|---|
| 69 | } |
|---|
| 70 | |
|---|
| 71 | variant superserver { |
|---|
| 72 | configure-append --enable-superserver |
|---|
| 73 | } |
|---|
| 74 | |
|---|
| 75 | |
|---|