Ticket #17090: Portfile-apr-util.diff

File Portfile-apr-util.diff, 966 bytes (added by ulrich.kohlhase@…, 15 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 41197 2008-10-27 20:30:13Z dluke@macports.org $
    22
    33PortSystem 1.0
     4PortGroup  muniversal 1.0
    45
    56name            apr-util
    67version         1.3.4
     
    3637        use_parallel_build      no
    3738}
    3839
     40# See also post-install in apr Portfile
     41post-configure {
     42        if {[variant_isset universal] && ${os.arch}=="i386"} {
     43                system "cp /usr/local/share/apr-1/build/i386-apr_rules.mk ${worksrcpath}-i386/build/rules.mk"
     44                system "cp /usr/local/share/apr-1/build/x86_64-apr_rules.mk ${worksrcpath}-x86_64/build/rules.mk"
     45        }
     46}
     47
     48# muniversal bug(?): scripts for archs are merged/diffed but non-executable after install
     49if {[variant_isset universal] && ${os.arch}=="i386"} {
     50    post-install {
     51        system "chmod 755 ${prefix}/bin/apu-1-config"
     52    }
     53}
    3954
    4055variant no_bdb  description {Build without BerkeleyDB support} {
    4156                        depends_lib-delete port:db46