Ignore:
Timestamp:
Feb 15, 2010, 2:10:04 AM (10 years ago)
Author:
ryandesign@…
Message:

mysql5, mysql5-devel: remove -arch flags from mysql_config and mysqlbug scripts, which unbreaks these scripts for those using universal builds (they were broken by switching to the muniversal portgroup)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mysql5/Portfile

    r63732 r63790  
    1010conflicts               mysql5-devel mysql4
    1111version                 5.1.43
     12revision                1
    1213set branch              [join [lrange [split ${version} .] 0 1] .]
    1314homepage                http://www.mysql.com/
     
    9899configure.args-append --with-embedded-server --with-pic
    99100
     101post-build {
     102    if {[variant_isset universal]} {
     103        set dirs {}
     104        foreach arch ${universal_archs_to_use} {
     105            lappend dirs ${worksrcpath}-${arch}
     106        }
     107    } else {
     108        set dirs ${worksrcpath}
     109    }
     110    foreach dir ${dirs} {
     111        reinplace -E {s|-arch [a-z0-9_]+||g} \
     112            ${dir}/scripts/mysql_config \
     113            ${dir}/scripts/mysqlbug
     114    }
     115}
     116
    100117pre-destroot {
    101118    xinstall -m 755 -d ${destroot}${sysconfdir}
Note: See TracChangeset for help on using the changeset viewer.