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

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

freetype: update to 2.4.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 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 90578 2012-03-09 08:34:40Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               muniversal 1.0
6PortGroup               archcheck 1.0
7
8name                    freetype
9version                 2.4.9
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            sourceforge:project/freetype/freetype2/${version}:source \
30                        sourceforge:project/freetype/freetype-docs/${version}:docs \
31                        http://download.savannah.gnu.org/releases/freetype/
32
33set docdistname         ${name}-doc-${version}
34
35distfiles               [suffix ${distname}]:source \
36                        [suffix ${docdistname}]:docs
37
38checksums \
39    [suffix ${distname}] \
40        rmd160  a420df999f2c73ddd44641462281ae86845472bb \
41        sha256  c4204ac1d48e99d4375a2f32bf4f3f92780a9d9f015e64e57e852f6c004859b9 \
42    [suffix ${docdistname}] \
43        rmd160  df6cdc55cc822770a1690c989a147c382223a190 \
44        sha256  138ec5c5081c2c0d1d4624e83bf3797a27271fdb5218deff6599f2d23b66438a
45
46patchfiles \
47    patch-detect.mk.diff \
48    patch-src_base_ftrfork.c.diff \
49    patch-modules.cfg.diff
50
51depends_lib             port:zlib \
52                        port:bzip2
53
54archcheck.files         lib/libz.dylib \
55                        lib/libbz2.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.