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

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

TOra: maintainer update for changes in qt4-mac; see #27229

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 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 73309 2010-11-10 01:36:26Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               qt4 1.0
6
7name                    TOra
8version                 2.1.3
9revision                2
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                        port:oracle-instantclient
30
31patchfiles              patch-osx_tools-Info.plist.in.diff
32
33configure.cmd           cmake
34configure.pre_args      -DCMAKE_INSTALL_PREFIX=${prefix}/tmprelease/
35# -Dmacports_prefix is there due to the patch for the Info.plist file
36configure.args          -DCMAKE_LIBRARY_PATH=${prefix}/lib \
37                        -DCMAKE_INCLUDE_PATH=${prefix}/include \
38                        -DUSE_PCH=0 \
39                        -Dmacports_prefix=${prefix} \
40                        -DORACLE_PATH_INCLUDES=${prefix}/lib/oracle/sdk/include \
41                        -DORACLE_PATH_LIB=${prefix}/lib/oracle \
42                        -DWANT_BUNDLE=1 \
43                        -DWANT_BUNDLE_STANDALONE=0 \
44                        -DWANT_RPM=0 \
45                        -DWANT_INTERNAL_QSCINTILLA=0 \
46                        -DENABLE_DB2=0 \
47                        ${qt_cmake_defines} .
48
49
50#
51# Postgresql - it should follow qt4-mac variants for this DB
52variant psql83 conflicts psql84 psql90 psql91 \
53description {Enable Postgre SQL Driver version 8.3} {}
54
55variant psql84 conflicts psql83 psql90 psql91 \
56description {Enable Postgre SQL Driver version 8.4} {}
57
58variant psql90 conflicts psql83 psql84 psql91 \
59description {Enable Postgre SQL Driver version 9.0} {}
60
61variant psql91 conflicts psql83 psql84 psql90 \
62description {Enable Postgre SQL Driver version 9.1} {}
63
64set psql_version ""
65if {[variant_isset psql83]} {
66    set psql_version "83"
67} elseif {[variant_isset psql84]} {
68    set psql_version "84"
69} elseif {[variant_isset psql90]} {
70    set psql_version "90"
71} elseif {[variant_isset psql91]} {
72    set psql_version "91"
73}
74
75if {${psql_version} != ""} {
76    depends_lib-append port:postgresql${psql_version}
77    lunshift header_path ${prefix}/include/postgresql${psql_version}
78    lunshift library_path ${prefix}/lib/postgresql${psql_version}
79    configure.pre_args-append   -DENABLE_PGSQL=1 \
80                                -DPOSTGRESQL_PATH_INCLUDES=${prefix}/include/postgresql${psql_version} \
81                                -DPOSTGRESQL_PATH_LIB=${prefix}/lib/postgresql${psql_version}
82} else {
83    configure.pre_args-append   -DENABLE_PGSQL=0
84}
85
86#
87# Oracle
88variant no_oracle description {Disable support for Oracle} {
89    depends_lib-delete          port:oracle-instantclient
90    configure.pre_args-append   -DENABLE_ORACLE=0
91}
92
93#
94# Debug
95variant debug description {provide a debug build in case of difficulties} {
96    configure.pre_args-append   -DWANT_DEBUG=1
97}
98
99destroot {
100    file copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir}
101}
Note: See TracBrowser for help on using the repository browser.