Ticket #43614: Portfile-mupdf.diff

File Portfile-mupdf.diff, 1.4 KB (added by harciga, 10 years ago)
  • Portfile

    old new  
    3434checksums           rmd160 368140a0f825483268faaf778328bc6c3f4d461f \
    3535                    sha256 018bab9520b5e93bb33ab07b0472fdf9f768c5801769f95b9a696941b633ec22
    3636
    37 use_configure       no
    38 
    3937depends_build       port:pkgconfig
    4038
    4139depends_lib         port:freetype \
     
    4543                    port:xorg-libXext \
    4644                    port:zlib
    4745
     46use_configure       no
     47
     48variant universal   {}
     49
    4850build.args          PREFIX=${prefix}
    4951build.args-append   CC=${configure.cc} \
    5052                    CXX=${configure.cxx} \
    5153                    CPP=${configure.cpp}
    52 build.env           build=release \
     54
     55build.env           CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
     56                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
     57                    build=release \
    5358                    HAVE_CURL=no \
    5459                    verbose=1
    5560
    5661destroot.destdir    prefix=${destroot}${prefix}
    5762
     63# https://trac.macports.org/ticket/33240
     64# Mac OS X Tiger has an old version of `make`, needs to use GNU make
     65platform darwin 8 {
     66    depends_build-append port:gmake
     67    build.cmd ${prefix}/bin/gmake
     68}
     69
    5870livecheck.type      regex
    5971livecheck.url       ${master_sites}
    6072livecheck.regex     ${name}-(\\d\\.\\d)-source