source: trunk/dports/print/freetype/Portfile @ 79791

Last change on this file since 79791 was 79791, checked in by ryandesign@…, 8 years ago

freetype: update to 2.4.5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 79791 2011-06-26 02:21:03Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               muniversal 1.0
6PortGroup               archcheck 1.0
7
8name                    freetype
9version                 2.4.5
10categories              print graphics
11maintainers             ryandesign
12license                 FreeType GPL-2
13homepage                http://freetype.sourceforge.net/
14use_bzip2               yes
15platforms               darwin
16use_parallel_build      yes
17
18description \
19    A software font engine
20
21long_description \
22    FreeType2 is a software font engine that is designed to \
23    be small, efficient, highly customizable and portable while \
24    capable of producing high-quality output (glyph images). \
25    It can be used in graphics libraries, display servers, font \
26    conversion tools, text image generation tools, and many \
27    other products as well.
28
29master_sites \
30    http://download.savannah.gnu.org/releases/freetype/ \
31    sourceforge
32
33set docdistfile \
34    ${name}-doc-${version}
35
36distfiles-append \
37    [suffix ${docdistfile}]
38
39checksums \
40    [suffix ${distname}] \
41        sha1    edc5217f1a0e3bec37f9846bb5203e8d005cf470 \
42        rmd160  ec6719f2f851ebdb7135030ffd481d9ca53a54c1 \
43    [suffix ${docdistfile}] \
44        sha1    45e817127d98a7685c94f3189029489eba1a74ca \
45        rmd160  7c6e46a0d7df532f384cdd88026e5616225b4d83
46
47patchfiles \
48    patch-detect.mk.diff \
49    patch-src_base_ftrfork.c.diff \
50    patch-modules.cfg.diff
51
52depends_lib \
53    port:zlib
54
55archcheck.files         lib/libz.dylib
56
57# See http://trac.macports.org/ticket/18232
58configure.cppflags-delete   -I${prefix}/include
59configure.cppflags-append   -isystem${prefix}/include
60
61configure.universal_args-delete --disable-dependency-tracking
62
63platform macosx {
64    if {${os.major} < 9} {
65        configure.args-append \
66            --with-old-mac-fonts
67    }
68}
69
70set docdir              ${prefix}/share/doc/${name}
71
72post-destroot {
73    xinstall -m 0755 -d ${destroot}${docdir}
74   
75    xinstall -m 0644 -W ${worksrcpath} \
76        ChangeLog \
77        README \
78        ${destroot}${docdir}
79    xinstall -m 0644 -W ${worksrcpath}/docs \
80        CHANGES \
81        FTL.TXT \
82        GPLv2.TXT \
83        LICENSE.TXT \
84        PROBLEMS \
85        TODO \
86        formats.txt \
87        raster.txt \
88        ${destroot}${docdir}
89   
90    xinstall -m 0755 -d ${destroot}${docdir}/html
91    xinstall -m 0644 -W ${worksrcpath}/docs ft2faq.html ${destroot}${docdir}/html
92    foreach dir {design glyphs reference tutorial} {
93        copy ${worksrcpath}/docs/${dir} ${destroot}${docdir}/html
94    }
95}
96
97if { ${os.arch}=="i386" } {
98    if { ${os.major}>=10 } {
99        set merger_configure_env(ppc) CC_BUILD=${configure.cc}
100    }
101    set merger_configure_env(ppc64)   CC_BUILD=${configure.cc}
102} else {
103    set merger_configure_env(i386)    CC_BUILD=${configure.cc}
104    set merger_configure_env(x86_64)  CC_BUILD=${configure.cc}
105}
106
107livecheck.type          regex
108livecheck.url           ${homepage}index2.html
109livecheck.regex         {FreeType ([0-9.]+) has been released}
Note: See TracBrowser for help on using the repository browser.