source: trunk/dports/graphics/graphite2/Portfile

Last change on this file was 147273, checked in by ryandesign@…, 16 months ago

graphite2: update to 1.3.8

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 147273 2016-04-01 03:28:21Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           muniversal 1.0
7
8name                graphite2
9version             1.3.8
10categories          graphics
11platforms           darwin
12maintainers         ryandesign openmaintainer
13license             LGPL-2.1+
14
15description         a smart font system for lesser-known languages
16
17long_description    Graphite is a smart font system developed specifically \
18                    to handle the complexities of lesser-known languages of \
19                    the world.
20
21homepage            http://graphite.sil.org/
22master_sites        sourceforge:project/silgraphite/graphite2
23extract.suffix      .tgz
24
25checksums           rmd160  984eb31f9bef3efab1bfdf46cdd370e505850bd2 \
26                    sha256  9f3f25b3a8495ce0782e77f69075c0dd9b7c054847b9bf9ff130bec38f4c8cc2
27
28patchfiles          patch-src-CMakeLists.txt.diff \
29                    patch-src-Face.cpp.diff
30
31# gcc version 4.0.1 (Apple Computer, Inc. build 5370) (from Xcode 2.5 on Tiger) is affected.
32# apple-gcc42 @5666.3_10 doesn't contain a c++ compiler so it falls back to the affected Xcode compiler.
33# gcc version 4.0.1 (Apple Inc. build 5493) (from Xcode 3.1.4 on Leopard) is not affected.
34# Other versions of gcc 4.0 not tested. Later versions of gcc are not affected.
35platform darwin 8 {
36    post-patch {
37        # https://sourceforge.net/p/silgraphite/bugs/50/
38        reinplace -W ${worksrcpath} "s|-fno-stack-protector||g" src/CMakeLists.txt tests/CMakeLists.txt
39    }
40}
41
42post-patch {
43    # https://trac.macports.org/ticket/37947
44    # https://sourceforge.net/p/silgraphite/bugs/54/
45    reinplace "/add_subdirectory(featuremap)/d" ${worksrcpath}/tests/CMakeLists.txt
46}
47
48# fix upgrade failure
49configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
50
51test.run            yes
52test.env            DYLD_LIBRARY_PATH=${worksrcpath}/src
53
54pre-test {
55    # https://sourceforge.net/p/silgraphite/bugs/48/
56    set python_installed_version [strsed [exec python --version 2>@1] {g/Python //}]
57    set python_minimum_version 2.6
58    if {[vercmp ${python_installed_version} ${python_minimum_version}] < 0} {
59        ui_error "Testing ${name} requires Python ${python_minimum_version} or later but your “python” is version ${python_installed_version}."
60        return -code error "incompatible python version"
61    }
62}
63
64# Disable segment caching code on PowerPC where it fails to build.
65# https://sourceforge.net/p/silgraphite/bugs/49/
66set merger_configure_args(ppc) -DGRAPHITE2_NSEGCACHE:BOOL=ON
67set merger_configure_args(ppc64) -DGRAPHITE2_NSEGCACHE:BOOL=ON
68if {![variant_isset universal] && [info exists merger_configure_args(${configure.build_arch})]} {
69    configure.args-append $merger_configure_args(${configure.build_arch})
70}
71
72livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.