[56919] trunk/dports/databases/freetds/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Sep 3 09:04:10 PDT 2009


Revision: 56919
          http://trac.macports.org/changeset/56919
Author:   ryandesign at macports.org
Date:     2009-09-03 09:04:06 -0700 (Thu, 03 Sep 2009)
Log Message:
-----------
freetds: use MacPorts libtool on all versions of Mac OS X; fixes at least the universal build on Snow Leopard

Modified Paths:
--------------
    trunk/dports/databases/freetds/Portfile

Modified: trunk/dports/databases/freetds/Portfile
===================================================================
--- trunk/dports/databases/freetds/Portfile	2009-09-03 15:53:41 UTC (rev 56918)
+++ trunk/dports/databases/freetds/Portfile	2009-09-03 16:04:06 UTC (rev 56919)
@@ -26,6 +26,7 @@
 checksums           md5 3df6b2e83fd420e90f1becbd1162990a \
                     sha1 7e2a0c9e41c240c2d1c7f69c6f278e9a5bb80c2d \
                     rmd160 d3596c512022332cdb3bab375950159f1e930a4b
+depends_build       port:libtool
 depends_lib         port:libiconv port:ncurses port:readline
 patchfiles          patch-cspublic.h
 configure.args      --mandir=${prefix}/share/man \
@@ -59,6 +60,10 @@
         ${worksrcpath}/src/tds/unittests/Makefile.in
 }
 
+pre-build {
+    ln -sf ${prefix}/bin/glibtool ${worksrcpath}/libtool
+}
+
 post-activate {
     # copy over freetds sample files if none exists
     ui_msg "\n****************************************************************"
@@ -75,20 +80,6 @@
     ui_msg "****************************************************************"
 }
 
-
-platform darwin 7 {
-    pre-build {
-        system "cp /usr/bin/glibtool ${worksrcpath}/libtool"
-    }
-}
-
-platform darwin 9 {
-    pre-build {
-        system "cp /usr/bin/glibtool ${worksrcpath}/libtool"
-        reinplace "s|\"gcc\"|\"${configure.cc}\"|" ${worksrcpath}/libtool
-    }
-}
-
 variant mssql description {Use MS style dblib} {
        configure.args-append --enable-msdblib --with-tdsver=8.0
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090903/b7fcf2e2/attachment.html>


More information about the macports-changes mailing list