Ticket #14579: mysql5.diff

File mysql5.diff, 3.4 KB (added by ebgssth@…, 17 years ago)
  • perl/p5-dbd-mysql/Portfile

     
    1313checksums                md5 133ac08c22bb19194ad8b895e3204310
    1414
    1515depends_lib-append       port:p5-dbi \
    16                          port:mysql5 \
    1716                         port:zlib
    1817
    19 configure.args-append    --mysql_config=${prefix}/bin/mysql_config5
     18variant mysql3 conflicts mysql4 mysql5 description {build with mysql3 port} {
     19    depends_lib-append       port:mysql3
     20}
    2021
    21 variant mysqlbinary conflicts mysql3 mysql4 description {build with binary from mysql website} {
    22     depends_lib-delete       port:mysql5
    23     configure.args-delete    --mysql_config=${prefix}/bin/mysql_config5
    24     configure.args-append    --mysql_config=/usr/local/mysql/bin/mysql_config
     22variant mysql4 conflicts mysql3 mysql5 description {build with mysql4 port} {
     23    depends_lib-append       port:mysql4
    2524}
    2625
    27 variant mysql3 conflicts mysqlbinary mysql4 description {build with mysql3 port} {
    28     depends_lib-delete       port:mysql5
    29     depends_lib-append       port:mysql3
    30     configure.args-delete    --mysql_config=${prefix}/bin/mysql_config5
     26variant mysql5 conflicts mysql3 mysql4 description {build with mysql5 port (default)} {
     27    depends_lib-append       path:${prefix}/bin/mysql_config5:mysql5
     28    configure.args-append    --mysql_config=${prefix}/bin/mysql_config5
    3129}
    3230
    33 variant mysql4 conflicts mysqlbinary mysql3 description {build with mysql4 port} {
    34     depends_lib-delete       port:mysql5
    35     depends_lib-append       port:mysql4
    36     configure.args-delete    --mysql_config=${prefix}/bin/mysql_config5
     31if {![variant_isset mysql3] && ![variant_isset mysql4]} {
     32    default_variants +mysql5
    3733}
     34
     35pre-fetch {
     36    if {![variant_isset mysql3] && ![variant_isset mysql4] && ![variant_isset mysql5]} {
     37        return -code error "you must select either mysql3, mysql4 or mysql5"
     38    }
     39}
  • databases/mysql5-devel/Portfile

     
    66set vers                5.1.23
    77version                 ${vers}-rc
    88set branch              [join [lrange [split ${version} .] 0 1] .]
    9 revision                1
     9revision                2
    1010homepage                http://www.mysql.com/
    1111categories              databases
    1212platforms               darwin
     
    7070
    7171post-configure {
    7272    reinplace "s;openssl_includes = -I;openssl_includes_includes = -I${prefix}/include/openssl;" ${worksrcpath}/tests/Makefile
     73    # Reverting member names in mysql_com.h
     74    # Remove this when 5.1.24-RC is released.
     75    # http://bugs.mysql.com/bug.php?id=34655
     76    reinplace "s/client_last_errno/last_errno/g" \
     77        ${worksrcpath}/include/mysql_com.h \
     78        ${worksrcpath}/include/mysql_h.ic \
     79        ${worksrcpath}/libmysql/libmysql.c \
     80        ${worksrcpath}/libmysql/manager.c \
     81        ${worksrcpath}/libmysqld/lib_sql.cc \
     82        ${worksrcpath}/libmysqld/libmysqld.c \
     83        ${worksrcpath}/server-tools/instance-manager/mysql_connection.cc \
     84        ${worksrcpath}/sql-common/client.c \
     85        ${worksrcpath}/sql/log_event.cc \
     86        ${worksrcpath}/sql/log_event_old.cc \
     87        ${worksrcpath}/sql/net_serv.cc \
     88        ${worksrcpath}/sql/repl_failsafe.cc
    7389}
    7490
    7591platform darwin 6 {