Ticket #42128: Portfile.2

File Portfile.2, 3.0 KB (added by jul_bsd@…, 10 years ago)
Line 
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
4PortSystem              1.0
5PortGroup               compiler_blacklist_versions 1.0 
6
7#distname               firebirdsql
8name                    Firebird
9set v                   2.5.2
10set suffix              26540-0
11version                 ${v}.${suffix}
12categories              databases
13platforms               darwin
14maintainers             nomaintainer
15description             Firebird SQL Database
16long_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
26homepage                http://www.firebirdsql.org
27license                 based on Mozilla Public License
28master_sites            sourceforge:project/firebird/firebird/${v}-Release/
29checksums           rmd160  cad7fef7f47263f4a6a53f3eb962649bf90bf9c8 \
30                    sha256  bbb9a408198898818d5be3c301dde0f8524fd8e2f509662121d7393e02520721
31use_bzip2               yes
32
33## Firebird can't compiled w clang (w/o TLS)
34depends_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}
37configure.compiler      macports-gcc-4.9
38configure.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
57build.cmd               ${prefix}/bin/gmake
58
59startupitem.create      yes
60startupitem.name        fb_inet_server
61startupitem.executable  "${prefix}/bin/fb_inet_server"
62startupitem.logfile     ${prefix}/var/log/fb_inet_server.log
63startupitem.netchange   yes
64
65destroot {
66        xinstall -m 755 -d ${frameworks_dir}/
67        file copy ${worksrcpath}/gen/firebird/frameworks/Firebird.framework \
68                ${frameworks_dir}/
69}
70
71variant superserver {
72        configure-append        --enable-superserver
73}
74
75