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 5 5 PortGroup muniversal 1.0 6 6 7 7 name freetype 8 version 2.5.4 8 set ftversion 2.5.4 9 revision 2 10 11 if {[variant_isset infinality]} { 12 version ${ftversion}.20141223 13 worksrcdir ${name}-${ftversion} 14 distname ${name}-${ftversion} 15 } else { 16 version ${ftversion} 17 } 18 9 19 categories print graphics 10 20 maintainers ryandesign 11 21 license {FreeType GPL-2} … … 19 29 20 30 long_description \ 21 31 FreeType2 is a software font engine that is designed to \ 22 be small, efficient, highly customi zable and portable while \32 be small, efficient, highly customisable and portable while \ 23 33 capable of producing high-quality output (glyph images). \ 24 34 It can be used in graphics libraries, display servers, font \ 25 35 conversion tools, text image generation tools, and many \ 26 36 other products as well. 27 37 28 master_sites sourceforge:project/freetype/freetype2/${ version}:source \29 sourceforge:project/freetype/freetype-docs/${ version}:docs \38 master_sites sourceforge:project/freetype/freetype2/${ftversion}:source \ 39 sourceforge:project/freetype/freetype-docs/${ftversion}:docs \ 30 40 http://download.savannah.gnu.org/releases/freetype/ 31 41 32 set docdistname ${name}-doc-${ version}42 set docdistname ${name}-doc-${ftversion} 33 43 34 44 distfiles ${distname}${extract.suffix}:source \ 35 45 ${docdistname}${extract.suffix}:docs 36 46 37 checksums freetype- 2.5.4.tar.bz2 \47 checksums freetype-${ftversion}.tar.bz2 \ 38 48 rmd160 3d59c75cad4f77344d75312ead016af75aefd5f5 \ 39 49 sha256 3b4e2c666b33b32ad29ff0fe5c6538e757d3c73368e5dfa88bd59b4bc95cbabb \ 40 freetype-doc- 2.5.4.tar.bz2 \50 freetype-doc-${ftversion}.tar.bz2 \ 41 51 rmd160 85712c53439453bf3a1c64c38fb21dc1948d9608 \ 42 52 sha256 9fa6fb39a324d0b6b744d3745509c51d10a68c7a4f440b23fd00c8b49de6c388 43 53 … … 68 78 69 79 set docdir ${prefix}/share/doc/${name} 70 80 81 variant 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 71 100 post-destroot { 72 101 xinstall -m 0755 -d ${destroot}${docdir} 73 102 … … 105 134 106 135 livecheck.type sourceforge 107 136 livecheck.regex {/freetype2/([0-9.]+)/} 137 138 notes-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."