Ticket #21945: Portfile-universalhackaround.diff

File Portfile-universalhackaround.diff, 956 bytes (added by erik.abair@…, 14 years ago)

Hackaround patch to enable building with +universal

  • Portfile

    old new  
    11# $Id: Portfile 54299 2009-07-24 18:39:58Z toby@macports.org $
    22
    33PortSystem 1.0
     4PortGroup  muniversal 1.0
     5PortGroup  archcheck  1.0
     6
    47name            openldap
    58version         2.3.35
    69revision        1
     
    4952}
    5053
    5154pre-build {
    52         system "cd ${workpath}/${worksrcdir} && \
    53                         make depend"
     55  # Hack to make depend if we're using muniversal - is there a better
     56        #  way to do this than checking for the directories manually?
     57  if {[variant_isset universal] && \
     58      [file exists ${workpath}/${worksrcdir}-i386] && \
     59      [file exists ${workpath}/${worksrcdir}-x86_64]} {
     60        system "cd ${workpath}/${worksrcdir}-i386 && \
     61                        make depend"
     62          system "cd ${workpath}/${worksrcdir}-x86_64 && \
     63                          make depend"
     64  } else {
     65        system "cd ${workpath}/${worksrcdir} && \
     66                        make depend"
     67  }
    5468}
    5569
    5670pre-destroot {