Ticket #47587: Portfile-mupdf.diff

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

    old new  
    44PortSystem          1.0
    55
    66name                mupdf
    7 version             1.4
     7version             1.7a
    88categories          graphics
    99platforms           darwin
    10 maintainers         gmail.com:starkhalo
     10maintainers         gmail.com:starkhalo openmaintainer
    1111license             GPL-3+
    1212
    1313description         lightweight PDF and XPS viewer and parser/rendering library
     
    3131master_sites        ${homepage}downloads/
    3232distname            ${name}-${version}-source
    3333
    34 checksums           rmd160 368140a0f825483268faaf778328bc6c3f4d461f \
    35                     sha256 018bab9520b5e93bb33ab07b0472fdf9f768c5801769f95b9a696941b633ec22
     34checksums           rmd160 cc9260029a7665004584ff6aa1b49e259b08be37 \
     35                    sha256 8c035ffa011fc44f8a488f70da3e6e51889508bbf66fe6b90a63e0cfa6c17d1c
    3636
    3737depends_build       port:pkgconfig
    3838
     
    4343                    port:xorg-libXext \
    4444                    port:zlib
    4545
    46 patchfiles          patch-Makerules.diff
    47 
    4846use_configure       no
    4947
    5048variant universal   {}
     
    6361
    6462destroot.destdir    prefix=${destroot}${prefix}
    6563
     64post-destroot {
     65# mupdf has its own javascript interpreter which is maintained in a separate
     66# repository (git://git.ghostscript.com/mujs.git) but shipped with the source
     67# code as a third-party library. Since there hasn't been a versioned release of
     68# it yet and `mujs' is developed especially for mupdf it will be installed via
     69# post-destroot.
     70    set libdir ${destroot}${prefix}/lib
     71    xinstall -m 644 -W ${worksrcpath} \
     72        build/release/libmujs.a \
     73        ${libdir}
     74}
     75
    6676# https://trac.macports.org/ticket/33240
    6777# Mac OS X Tiger has an old version of `make`, needs to use GNU make
    6878platform darwin 8 {
    6979    depends_build-append port:gmake
    7080    build.cmd ${prefix}/bin/gmake
    71 } 
     81}
    7282
    7383livecheck.type      regex
    7484livecheck.url       ${master_sites}