source: trunk/dports/aqua/TOra/Portfile

Last change on this file was 144099, checked in by khindenburg@…, 19 months ago

TOra: add license from COPYING and README files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 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 144099 2016-01-01 18:19:43Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               qt4 1.0
6PortGroup               cmake 1.0
7
8name                    TOra
9version                 2.1.3
10revision                4
11license                 GPL-2
12description             GUI tool for Oracle, PostgreSQL, and MySQL
13long_description        Database developer/DBA frontend for various DB servers.
14maintainers             pvanek openmaintainer
15categories              aqua databases
16platforms               macosx
17homepage                http://torasql.com/
18master_sites            sourceforge:tora
19distname                tora-${version}
20
21checksums               md5     ea4a75a9daeaf58492413e3f7fe40293 \
22                        sha1    d33ea3bafb09c5382ef4e0cb0e8ca4ed848a9155 \
23                        rmd160  084d90c94184939e24ac94109ff7940a33bed1d7
24
25depends_build           port:cmake
26
27depends_lib             port:qscintilla
28
29patchfiles              patch-cmake-modules-FindOracle.cmake.diff \
30                        patch-osx_tools-Info.plist.in.diff
31
32configure.pre_args      -DCMAKE_INSTALL_PREFIX=${prefix}/tmprelease/
33# -Dmacports_prefix is there due to the patch for the Info.plist file
34configure.args-append   -DUSE_PCH=0 \
35                         -Dmacports_prefix=${prefix} \
36                         -DWANT_BUNDLE=1 \
37                         -DWANT_BUNDLE_STANDALONE=0 \
38                         -DWANT_RPM=0 \
39                         -DWANT_INTERNAL_QSCINTILLA=0 \
40                         -DENABLE_DB2=0 \
41                         -DENABLE_ORACLE=0 \
42                         ${qt_cmake_defines} .
43
44
45#
46# Postgresql - it should follow qt4-mac variants for this DB
47variant psql83 conflicts psql84 psql90 psql91 \
48description {Enable Postgre SQL Driver version 8.3} {}
49
50variant psql84 conflicts psql83 psql90 psql91 \
51description {Enable Postgre SQL Driver version 8.4} {}
52
53variant psql90 conflicts psql83 psql84 psql91 \
54description {Enable Postgre SQL Driver version 9.0} {}
55
56variant psql91 conflicts psql83 psql84 psql90 \
57description {Enable Postgre SQL Driver version 9.1} {}
58
59set psql_version ""
60if {[variant_isset psql83]} {
61    set psql_version "83"
62} elseif {[variant_isset psql84]} {
63    set psql_version "84"
64} elseif {[variant_isset psql90]} {
65    set psql_version "90"
66} elseif {[variant_isset psql91]} {
67    set psql_version "91"
68}
69
70if {${psql_version} != ""} {
71    depends_lib-append port:postgresql${psql_version}
72    lunshift header_path ${prefix}/include/postgresql${psql_version}
73    lunshift library_path ${prefix}/lib/postgresql${psql_version}
74    configure.pre_args-append   -DENABLE_PGSQL=1 \
75                                -DPOSTGRESQL_PATH_INCLUDES=${prefix}/include/postgresql${psql_version} \
76                                -DPOSTGRESQL_PATH_LIB=${prefix}/lib/postgresql${psql_version}
77} else {
78    configure.pre_args-append   -DENABLE_PGSQL=0
79}
80
81#
82# Oracle
83variant oracle description {Enable support for Oracle} {
84    depends_lib-append          port:oracle-instantclient
85    configure.args-delete       -DENABLE_ORACLE=0
86    configure.args-append       -DENABLE_ORACLE=1 \
87                                -DORACLE_PATH_INCLUDES=${prefix}/lib/oracle/sdk/include \
88                                -DORACLE_PATH_LIB=${prefix}/lib/oracle \
89}
90
91default_variants +oracle
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}
102
Note: See TracBrowser for help on using the repository browser.