Ticket #47716: freetype.diff

File freetype.diff, 1.4 KB (added by repagh (Rene van Paassen), 9 years ago)

diff for port file

  • ports/print/freetype/Portfile

    old new  
    4545    patch-src_base_ftrfork.c.diff \
    4646    patch-modules.cfg.diff
    4747
     48
    4849depends_lib             port:bzip2 \
    4950                        port:libpng \
    5051                        port:zlib
     
    9192    foreach dir {design glyphs reference tutorial} {
    9293        copy ${worksrcpath}/docs/${dir} ${destroot}${docdir}/html
    9394    }
     95
     96    # rename the header macros to the old structure
     97    reinplace -W ${destroot}${prefix}/include/freetype2/config \
     98        "s|\<|\<freetype/|" ftheader.h
     99    # except the <config/" stuff
     100    reinplace -W ${destroot}${prefix}/include/freetype2/config \
     101        "s|\<freetype/config|\<config|" ftheader.h
     102    # make a directory and move headers
     103    xinstall -d ${destroot}${prefix}/include/freetype2/freetype
     104    exec bash -c \
     105        "mv ${destroot}${prefix}/include/freetype2/*.h ${destroot}${prefix}/include/freetype2/freetype"
     106    # except the ft2build.h!
     107    file rename ${destroot}${prefix}/include/freetype2/freetype/ft2build.h \
     108        ${destroot}${prefix}/include/freetype2/ft2build.h
    94109}
    95110
     111   
     112
    96113if {${os.arch} eq "i386"} {
    97114    if { ${os.major}>=10 } {
    98115        set merger_configure_env(ppc) CC_BUILD=${configure.cc}