Ticket #27229: tora-qt4-mac.diff
File tora-qt4-mac.diff, 3.6 KB (added by petr@…, 14 years ago) |
---|
-
Portfile
old new 6 6 7 7 name TOra 8 8 version 2.1.3 9 revision 19 revision 2 10 10 description GUI tool for Oracle, PostgreSQL, and MySQL 11 11 long_description Database developer/DBA frontend for various DB servers. 12 12 maintainers scribus.info:petr … … 25 25 # WARNING: postgresql83 is there due to qt4-mac's dependency on it. 26 26 # It's dangerous to mix library versions in one binary. It's required 27 27 # to spot qt4-mac's dependencies' version bumps. 28 depends_lib port:postgresql83 \ 29 port:qscintilla \ 28 depends_lib port:qscintilla \ 30 29 port:oracle-instantclient 31 30 32 31 patchfiles patch-osx_tools-Info.plist.in.diff … … 36 35 # -Dmacports_prefix is there due to the patch for the Info.plist file 37 36 configure.args -DCMAKE_LIBRARY_PATH=${prefix}/lib \ 38 37 -DCMAKE_INCLUDE_PATH=${prefix}/include \ 38 -DUSE_PCH=0 \ 39 39 -Dmacports_prefix=${prefix} \ 40 40 -DORACLE_PATH_INCLUDES=${prefix}/lib/oracle/sdk/include \ 41 41 -DORACLE_PATH_LIB=${prefix}/lib/oracle \ 42 -DPOSTGRESQL_PATH_INCLUDES=${prefix}/include/postgresql83 \43 -DPOSTGRESQL_PATH_LIB=${prefix}/lib/postgresql83 \44 42 -DWANT_BUNDLE=1 \ 45 -DWANT_BUNDLE_STANDALONE= 1\43 -DWANT_BUNDLE_STANDALONE=0 \ 46 44 -DWANT_RPM=0 \ 47 45 -DWANT_INTERNAL_QSCINTILLA=0 \ 48 46 -DENABLE_DB2=0 \ 49 47 ${qt_cmake_defines} . 50 48 51 # qscintilla is not universal52 universal_variant no53 49 54 variant no_pgsql description {Disable native PostgreSQL support} { 55 depends_lib-delete port:postgresql83 50 # 51 # Postgresql - it should follow qt4-mac variants for this DB 52 variant psql83 conflicts psql84 psql90 psql91 \ 53 description {Enable Postgre SQL Driver version 8.3} {} 54 55 variant psql84 conflicts psql83 psql90 psql91 \ 56 description {Enable Postgre SQL Driver version 8.4} {} 57 58 variant psql90 conflicts psql83 psql84 psql91 \ 59 description {Enable Postgre SQL Driver version 9.0} {} 60 61 variant psql91 conflicts psql83 psql84 psql90 \ 62 description {Enable Postgre SQL Driver version 9.1} {} 63 64 set psql_version "" 65 if {[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 75 if {${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 { 56 83 configure.pre_args-append -DENABLE_PGSQL=0 57 84 } 58 85 86 # 87 # Oracle 59 88 variant no_oracle description {Disable support for Oracle} { 60 89 depends_lib-delete port:oracle-instantclient 61 90 configure.pre_args-append -DENABLE_ORACLE=0 62 91 } 63 92 93 # 94 # Debug 64 95 variant debug description {provide a debug build in case of difficulties} { 65 96 configure.pre_args-append -DWANT_DEBUG=1 66 97 }