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

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

freetype: Use muniversal PortGroup for universal builds
so that header file ftconfig.h has correct values.
Fixes #19101 (maintainer timeout).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# $Id: Portfile 49117 2009-04-04 05:23:29Z mcalhoun@macports.org $
2
3PortSystem              1.0
4PortGroup               muniversal 1.0
5
6name                    freetype
7version                 2.3.9
8categories              print graphics
9maintainers             ryandesign
10homepage                http://freetype.sourceforge.net/
11use_bzip2               yes
12platforms               darwin
13use_parallel_build      yes
14
15description \
16    A software font engine
17
18long_description \
19    FreeType2 is a software font engine that is designed to \
20    be small, efficient, highly customizable and portable while \
21    capable of producing high-quality output (glyph images). \
22    It can be used in graphics libraries, display servers, font \
23    conversion tools, text image generation tools, and many \
24    other products as well.
25
26master_sites \
27    http://download.savannah.gnu.org/releases/freetype/ \
28    sourceforge
29
30set docdistfile \
31    ${name}-doc-${version}
32
33distfiles-append \
34    [suffix ${docdistfile}]
35
36checksums \
37    [suffix ${distname}] \
38        md5     d76233108aca9c9606cdbd341562ad9a \
39        sha1    db08969cb5053879ff9e973fe6dd2c52c7ea2d4e \
40        rmd160  c0351c2a3f43e64d26d2a964b1131a3dbf2fa162 \
41    [suffix ${docdistfile}] \
42        md5     ddcb766f7c5abab0e7061dcf32a0268f \
43        sha1    ced46581a39f449393bc267f24d0aac08c62559c \
44        rmd160  4624133b070791ff8dd92cfffb1bb1115393d08d
45
46patchfiles \
47    patch-detect.mk.diff \
48    patch-modules.cfg.diff
49
50depends_lib \
51    port:zlib
52
53# See http://trac.macports.org/ticket/18232
54configure.cppflags-delete   -I${prefix}/include
55configure.cppflags-append   -isystem${prefix}/include
56
57platform darwin 7 {
58    depends_build-append    port:gmake
59    build.cmd               ${prefix}/bin/gmake
60    configure.env-append    GNUMAKE=${build.cmd}
61}
62
63platform macosx {
64    if {${os.major} < 9} {
65        configure.args-append \
66            --with-old-mac-fonts
67    }
68}
69
70configure.universal_ldflags-append \
71    -isysroot ${sysroot}
72
73set docdir \
74    ${prefix}/share/doc/${name}-${version}
75
76post-destroot {
77    xinstall -m 0755 -d ${destroot}${docdir}
78   
79    xinstall -m 0644 -W ${worksrcpath} \
80        ChangeLog \
81        README \
82        ${destroot}${docdir}
83    xinstall -m 0644 -W ${worksrcpath}/docs \
84        CHANGES \
85        FTL.TXT \
86        GPL.TXT \
87        LICENSE.TXT \
88        PATENTS \
89        PROBLEMS \
90        TODO \
91        formats.txt \
92        raster.txt \
93        ${destroot}${docdir}
94   
95    xinstall -m 0755 -d ${destroot}${docdir}/html
96    xinstall -m 0644 -W ${worksrcpath}/docs ft2faq.html ${destroot}${docdir}/html
97    foreach dir {design glyphs reference tutorial} {
98        copy ${worksrcpath}/docs/${dir} ${destroot}${docdir}/html
99    }
100}
101
102variant bytecode description {Build bytecode interpreter into the TrueType driver} {
103    pre-configure {
104        ui_msg "\n\n\
105            You may want not to compile a bytecode interpreter into the\n\
106            TrueType driver. Without this you will only compile the code\n\
107            necessary to load TrueType glyphs without hinting.\n\n\
108            Note that there are important patent issues related to the\n\
109            use of the interpreter.\n\n"
110    }
111    patchfiles-append \
112        patch-ftoption.h
113   
114    post-destroot {
115        xinstall -m 0644 -W ${worksrcpath}/docs TRUETYPE ${destroot}${docdir}
116    }
117}
118
119if { ${os.arch}=="i386" } {
120    if { ${os.major}>=10 } {
121        set merger_configure_env(ppc) CC_BUILD=${configure.cc}
122    }
123    set merger_configure_env(ppc64)   CC_BUILD=${configure.cc}
124} else {
125    set merger_configure_env(i386)    CC_BUILD=${configure.cc}
126    set merger_configure_env(x86_64)  CC_BUILD=${configure.cc}
127}
128
129livecheck.check         sourceforge
130livecheck.distname      ${name}[strsed ${version} {s/\..*//}]
Note: See TracBrowser for help on using the repository browser.