Ticket #34231: ImageMagick-Portfile.patch

File ImageMagick-Portfile.patch, 1.6 KB (added by devernay (Frédéric Devernay), 13 years ago)

Portfile patch

  • Portfile

    old new  
    123123                            --without-gvc \
    124124                            --without-rsvg \
    125125                            --without-lqr \
     126                            --without-pango \
    126127                            --with-gs-font-dir=${prefix}/share/fonts/urw-fonts
    127128
     129# OpenMP support seems to be broken in XCode 3.2.1/gcc 4.2.1 (OpenMP can only be used in the main thread):
     130#  http://lists.apple.com/archives/coreaudio-api/2009/May/msg00035.html
     131# LLVM-gcc has OpenMP support:
     132#  http://developer.apple.com/Mac/library/releasenotes/DeveloperTools/RN-llvm-gcc/index.html
     133# maybe later XCode versions solve this (I this at least GCC 4.3 is needed for proper OpenMP support in multi-threaded applications)
     134#   -- Frederic.Devernay@inria.fr
     135if {${configure.compiler} == "gcc-4.2" || ${configure.compiler} == "gcc-4.0"} {
     136    configure.args-append --disable-openmp
     137}
     138
    128139post-configure {
    129140    reinplace -E {s|-arch [a-z0-9_]+||g} \
    130141        ${worksrcpath}/magick/Magick-config \
     
    175186    configure.args-append   --with-lqr
    176187}
    177188
     189variant pango description {Support Pango} {
     190    depends_lib-append      port:pango
     191    archcheck.files-append  lib/libpango-1.0.dylib
     192    configure.args-delete   --without-pango
     193    configure.args-append   --with-pango
     194}
     195
    178196variant mpeg description {Support MPEG-1 and MPEG-2 video} {
    179197    depends_lib-append      port:mpeg2vidcodec
    180198}