source: trunk/dports/devel/girara/Portfile

Last change on this file was 150507, checked in by devans@…, 16 months ago

girara: tentative 10.6 build fix, blacklist compilers that don't support -std=c11.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 150507 2016-07-20 20:15:17Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compiler_blacklist_versions 1.0
6
7name                girara
8version             0.2.6
9categories          devel gnome
10platforms           darwin
11license             zlib
12maintainers         gmail.com:starkhalo \
13                    openmaintainer
14description         Cross-platform widget toolkit based on GTK+
15long_description \
16    girara is a library that implements a user interface that focuses on    \
17    simplicity and minimalism. Currently based on GTK+, a cross-platform    \
18    widget toolkit, it proves an interface that focueses on three main com- \
19    ponents: A so-called view widget that represents the actual application \
20    (e.g. a website (browser), an image (image viewer) or the document      \
21    (document viewer)), an input bar that is used to execute commands of    \
22    the application and the status bar which provides the user with current \
23    information.
24
25homepage            http://pwmt.org/projects/${name}/
26
27master_sites        ${homepage}download/
28
29checksums           rmd160  872889a2d5abcb907d8dbe2a27e7c9bb238963b8 \
30                    sha256  eba69b3522b4d149e06d133de52877913275873c505993fad08b6d7884ec9a0f
31
32depends_build       port:pkgconfig
33
34depends_lib         path:lib/libglib-2.0.dylib:glib2 \
35                    port:gtk3 \
36                    port:intltool \
37                    port:libnotify \
38                    port:json-c
39
40use_configure       no
41
42# blacklist compilers that don't support -std=c11
43compiler.blacklist  *gcc* {clang < 300}
44
45variant universal   {}
46
47platform darwin     {
48# Before 10.7 there's no getline() in stdio.h
49# http://stackoverflow.com/a/1117158/205907
50    if {${os.major} < 11} {
51# Using CVS project implementation
52# http://www.opensource.apple.com/source/cvs/cvs-47/cvs/lib/getline.c?txt
53# http://www.opensource.apple.com/source/cvs/cvs-47/cvs/lib/getline.h?txt
54# http://www.opensource.apple.com/source/cvs/cvs-47/cvs/lib/getdelim.c?txt
55# http://www.opensource.apple.com/source/cvs/cvs-47/cvs/lib/getdelim.h?txt
56        patchfiles-append   patch-getline.diff
57    }
58}
59
60build.args          PREFIX=${prefix}
61build.env           CC=${configure.cc} \
62                    CXX=${configure.cxx} \
63                    CPP=${configure.cpp} \
64                    CFLAGS="[get_canonical_archflags cc]" \
65                    LDFLAGS="[get_canonical_archflags ld]" \
66                    VERBOSE=1
67
68eval destroot.env   ${build.env}
69eval destroot.args  ${build.args}
70
71livecheck.type      regex
72livecheck.url       ${master_sites}
73livecheck.regex     (\\d\\.\\d\\.\\d)
Note: See TracBrowser for help on using the repository browser.