source: trunk/dports/print/ttf2pt1/Portfile

Last change on this file was 126424, checked in by ryandesign@…, 3 years ago

ttf2pt1: use the right compiler, use the right -arch flags, add universal variant, remove unused zlib dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 126424 2014-10-09 23:35:26Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                ttf2pt1
7version             3.4.4
8categories          print
9platforms           darwin
10maintainers         nomaintainer
11license             BSD-old BSD Permissive GPL-2+
12
13description         TrueType Font to PostScript Type 1 Converter
14
15long_description    TTF2PT1 is a modification of Andrew Weeks TTF2PFA True \
16                    Type to PostScript Type 3 converter. Which will convert \
17                    Most TrueType Fonts to an Adobe Type 1 .pfa file. And \
18                    also the other font formats supported by the FreeType \
19                    library to an Adobe Type 1 .pfa file. And the BDF fonts to \
20                    an Adobe Type 1 .pfa file. Yet another use is as a hinting \
21                    engine: feed it an unhinted or poorly hinted Adobe Type 1 \
22                    font through the FreeType library and get it back with \
23                    freshly generated hints. If you want .pfb files, don't \
24                    despair: they can be produced too. The files produced by \
25                    default are in human readable form, which further needs to \
26                    be encoded with the t1utilities, to work with most \
27                    software requiring type 1 fonts.
28
29homepage            http://${name}.sourceforge.net/
30master_sites        sourceforge:project/ttf2pt1/ttf2pt1/${version}/
31extract.suffix      .tgz
32
33checksums           md5     cb143c07cc83167875ca09ea720d4932 \
34                    sha1    936771b11a740c16a8e0adb737b54b22cca18cb2
35
36depends_lib         port:freetype
37
38patchfiles          patch-ft.c
39
40use_configure       no
41
42variant universal {}
43
44build.post_args     CC="${configure.cc}" \
45                    CFLAGS_SYS="-I${prefix}/include \
46                    -I${prefix}/include/freetype2 \
47                    -DUSE_FREETYPE \
48                    -DPREFER_FREETYPE \
49                    [get_canonical_archflags cc]" \
50                    LIBS_SYS="-L${prefix}/lib \
51                    -lm -lfreetype \
52                    [get_canonical_archflags ld]"
53
54destroot.post_args  INSTDIR=${destroot}${prefix} \
55                    MANDIR=${destroot}${prefix}/share/man/ \
56                    GROUP=admin
57
58# wait for HEAD changes to be merged.
59#                   OWNER=${install.user} \
60#                   GROUP=${install.group}
Note: See TracBrowser for help on using the repository browser.