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

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

TOra: revbump and apply upstream patch to rebuild with oracle-instantclient 11 which now allows 64-bit builds even on Lion and up (#37880); disable silent build rules (#38234)

  • 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 104523 2013-03-27 00:35:15Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               qt4 1.0
6
7name                    TOra
8version                 2.1.3
9revision                4
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-cmake-modules-FindOracle.cmake.diff \
31                        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                        -DCMAKE_VERBOSE_MAKEFILE=ON \
39                        -DUSE_PCH=0 \
40                        -Dmacports_prefix=${prefix} \
41                        -DWANT_BUNDLE=1 \
42                        -DWANT_BUNDLE_STANDALONE=0 \
43                        -DWANT_RPM=0 \
44                        -DWANT_INTERNAL_QSCINTILLA=0 \
45                        -DENABLE_DB2=0 \
46                        -DENABLE_ORACLE=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
88# Legacy no_oracle variant to be removed after October 2013.
89variant no_oracle conflicts oracle description {Legacy compatibility variant} {}
90variant oracle conflicts no_oracle description {Enable support for Oracle} {
91    depends_lib-append          port:oracle-instantclient
92    configure.args-delete       -DENABLE_ORACLE=0
93    configure.args-append       -DENABLE_ORACLE=1 \
94                                -DORACLE_PATH_INCLUDES=${prefix}/lib/oracle/sdk/include \
95                                -DORACLE_PATH_LIB=${prefix}/lib/oracle \
96}
97if {[variant_isset no_oracle]} {
98    default_variants -oracle
99} else {
100    default_variants +oracle
101}
102
103#
104# Debug
105variant debug description {provide a debug build in case of difficulties} {
106    configure.pre_args-append   -DWANT_DEBUG=1
107}
108
109destroot {
110    file copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir}
111}
Note: See TracBrowser for help on using the repository browser.