Ticket #25751: mysql5-devel-5.5.5-m3.diff
File mysql5-devel-5.5.5-m3.diff, 6.5 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 PortGroup archcheck 1.0 5 PortGroup cmake 1.0 5 6 6 7 # http://bugs.mysql.com/bug.php?id=47360 7 PortGroup muniversal 1.08 #PortGroup muniversal 1.0 8 9 9 10 name mysql5-devel 10 11 conflicts mysql5 mysql4 11 version 5.5.2-m2 12 revision 1 12 version 5.5.5-m3 13 13 set branch [join [lrange [split ${version} .] 0 1] .] 14 14 homepage http://www.mysql.com/ 15 15 categories databases … … 34 34 http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-${branch}/ \ 35 35 http://ftp.plusline.de/mysql/Downloads/MySQL-${branch}/ 36 36 37 checksums md5 cd3254f29561953ffb7c023cb1b825d2\38 sha1 801b6c9d3cdad2e5e273d3b4c8fe7e68cd1bab3c\39 rmd160 0549f599de5ba9efc26ab45dfcddca135a70d63137 checksums md5 ad27f6561d6010c9346ffeca6de403fa \ 38 sha1 c5ea4bb46521d83000af1f3f189e1dd22cdb8009 \ 39 rmd160 fbaac4f5e0cb26f81f1f10c2095241e5320279e7 40 40 41 41 depends_lib \ 42 42 port:zlib \ 43 port:openssl 43 port:openssl \ 44 port:readline 44 45 45 46 archcheck.files lib/libz.dylib \ 46 lib/libssl.dylib 47 lib/libssl.dylib \ 48 lib/libreadline.dylib 47 49 48 50 set major_version [strsed ${version} {s/\..*$//}] 49 51 set mysql mysql${major_version} … … 66 68 reinplace s%@BINDIR@%${bindir}%g ${worksrcpath}/scripts/mysql_secure_installation.sh 67 69 } 68 70 69 configure.args \ 70 --mandir=${prefix}/share/man \ 71 --infodir=${prefix}/share/info \ 72 --localstatedir=${dbdir} \ 73 --libdir=${libdir} \ 74 --bindir=${bindir} \ 75 --includedir=${prefix}/include/${mysql} \ 76 --datadir=${prefix}/share/${mysql} \ 77 --sysconfdir=${sysconfdir} \ 78 --with-zlib-dir=${prefix} \ 79 --with-ssl=${prefix} \ 80 --with-extra-charsets=complex \ 81 --with-unix-socket-path=${prefix}/var/run/${mysql}/mysqld.sock \ 82 --with-mysqld-user=${mysqluser} \ 83 --without-docs \ 84 --with-plugins=all \ 85 --enable-thread-safe-client 86 # the following is in store for future 87 # --program-suffix=5 71 #configure.args \ 72 # --localstatedir=${dbdir} \ 73 # --with-unix-socket-path=${prefix}/var/run/${mysql}/mysqld.sock \ 74 # --with-mysqld-user=${mysqluser} \ 75 # --with-plugins=all \ 76 # --enable-thread-safe-client 88 77 89 # Add readline support. 90 # "--without-readline" has the peculiar meaning "do not use the bundled copy 91 # of readline but use the system's (i.e. MacPorts') copy of readline" 92 depends_lib-append port:readline 93 archcheck.files-append lib/libreadline.dylib 94 configure.args-append --without-readline 78 configure.args-append -DINSTALL_MANDIR:STRING=share/man \ 79 -DINSTALL_INFODIR:STRING=share/info \ 80 \ 81 -DINSTALL_BINDIR:STRING=lib/${mysql}/bin \ 82 -DINSTALL_SCRIPTDIR:STRING=lib/${mysql}/bin \ 83 -DINSTALL_SBINDIR:STRING=lib/${mysql}/libexec \ 84 -DINSTALL_INCLUDEDIR:STRING=include/${mysql}/mysql \ 85 -DINSTALL_LIBDIR:STRING=lib/${mysql}/mysql \ 86 -DINSTALL_PLUGINDIR:STRING=lib/${mysql}/mysql/plugin \ 87 -DINSTALL_DOCDIR:STRING=share/doc/${mysql} \ 88 -DINSTALL_DOCREADMEDIR:STRING=share/doc/${mysql} \ 89 -DINSTALL_MYSQLDATADIR:STRING=share/${mysql} \ 90 -DINSTALL_MYSQLSHAREDIR:STRING=share/${mysql}/mysql \ 91 -DINSTALL_SHAREDIR:STRING=share/${mysql} \ 92 -DINSTALL_SUPPORTFILESDIR:STRING=share/${mysql}/mysql \ 93 \ 94 -DSYSCONFDIR:PATH=${sysconfdir} \ 95 -DWITH_EMBEDDED_SERVER:BOOL=ON \ 96 -DWITH_READLINE:STRING=system \ 97 -DWITH_SSL:STRING=system \ 98 -DWITH_ZLIB:STRING=system 95 99 96 # Build libmysqld embedded server. 97 configure.cflags-append -fPIC 98 configure.cxxflags-append -fPIC 99 configure.args-append --with-embedded-server --with-pic 100 # verbose configure output -- remove me 101 configure.args-append -LAH 100 102 101 103 post-build { 102 if {[variant_isset universal]} {103 set dirs {}104 foreach arch ${universal_archs_to_use} {105 lappend dirs ${worksrcpath}-${arch}106 }107 } else {104 # if {[variant_isset universal]} { 105 # set dirs {} 106 # foreach arch ${universal_archs_to_use} { 107 # lappend dirs ${worksrcpath}-${arch} 108 # } 109 # } else { 108 110 set dirs ${worksrcpath} 109 }111 # } 110 112 foreach dir ${dirs} { 111 reinplace "s|${dir}/libservices|${libdir}/mysql|g" \112 ${dir}/plugin/daemon_example/.libs/libdaemon_example.lai \113 ${dir}/plugin/semisync/.libs/semisync_master.lai \114 ${dir}/plugin/semisync/.libs/semisync_slave.lai \115 ${dir}/storage/example/.libs/ha_example.lai116 113 reinplace -E {s|-arch [a-z0-9_]+||g} \ 117 114 ${dir}/scripts/mysql_config \ 118 115 ${dir}/scripts/mysqlbug … … 125 122 } 126 123 127 124 post-destroot { 125 # Delete directories we don't want 126 delete ${destroot}${prefix}/data ${destroot}${prefix}/mysql-test ${destroot}${prefix}/sql-bench 127 128 128 # Fix paths in manpages and sample configuration files 129 129 foreach manpage [glob -type f ${destroot}${prefix}/share/man/man\[1-9\]/*] { 130 130 reinplace "s|/etc/my.cnf|${sysconfdir}/my.cnf|g" ${manpage} -
files/patch-Makefile.in.diff
1 --- Makefile.in.orig 20 09-12-28 06:10:40.000000000 -06002 +++ Makefile.in 2010-0 2-05 20:06:18.000000000 -06003 @@ - 415,7 +415,7 @@1 --- Makefile.in.orig 2010-07-06 13:37:17.000000000 -0500 2 +++ Makefile.in 2010-07-18 19:20:36.000000000 -0500 3 @@ -396,7 +396,7 @@ 4 4 @sql_union_dirs@ unittest \ 5 5 @sql_server@ @man_dirs@ tests \ 6 6 netware @libmysqld_dirs@ \ 7 7 - mysql-test support-files sql-bench \ 8 8 + support-files \ 9 win 9 win \ 10 cmake 10 11 11 DIST_SUBDIRS = . include Docs zlib \