Ticket #55365: Portfile.3

File Portfile.3, 1.7 KB (added by tuffnatty (Phil Krylov), 6 years ago)

Portfile fixing QT 5.9+ GUI build

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
3PortSystem         1.0
4
5name               ttfautohint
6version            1.7
7description        A library to autohint TrueType fonts
8long_description   ttfautohint provides a 99% automated hinting process and a platform for \
9                   finely hand-hinting the last 1%. It is ideal for web fonts and supports \
10                   many scripts: Latin, Greek, Arabic, Devanagari, Hebrew, Khmer, Myanmar, \
11                   Thai, and many more.
12
13homepage           https://www.freetype.org/ttfautohint/
14categories         graphics fonts
15platforms          darwin
16maintainers        @tuffnatty openmaintainer
17license            {freetype GPL-2}
18master_sites       sourceforge:project/freetype/ttfautohint/${version}
19
20checksums          rmd160 73f74ddab855cbe3b82d27216eabc410b07c4d9b \
21                   sha256 3db94821e4edb3900b6533733d06731eb667f1e9c144bb70d1339de7ef4007f2
22
23depends_build      port:pkgconfig
24
25depends_lib        port:freetype \
26                   port:harfbuzz
27
28patch {
29    reinplace  "s/at_qmake_args='-spec macx-g++'/at_qmake_args='-spec ${qt_qmake_spec}'/" configure
30}
31
32configure.args     --with-qt=no \
33                   --with-doc=no
34
35variant qt4 conflicts qt5 description {Enable GUI based on QT 4} {
36    PortGroup  qt4 1.0
37    configure.args-replace --with-qt=no \
38                           --with-qt=${qt_bins_dir}
39}
40
41variant qt5 conflicts qt4 description {Enable GUI based on QT 5} {
42    PortGroup  qt5 1.0
43    configure.args-replace --with-qt=no \
44                           --with-qt=${qt_bins_dir}
45    qt5.depends_component  qtbase
46}