Ticket #22245: Portfile

File Portfile, 2.0 KB (added by petr@…, 15 years ago)

initial revision

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$
3
4PortSystem          1.0
5
6name                TOra
7version             2.1.1
8revision            1
9description         GUI tool for Oracle, PostgreSQL, and MySQL
10long_description        Database developer/DBA frontend for varous DB servers.
11maintainers             scribus.info:petr
12categories              aqua databases
13platforms               macosx
14homepage                http://www.torasql.com
15master_sites        sourceforge:tora
16distname                tora-${version}
17
18checksums           md5     6a25c8f62a70f368f16126103d54be7d \
19                    sha1    61a2471fd9bac2578e6fa556f98d90976ea3ef9d \
20                    rmd160  1f81d512480fdfba2d66e2cd8665da8ab70d2de3
21
22#use_bzip2           yes
23
24depends_build       port:cmake
25
26# WARNING: pgsql83 is there due qt4's deps on it. It's dangerous to mix
27# libraries version in one binary. It's required to spot Qt4's deps version
28# bumps.
29depends_lib     port:postgresql83    \
30                        port:qt4-mac    \
31                        port:qscintilla \
32                    port:oracle-instantclient
33
34configure.cmd       cmake
35configure.pre_args  -DCMAKE_INSTALL_PREFIX=${prefix}/tmprelease/ \
36                    -DORACLE_PATH_INCLUDES=${prefix}/lib/oracle/sdk/include \
37                    -DORACLE_PATH_LIB=${prefix}/lib/oracle \
38                    -DPOSTGRESQL_PATH_INCLUDES=${prefix}/include/postgresql83 \
39                    -DPOSTGRESQL_PATH_LIB=${prefix}/lib/postgresql83 \
40                        -DWANT_BUNDLE=1 \
41                    -DWANT_BUNDLE_STANDALONE=1 \
42                    -DWANT_RPM=0
43configure.args      -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake .
44
45variant nopgsql description {Disable native PostgreSQL support} {
46        depends_lib-delete      port:postgresql83
47        configure.pre_args-append       -DENABLE_PGSQL=0
48}
49
50variant nooracle description {Disable support for Oracle} {
51        depends_lib-delete      port:oracle-instantclient
52        configure.pre_args-append       -DENABLE_ORACLE=0
53}
54
55variant debug description {provide a debug build in case of difficulties} {
56        configure.pre_args-append       -DWANT_DEBUG=1
57}
58
59destroot {
60        file copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir}
61}
62