Ticket #44148: freetype+infinality-20141223.diff

File freetype+infinality-20141223.diff, 3.9 KB (added by RJVB (René Bertin), 10 years ago)
  • Portfile

    old new  
    55PortGroup               muniversal 1.0
    66
    77name                    freetype
    8 version                 2.5.4
     8set ftversion           2.5.4
     9revision                2
     10
     11if {[variant_isset infinality]} {
     12    version             ${ftversion}.20141223
     13    worksrcdir          ${name}-${ftversion}
     14    distname            ${name}-${ftversion}
     15} else {
     16    version             ${ftversion}
     17}
     18
    919categories              print graphics
    1020maintainers             ryandesign
    1121license                 {FreeType GPL-2}
     
    1929
    2030long_description \
    2131    FreeType2 is a software font engine that is designed to \
    22     be small, efficient, highly customizable and portable while \
     32    be small, efficient, highly customisable and portable while \
    2333    capable of producing high-quality output (glyph images). \
    2434    It can be used in graphics libraries, display servers, font \
    2535    conversion tools, text image generation tools, and many \
    2636    other products as well.
    2737
    28 master_sites            sourceforge:project/freetype/freetype2/${version}:source \
    29                         sourceforge:project/freetype/freetype-docs/${version}:docs \
     38master_sites            sourceforge:project/freetype/freetype2/${ftversion}:source \
     39                        sourceforge:project/freetype/freetype-docs/${ftversion}:docs \
    3040                        http://download.savannah.gnu.org/releases/freetype/
    3141
    32 set docdistname         ${name}-doc-${version}
     42set docdistname         ${name}-doc-${ftversion}
    3343
    3444distfiles               ${distname}${extract.suffix}:source \
    3545                        ${docdistname}${extract.suffix}:docs
    3646
    37 checksums               freetype-2.5.4.tar.bz2 \
     47checksums               freetype-${ftversion}.tar.bz2 \
    3848                        rmd160  3d59c75cad4f77344d75312ead016af75aefd5f5 \
    3949                        sha256  3b4e2c666b33b32ad29ff0fe5c6538e757d3c73368e5dfa88bd59b4bc95cbabb \
    40                         freetype-doc-2.5.4.tar.bz2 \
     50                        freetype-doc-${ftversion}.tar.bz2 \
    4151                        rmd160  85712c53439453bf3a1c64c38fb21dc1948d9608 \
    4252                        sha256  9fa6fb39a324d0b6b744d3745509c51d10a68c7a4f440b23fd00c8b49de6c388
    4353
     
    6878
    6979set docdir              ${prefix}/share/doc/${name}
    7080
     81variant infinality description {patched for improved font rendering, bohoomil ultimate style} {
     82    # 20140828: I had to redo the builds/unix/configure.raw patch, for reasons unclear.
     83# 20141107: something like this could serve to fetch the patch files, but they need to be edited to drop the 1st path component...
     84    # 20150118: remove the 2nd hunk from freetype-2.5.4-enable-valid.patch because already done by patch-modules-cfg.diff
     85    patchfiles-append   01-freetype-2.5.4-enable-valid.patch \
     86                        02-ftsmooth-2.5.4.patch \
     87                        03-upstream-2014.12.17.patch \
     88                        04-infinality-2.5.4-2014.12.17.patch
     89    pre-patch {
     90        # make -p0 patches
     91        reinplace "s| \[ab\]/| |g" ${filespath}/01-freetype-2.5.4-enable-valid.patch \
     92                                ${filespath}/02-ftsmooth-2.5.4.patch \
     93                                ${filespath}/03-upstream-2014.12.17.patch \
     94                                ${filespath}/04-infinality-2.5.4-2014.12.17.patch
     95    }
     96    configure.args-replace --without-harfbuzz --with-harfbuzz
     97    depends_lib-append    port:harfbuzz
     98}
     99
    71100post-destroot {
    72101    xinstall -m 0755 -d ${destroot}${docdir}
    73102   
     
    105134
    106135livecheck.type          sourceforge
    107136livecheck.regex         {/freetype2/([0-9.]+)/}
     137
     138notes-append "Copy `port dir freetype`/files/infinality-settings.sh (or .csh) to an appropriate location
     139 and make sure it gets read when you log in. See infinality-settings-explained.sh for explanation
     140 of the various settings and variables."