source: trunk/dports/graphics/makeicns/Portfile

Last change on this file was 146686, checked in by mojca@…, 16 months ago

makeicns: make it work with libc++ on 10.6 (#50678)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.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 146686 2016-03-15 14:56:08Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                makeicns
7version             1.4.10a
8revision            2
9categories          graphics
10maintainers         mk pixilla
11platforms           darwin
12license             MIT
13
14description         This program lets you convert all kinds of images to Apple icns format on the command line.
15long_description    ${description}
16
17homepage            https://bitbucket.org/mkae/makeicns
18master_sites        ${homepage}/downloads
19
20use_bzip2           yes
21
22worksrcdir          ${name}
23
24checksums           md5     29613f4774d4dc2871a0052826abe1ae \
25                    sha1    2a3b1229781516c8cc36089bf09729d5c17ac17c \
26                    rmd160  8bf438b375dbc3d84a7dc47cef39c5c290a4c2ed
27
28use_configure       no
29
30variant universal {
31}
32
33platform darwin {
34    # This patch is only needed from Mavericks on
35    if {${os.major} >= 13} {
36        patchfiles      patch-IconFamily.m.diff
37    }
38}
39
40if {[string match *clang* ${configure.cxx}]} {
41    configure.cxxflags-append -stdlib=${configure.cxx_stdlib}
42    configure.ldflags-append  -stdlib=${configure.cxx_stdlib}
43}
44
45build.env-append    CC=${configure.cc} \
46                    CXX=${configure.cxx} \
47                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
48                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
49                    LDFLAGS="[join ${configure.ldflags}] [get_canonical_archflags ld]"
50
51# https://trac.macports.org/ticket/50678
52# if {${configure.sdkroot} != ""} {
53    build.env-append SDK=${configure.sdkroot}
54# }
55
56destroot {
57    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
58}
59
60livecheck.type      regex
61livecheck.url       [lindex ${master_sites} 0]
62livecheck.regex     "(?!${name}).*${name}-((?!${extract.suffix}).*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.