[44202] trunk/dports/aqua/qt4-mac/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Tue Dec 23 12:23:41 PST 2008


Revision: 44202
          http://trac.macports.org/changeset/44202
Author:   mcalhoun at macports.org
Date:     2008-12-23 12:23:41 -0800 (Tue, 23 Dec 2008)
Log Message:
-----------
qt4-mac: Add build dependency on pkgconfig.
Use MacPorts unixODBC.

Modified Paths:
--------------
    trunk/dports/aqua/qt4-mac/Portfile

Modified: trunk/dports/aqua/qt4-mac/Portfile
===================================================================
--- trunk/dports/aqua/qt4-mac/Portfile	2008-12-23 20:18:38 UTC (rev 44201)
+++ trunk/dports/aqua/qt4-mac/Portfile	2008-12-23 20:23:41 UTC (rev 44202)
@@ -21,6 +21,8 @@
                     sha1 00cdf6df27a590565f557a7c02ba2edc634354d1 \
                     rmd160 7c39303f7aef6a369a16e787681b78d07c59fc76
 
+depends_build       port:pkgconfig
+
 depends_lib                                \
     port:zlib                              \
     port:tiff                              \
@@ -28,6 +30,7 @@
     port:libmng                            \
     port:jpeg                              \
     port:dbus                              \
+    port:unixODBC                          \
     port:mysql5                            \
     port:postgresql83                      \
     port:openssl                           \
@@ -109,6 +112,10 @@
     reinplace -E "s|^I_FLAGS=\$|I_FLAGS=-isystem${prefix}/include|" \
         ${worksrcpath}/configure
 
+    # ensure that the MacPorts odbc is used
+    reinplace "s|-liodbc|-lodbc|" \
+        ${worksrcpath}/src/plugins/sqldrivers/odbc/odbc.pro
+
     # ensure that securesocketclient demo is built
     reinplace "s|contains(QT_CONFIG, openssl)|contains(QT_CONFIG, openssl) \\| contains(QT_CONFIG, openssl-linked)|" \
         examples/network/network.pro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081223/7ccba055/attachment.html>


More information about the macports-changes mailing list