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

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

freetype: enable parallel build

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 38592 2008-07-25 11:57:44Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    freetype
6version                 2.3.7
7revision                1
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
33checksums \
34    [suffix ${distname}] \
35        md5 83306194817ebdea554133b4232a34aa \
36        sha1 f16f849d6e739ce8842008586af36371a32ac064 \
37        rmd160 7333507c5f42d451bf0541f007fe44165f090418 \
38    [suffix ${docdistfile}] \
39        md5 2ba135e6a126ed86e9b462167511ced8 \
40        sha1 852918fc87dc2a8a8d7fac03ed3ee9750d695bab \
41        rmd160 a4a0c92bb85ea9db9cc822a03c6bdbefff1037f9
42
43patchfiles \
44    patch-detect.mk.diff \
45    patch-modules.cfg.diff
46
47depends_lib \
48    port:zlib
49
50configure.args \
51    --with-old-mac-fonts
52
53configure.universal_ldflags-append \
54    -isysroot ${sysroot}
55
56set docdir \
57    ${prefix}/share/doc/${name}-${version}
58
59post-destroot {
60    xinstall -m 0755 -d ${destroot}${docdir}
61   
62    xinstall -m 0644 -W ${worksrcpath} \
63        ChangeLog \
64        README \
65        ${destroot}${docdir}
66    xinstall -m 0644 -W ${worksrcpath}/docs \
67        CHANGES \
68        FTL.TXT \
69        GPL.TXT \
70        LICENSE.TXT \
71        PATENTS \
72        PROBLEMS \
73        TODO \
74        formats.txt \
75        raster.txt \
76        ${destroot}${docdir}
77}
78
79variant bytecode description {Build bytecode interpreter into the TrueType driver} {
80    pre-configure {
81        ui_msg "\n\n\
82            You may want not to compile a bytecode interpreter into the\n\
83            TrueType driver. Without this you will only compile the code\n\
84            necessary to load TrueType glyphs without hinting.\n\n\
85            Note that there are important patent issues related to the\n\
86            use of the interpreter.\n\n"
87    }
88    patchfiles-append \
89        patch-ftoption.h
90   
91    post-destroot {
92        xinstall -m 0644 -W ${worksrcpath}/docs TRUETYPE ${destroot}${docdir}
93    }
94}
95
96variant doc description {Install extra documentation} {
97    distfiles-append [suffix ${docdistfile}]
98   
99    post-destroot {
100        xinstall -m 0755 -d ${destroot}${docdir}/html
101        xinstall -m 0644 -W ${worksrcpath}/docs ft2faq.html ${destroot}${docdir}/html
102       
103        foreach dir {design glyphs reference tutorial} {
104            xinstall -m 0755 -d ${destroot}${docdir}/html/${dir}
105            eval xinstall -m 0644 [glob ${worksrcpath}/docs/${dir}/*.*] \
106                ${destroot}${docdir}/html/${dir}
107        }
108    }
109}
110
111livecheck.check         sourceforge
112livecheck.distname      ${name}[strsed ${version} {s/\..*//}]
Note: See TracBrowser for help on using the repository browser.