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

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

freetype: fix build on Panther by reverting a change that was made in 2.3.6; otherwise, configure arguments get ignored and the files get installed to /usr/local instead of the MacPorts prefix; #15807

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Portfile 37994 2008-07-02 09:29:07Z 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
13
14description \
15    A software font engine
16
17long_description \
18    FreeType2 is a software font engine that is designed to \
19    be small, efficient, highly customizable and portable while \
20    capable of producing high-quality output (glyph images). \
21    It can be used in graphics libraries, display servers, font \
22    conversion tools, text image generation tools, and many \
23    other products as well.
24
25master_sites \
26    http://download.savannah.gnu.org/releases/freetype/ \
27    sourceforge
28
29set docdistfile \
30    ${name}-doc-${version}
31
32checksums \
33    [suffix ${distname}] \
34        md5 83306194817ebdea554133b4232a34aa \
35        sha1 f16f849d6e739ce8842008586af36371a32ac064 \
36        rmd160 7333507c5f42d451bf0541f007fe44165f090418 \
37    [suffix ${docdistfile}] \
38        md5 2ba135e6a126ed86e9b462167511ced8 \
39        sha1 852918fc87dc2a8a8d7fac03ed3ee9750d695bab \
40        rmd160 a4a0c92bb85ea9db9cc822a03c6bdbefff1037f9
41
42patchfiles \
43    patch-detect.mk.diff \
44    patch-modules.cfg.diff
45
46depends_lib \
47    port:zlib
48
49configure.args \
50    --with-old-mac-fonts
51
52configure.universal_ldflags-append \
53    -isysroot ${sysroot}
54
55set docdir \
56    ${prefix}/share/doc/${name}-${version}
57
58post-destroot {
59    xinstall -m 0755 -d ${destroot}${docdir}
60   
61    xinstall -m 0644 -W ${worksrcpath} \
62        ChangeLog \
63        README \
64        ${destroot}${docdir}
65    xinstall -m 0644 -W ${worksrcpath}/docs \
66        CHANGES \
67        FTL.TXT \
68        GPL.TXT \
69        LICENSE.TXT \
70        PATENTS \
71        PROBLEMS \
72        TODO \
73        formats.txt \
74        raster.txt \
75        ${destroot}${docdir}
76}
77
78variant bytecode description {Build bytecode interpreter into the TrueType driver} {
79    pre-configure {
80        ui_msg "\n\n\
81            You may want not to compile a bytecode interpreter into the\n\
82            TrueType driver. Without this you will only compile the code\n\
83            necessary to load TrueType glyphs without hinting.\n\n\
84            Note that there are important patent issues related to the\n\
85            use of the interpreter.\n\n"
86    }
87    patchfiles-append \
88        patch-ftoption.h
89   
90    post-destroot {
91        xinstall -m 0644 -W ${worksrcpath}/docs TRUETYPE ${destroot}${docdir}
92    }
93}
94
95variant doc description {Install extra documentation} {
96    distfiles-append [suffix ${docdistfile}]
97   
98    post-destroot {
99        xinstall -m 0755 -d ${destroot}${docdir}/html
100        xinstall -m 0644 -W ${worksrcpath}/docs ft2faq.html ${destroot}${docdir}/html
101       
102        foreach dir {design glyphs reference tutorial} {
103            xinstall -m 0755 -d ${destroot}${docdir}/html/${dir}
104            eval xinstall -m 0644 [glob ${worksrcpath}/docs/${dir}/*.*] \
105                ${destroot}${docdir}/html/${dir}
106        }
107    }
108}
109
110livecheck.check         sourceforge
111livecheck.distname      ${name}[strsed ${version} {s/\..*//}]
Note: See TracBrowser for help on using the repository browser.