[61525] trunk/dports/databases/mysql5-devel/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Dec 13 14:43:29 PST 2009


Revision: 61525
          http://trac.macports.org/changeset/61525
Author:   ryandesign at macports.org
Date:     2009-12-13 14:43:29 -0800 (Sun, 13 Dec 2009)
Log Message:
-----------
mysql5-devel:

 * add no_embedded_server variant; use this if you don't need the embedded libmysqld server but do want a universal variant
 * remove innodb_plugin variant; this was integrated into the MySQL source some time ago and in 5.4.x is now the only available InnoDB codebase

See #19415.

Modified Paths:
--------------
    trunk/dports/databases/mysql5-devel/Portfile

Modified: trunk/dports/databases/mysql5-devel/Portfile
===================================================================
--- trunk/dports/databases/mysql5-devel/Portfile	2009-12-13 22:38:22 UTC (rev 61524)
+++ trunk/dports/databases/mysql5-devel/Portfile	2009-12-13 22:43:29 UTC (rev 61525)
@@ -16,9 +16,6 @@
 dist_subdir             mysql5
 use_parallel_build      yes
 
-# http://bugs.mysql.com/bug.php?id=47360
-universal_variant       no
-
 description \
     Multithreaded SQL database server
 
@@ -31,11 +28,9 @@
     http://mysql.he.net/Downloads/MySQL-${branch}/ \
     http://mirrors.sunsite.dk/mysql/Downloads/MySQL-${branch}/ \
     http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${branch}/ \
-    http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/ \
-    http://www.innodb.com/download/innodb_plugin/:plugin
+    http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/
 
 checksums \
-    [suffix ${distname}] \
     md5     9ea08558d51b1d56d3784028d57c2b08 \
     sha1    daf96fb8adcdad23afed921727fe767ff0939711 \
     rmd160  dc191579cc429441da7d20a1f50b25754fe37ad0
@@ -91,37 +86,21 @@
 depends_lib-append      port:readline
 configure.args-append   --without-readline
 
-# Build libmysqld embedded server
-configure.cflags-append -fPIC
-configure.cxxflags-append -fPIC
-configure.args-append --with-embedded-server --with-pic
+variant no_embedded_server description {Don't build the libmysqld embedded server (thereby allowing a universal build)} {}
+if {![variant_isset no_embedded_server]} {
+    # Build libmysqld embedded server.
+    configure.cflags-append -fPIC
+    configure.cxxflags-append -fPIC
+    configure.args-append --with-embedded-server --with-pic
+    
+    # http://bugs.mysql.com/bug.php?id=47360
+    universal_variant no
+}
 
 post-configure {
     reinplace "s;openssl_includes = -I;openssl_includes_includes = -I${prefix}/include/openssl;" ${worksrcpath}/tests/Makefile
 }
 
-set plugin_version      1.0.4
-set plugin_distname     innodb_plugin-${plugin_version}
-set plugin_distfile     [suffix ${plugin_distname}]
-set plugin_worksrcdir   ${plugin_distname}
-set plugin_worksrcpath  ${workpath}/${plugin_worksrcdir}
-set innobase_dir        storage/innobase
-
-variant innodb_plugin description "Use the InnoDB Plugin ${plugin_version} instead of the built-in InnoDB support" {
-    distfiles-append        ${plugin_distfile}:plugin
-    
-    checksums-append \
-        ${plugin_distfile} \
-            md5     4350ba7c1520edce35635f982449efb3 \
-            sha1    c39e2a9cfa18b9f103c930d0c4a8edced81ed4ee \
-            rmd160  bd0467a10781677a7a7bb2e58ad38e0a43841d7f
-    
-    post-extract {
-        delete ${worksrcpath}/${innobase_dir}
-        move ${plugin_worksrcpath} ${worksrcpath}/${innobase_dir}
-    }
-}
-
 pre-destroot {
     xinstall -m 755 -d ${destroot}${sysconfdir}
     destroot.keepdirs-append ${destroot}${sysconfdir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091213/27ce901d/attachment.html>


More information about the macports-changes mailing list