source: trunk/dports/aqua/TOra/Portfile @ 98249

Last change on this file since 98249 was 98249, checked in by ryandesign@…, 7 years ago

TOra: change no_oracle variant into oracle variant; build 32-bit on Lion and up when oracle variant is selected to avoid crash (#36260)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 98249 2012-10-01 00:45:56Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               qt4 1.0
6
7name                    TOra
8version                 2.1.3
9revision                3
10description             GUI tool for Oracle, PostgreSQL, and MySQL
11long_description        Database developer/DBA frontend for various DB servers.
12maintainers             scribus.info:petr
13categories              aqua databases
14platforms               macosx
15homepage                http://torasql.com/
16master_sites            sourceforge:tora
17distname                tora-${version}
18
19checksums               md5     ea4a75a9daeaf58492413e3f7fe40293 \
20                        sha1    d33ea3bafb09c5382ef4e0cb0e8ca4ed848a9155 \
21                        rmd160  084d90c94184939e24ac94109ff7940a33bed1d7
22
23depends_build           port:cmake
24
25# WARNING: postgresql83 is there due to qt4-mac's dependency on it.
26# It's dangerous to mix library versions in one binary. It's required
27# to spot qt4-mac's dependencies' version bumps.
28depends_lib             port:qscintilla
29
30patchfiles              patch-osx_tools-Info.plist.in.diff
31
32configure.cmd           cmake
33configure.pre_args      -DCMAKE_INSTALL_PREFIX=${prefix}/tmprelease/
34# -Dmacports_prefix is there due to the patch for the Info.plist file
35configure.args          -DCMAKE_LIBRARY_PATH=${prefix}/lib \
36                        -DCMAKE_INCLUDE_PATH=${prefix}/include \
37                        -DUSE_PCH=0 \
38                        -Dmacports_prefix=${prefix} \
39                        -DWANT_BUNDLE=1 \
40                        -DWANT_BUNDLE_STANDALONE=0 \
41                        -DWANT_RPM=0 \
42                        -DWANT_INTERNAL_QSCINTILLA=0 \
43                        -DENABLE_DB2=0 \
44                        -DENABLE_ORACLE=0 \
45                        ${qt_cmake_defines} .
46
47
48#
49# Postgresql - it should follow qt4-mac variants for this DB
50variant psql83 conflicts psql84 psql90 psql91 \
51description {Enable Postgre SQL Driver version 8.3} {}
52
53variant psql84 conflicts psql83 psql90 psql91 \
54description {Enable Postgre SQL Driver version 8.4} {}
55
56variant psql90 conflicts psql83 psql84 psql91 \
57description {Enable Postgre SQL Driver version 9.0} {}
58
59variant psql91 conflicts psql83 psql84 psql90 \
60description {Enable Postgre SQL Driver version 9.1} {}
61
62set psql_version ""
63if {[variant_isset psql83]} {
64    set psql_version "83"
65} elseif {[variant_isset psql84]} {
66    set psql_version "84"
67} elseif {[variant_isset psql90]} {
68    set psql_version "90"
69} elseif {[variant_isset psql91]} {
70    set psql_version "91"
71}
72
73if {${psql_version} != ""} {
74    depends_lib-append port:postgresql${psql_version}
75    lunshift header_path ${prefix}/include/postgresql${psql_version}
76    lunshift library_path ${prefix}/lib/postgresql${psql_version}
77    configure.pre_args-append   -DENABLE_PGSQL=1 \
78                                -DPOSTGRESQL_PATH_INCLUDES=${prefix}/include/postgresql${psql_version} \
79                                -DPOSTGRESQL_PATH_LIB=${prefix}/lib/postgresql${psql_version}
80} else {
81    configure.pre_args-append   -DENABLE_PGSQL=0
82}
83
84#
85# Oracle
86variant no_oracle conflicts oracle description {Legacy compatibility variant} {}
87variant oracle conflicts no_oracle description {Enable support for Oracle} {
88    depends_lib-append          port:oracle-instantclient
89    configure.args-delete       -DENABLE_ORACLE=0
90    configure.args-append       -DENABLE_ORACLE=1 \
91                                -DORACLE_PATH_INCLUDES=${prefix}/lib/oracle/sdk/include \
92                                -DORACLE_PATH_LIB=${prefix}/lib/oracle \
93}
94if {[variant_isset no_oracle]} {
95    default_variants -oracle
96} else {
97    default_variants +oracle
98}
99if {[variant_isset oracle] && ${os.platform} == "darwin" && ${os.major} > 10} {
100    # oracle-instantclient 10.2.0.4.0 crashes in 64-bit mode on Lion and up.
101    supported_archs i386
102}
103
104#
105# Debug
106variant debug description {provide a debug build in case of difficulties} {
107    configure.pre_args-append   -DWANT_DEBUG=1
108}
109
110destroot {
111    file copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir}
112}
Note: See TracBrowser for help on using the repository browser.