Ticket #25320: qt4-mac-Portfile.diff
File qt4-mac-Portfile.diff, 3.2 KB (added by michaelld (Michael Dickens), 14 years ago) |
---|
-
(a) Portfile_orig vs. (b) Portfile
a b 59 59 set dirname qt4-mac 60 60 set qt_dir ${prefix}/libexec/${dirname} 61 61 62 # use compiler.cflags and compiler.library_flags, as per 63 # http://trac.macports.org/ticket/25321 for all -I and -L entries, 64 # so-as to avoid conflicts with already-installed headers and 65 # libraries (giving preference to internal-to-this-port first) 66 # 62 67 # CPATH is used instead of -I to avoid conflicts with other ports. 63 68 # See http://trac.macports.org/ticket/15219 and http://trac.macports.org/ticket/18723. 64 69 # … … 70 75 # 71 76 configure.args \ 72 77 -v \ 73 - debug-and-release\78 -release \ 74 79 -confirm-license \ 75 80 -opensource \ 76 81 -prefix ${qt_dir} \ … … 81 86 -system-sqlite \ 82 87 -openssl-linked \ 83 88 -dbus-linked \ 84 -L${prefix}/lib \85 89 -arch \"${build_arch}\" 86 90 87 lappend cpath ${prefix}/include88 lappend library_path ${prefix}/lib89 90 pre-configure {91 configure.env-append \92 CPATH=[join ${cpath} :] \93 LIBRARY_PATH=[join ${library_path} :]94 }95 96 pre-build {97 build.env-append \98 CPATH=[join ${cpath} :] \99 LIBRARY_PATH=[join ${library_path} :]100 }101 102 91 # Stop configure script from searching for SQL Drivers 103 92 # not available from MacPorts. 104 93 foreach driver {db2 ibase oci tds} { … … 126 115 127 116 variant mysql description {Enable MySQL SQL Driver} { 128 117 depends_lib-append path:lib/mysql5:mysql5 129 130 lappend cpath ${prefix}/include/mysql5/mysql 131 lappend library_path ${prefix}/lib/mysql5/mysql 132 118 # reverse the search paths, such that the defaults are searched last 119 compiler.cpath ${prefix}/include/mysql5/mysql:${compiler.cpath} 120 compiler.library_path ${prefix}/lib/mysql5/mysql:${compiler.library_path} 133 121 configure.args-delete -no-sql-mysql 134 122 } 135 123 … … 140 128 141 129 variant psql description {Enable PostgreSQL SQL Driver} { 142 130 depends_lib-append port:postgresql83 143 144 lappend cpath ${prefix}/include/postgresql83 145 lappend library_path ${prefix}/lib/postgresql83 146 131 # reverse the search paths, such that the defaults are searched last 132 compiler.cpath ${prefix}/include/postgresql83:${compiler.cpath} 133 compiler.library_path ${prefix}/lib/postgresql83:${compiler.library_path} 147 134 configure.args-delete -no-sql-psql 148 135 } 149 136 … … 152 139 configure.args-delete -no-sql-sqlite2 153 140 } 154 141 142 variant debug conflicts combined description {Compile and Link with Debugging} { 143 configure.args-delete -release 144 configure.args-append -debug 145 } 146 147 variant combined conflicts debug description {Compile and Link with and without Debugging} { 148 configure.args-delete -release 149 configure.args-append -debug-and-release 150 } 151 155 152 build.target first 156 153 use_parallel_build yes 157 154