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

illogic-al at macports.org illogic-al at macports.org
Wed Nov 26 13:48:36 PST 2008


Revision: 42620
          http://trac.macports.org/changeset/42620
Author:   illogic-al at macports.org
Date:     2008-11-26 13:48:36 -0800 (Wed, 26 Nov 2008)
Log Message:
-----------
Add embedded_server variant. Add revision. Fixes ticket #17410.

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

Modified: trunk/dports/databases/mysql5-devel/Portfile
===================================================================
--- trunk/dports/databases/mysql5-devel/Portfile	2008-11-26 21:45:29 UTC (rev 42619)
+++ trunk/dports/databases/mysql5-devel/Portfile	2008-11-26 21:48:36 UTC (rev 42620)
@@ -5,6 +5,7 @@
 name                    mysql5-devel
 set vers                5.1.29
 version                 ${vers}-rc
+revision                2
 set branch              [join [lrange [split ${version} .] 0 1] .]
 homepage                http://www.mysql.com/
 categories              databases
@@ -95,6 +96,13 @@
     configure.cppflags-append   -I${worksrcpath}/include
 }
 
+variant embedded_server description "Build libmysqld embedded server" {
+    configure.cflags-append -fPIC
+    configure.cxxflags-append -fPIC
+    configure.args-append --with-embedded-server \
+    --with-pic
+}
+
 variant server description {add a startup item} {
     configure.args-delete --without-server
     # Create a startupitem to start/stop the server
@@ -131,21 +139,21 @@
     # Some directories we must have in all cases
     xinstall -m 755 -d ${destroot}${sysconfdir}
     destroot.keepdirs-append ${destroot}${sysconfdir}
-    
+
     # It has trouble installing in parallel if this doesn't already exist
     # See http://bugs.mysql.com/36560
     xinstall -d ${destroot}${prefix}/mysql-test
     xinstall -d ${destroot}${prefix}/mysql-test/ndb
-    
+
     # Setup only for server
     if { [variant_isset server] } {
         addgroup ${mysqluser}
         set gid [existsgroup ${mysqluser}]
         adduser ${mysqluser} gid=${gid} realname=MySQL\ Server
-        
+
         # Some directories we must have only if we're running as a server
         xinstall -m 755 -o root -d ${destroot}${prefix}/var/run
-        
+
         xinstall -m 755 -o ${mysqluser} -g ${mysqluser} -d \
             ${destroot}${dbdir} \
             ${destroot}${prefix}/var/run/${mysql}
@@ -157,7 +165,7 @@
 
 post-destroot {
     delete ${destroot}${prefix}/mysql-test
-    
+
     # Fix paths in manpages and sample configuration files
     foreach manpage [glob -type f ${destroot}${prefix}/share/man/man\[1-9\]/*] {
         reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${manpage}
@@ -165,7 +173,7 @@
     foreach samp_conffile [glob -type f ${destroot}${prefix}/share/${mysql}/mysql/my-*.cnf] {
         reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${samp_conffile}
     }
-    
+
     # Symlink mysql binaries into bin directory, with ${major_version} appended to the name
     foreach f [glob -tails -directory ${destroot}${bindir} my*] {
         ln -sf ${bindir}/${f} ${destroot}${prefix}/bin/${f}${major_version}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081126/058a8dd7/attachment.html>


More information about the macports-changes mailing list