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

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

freetype: remove an old patch that was only need for compatibility with Panther's old gnumake 3.79; see #15807

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