Ticket #18190: Portfile.diff

File Portfile.diff, 1.4 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 15 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 45487 2009-01-16 16:03:53Z ryandesign@macports.org $
    22
    33PortSystem              1.0
     4PortGroup               muniversal 1.0
    45
    56name                    libiconv
    67version                 1.12
     
    3637        rmd160 2042116888ee28572c1f7bcc2756e4a29edfbad0
    3738
    3839depends_build \
    39     bin:ed:ed \
    4040    port:gperf
    4141
    4242patchfiles \
     
    5454    --disable-nls \
    5555    --enable-extra-encodings
    5656
    57 platform darwin {
    58     patchfiles-append   patch-stdint.in.h.diff
    59     post-configure {
    60         system "cd ${worksrcpath} && ed - ${worksrcpath}/config.h < ${filespath}/config.h.ed && touch stamp-h1"
    61     }
    62 }
    63 
    64 pre-build {
    65     if {![variant_isset disable_utf8mac] || [variant_isset enable_cp932fix]} {
    66         system "cd ${worksrcpath} && make -f Makefile.devel"
    67     }
     57if {![variant_isset disable_utf8mac] || [variant_isset enable_cp932fix]} {
     58    build.cmd  ${build.cmd} CC=${configure.cc} -f Makefile.devel && ${build.cmd}
    6859}
    6960
    7061test.run                yes
    7162test.target             check
    7263
    73 platform darwin 8 {
    74     if {[variant_isset universal]} {
    75         # Fix universal build on PowerPC
    76         configure.ldflags-append "-isysroot ${sysroot}"
    77     }
    78 }
    79 
    8064platform freebsd {
    8165    patchfiles-append patch-Makefile.devel
    8266    pre-fetch { variant_set disable_utf8mac }