source: trunk/dports/graphics/fontforge/Portfile @ 84218

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

fontforge: fix livecheck, license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 84218 2011-09-21 00:34:46Z snc@macports.org $
3
4PortSystem      1.0
5
6name            fontforge
7version         20110222
8set docversion  20110221
9set ftversion   2.4.4
10categories      graphics fonts
11platforms       darwin
12maintainers     nomaintainer
13license         BSD
14description     Outline and bitmap font editor/converter for many formats
15
16long_description \
17    FontForge allows you to edit outline and bitmap fonts.  You may create \
18    new ones or modify old ones.  It is also a format converter and can \
19    interconvert between PostScript (ascii & binary Type1, some Type3, \
20    some Type0), TrueType, OpenType (Type2), CID, SVG.  Previously known as \
21    pfaedit.
22
23homepage        http://fontforge.sourceforge.net/
24master_sites    sourceforge \
25                ${homepage}:cidmaps \
26                http://download.savannah.gnu.org/releases/freetype/:freetype \
27                sourceforge:freetype:freetype
28distname        ${name}_full-${version}
29dist_subdir     ${name}/${version}
30use_bzip2       yes
31
32set docdistname ${name}_htdocs-${docversion}
33
34distfiles-append \
35    cidmaps.tgz:cidmaps \
36    [suffix ${docdistname}]
37
38patchfiles      patch-Makefile.dynamic.in.diff \
39                patch-fontforge_start.c.diff \
40                patch-gutils_dynamic.c.diff \
41                patch-configure.in.diff
42
43checksums       [suffix ${distname}] \
44                sha1    8fada07647f102351bb1d7d1c4da487356e7142f \
45                rmd160  7f276e9e3ef673b78355bb7be50f6b2587aee633 \
46                cidmaps.tgz \
47                sha1    efbc7c9d3e95159f5600dc71f9cccb370e46bb94 \
48                rmd160  d194355e61813d31fe4813bdf10a62d66a9f6d04 \
49                [suffix ${docdistname}] \
50                sha1    e966fea60a2f7f022af71669f67e15e258948e0e \
51                rmd160  ac92a01aafbb39ccbecff2953f3b6f49c3721f71 \
52                [suffix freetype-${ftversion}] \
53                sha1    1d136cbc51c67b212c91ba04dc5db797f35e64e6 \
54                rmd160  6b9b37ccdc8d1bfe0883f0e25df6de49ab30379e
55
56worksrcdir      ${name}-${version}
57
58extract.only    [suffix ${distname}]
59
60post-extract {
61    xinstall -d \
62        ${worksrcpath}/cidmap \
63        ${worksrcpath}/htdocs
64
65    system "tar xzf ${distpath}/cidmaps.tgz -C ${worksrcpath}/cidmap"
66    system "tar xjf ${distpath}/[suffix ${docdistname}] -C ${worksrcpath}/htdocs"
67}
68
69post-patch {
70    reinplace "s|@PREFIX@|${prefix}|g" \
71        ${worksrcpath}/gutils/dynamic.c
72    reinplace "/^applicationsdir/s|/Applications|${applications_dir}|" \
73        ${worksrcpath}/Makefile.dynamic.in
74}
75
76depends_lib \
77                port:xorg-libXi \
78                port:xorg-libxkbui \
79                port:xorg-libXt \
80                port:freetype \
81                port:gettext \
82                port:giflib \
83                port:jpeg \
84                port:libiconv \
85                port:libpng \
86                port:libuninameslist \
87                port:libxml2 \
88                port:tiff \
89                port:zlib
90
91use_autoconf    yes
92
93configure.args  --mandir=${prefix}/share/man \
94                --enable-type3 \
95                --enable-devicetables \
96                --enable-gb12345 \
97                --without-python \
98                --without-freetype-bytecode \
99                --without-pango \
100                --without-cairo \
101                --x-includes=${prefix}/include \
102                --x-libraries=${prefix}/lib
103
104configure.ldflags-append -lintl
105
106# http://trac.macports.org/ticket/29840
107if {${configure.compiler} == "llvm-gcc-4.2"} {
108    configure.compiler clang
109}
110
111use_parallel_build  yes
112
113set docdir      ${prefix}/share/doc/${name}
114
115destroot.args   docdir=${docdir}
116
117post-destroot {
118    xinstall -d ${destroot}${docdir}
119    xinstall -m 644 -W ${worksrcpath} \
120        AUTHORS INSTALL LICENSE README-Mac.html README-Unix.html README-unix \
121        ${destroot}${docdir}
122}
123
124variant with_freetype_bytecode description {Enable support for bytecode interpreter} {
125    distfiles-append        freetype-${ftversion}${extract.suffix}:freetype
126    extract.only-append     freetype-${ftversion}${extract.suffix}
127    configure.args-delete   --without-freetype-bytecode
128    configure.args-append   --with-freetype-src=${workpath}/freetype-${ftversion}
129}
130
131livecheck.regex     ${name}_full-(\\d+)\.
Note: See TracBrowser for help on using the repository browser.