source: trunk/dports/graphics/darktable/Portfile @ 92845

Last change on this file since 92845 was 92845, checked in by jmr@…, 5 years ago

darktable: remove use of -Werror

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 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 92845 2012-05-09 04:48:49Z jmr@macports.org $
3
4PortSystem          1.0
5
6name                darktable
7version             0.7.1
8revision            3
9categories          graphics
10platforms           darwin
11maintainers         gmail.com:julians37
12license             GPL-3
13
14description         Virtual lighttable and darkroom for photographers
15
16long_description    Darktable is a virtual lighttable and darkroom for \
17                    photographers: it manages your digital negatives in a \
18                    database and lets you view them through a zoomable \
19                    lighttable. It also enables you to develop raw images \
20                    and enhance them.
21
22homepage            http://darktable.sf.net/
23master_sites        sourceforge
24
25checksums           sha1    c0cb70f89ec5662f0eb3b38e7f4019235e93d5e4 \
26                    rmd160  13ce9120dfe217e21795159a2f0eca34a9e495d6
27
28depends_build       port:intltool \
29                    port:pkgconfig
30depends_lib         path:lib/pkgconfig/cairo.pc:cairo \
31                    port:curl \
32                    port:dbus-glib \
33                    port:exiv2 \
34                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
35                    port:gtk2 \
36                    port:gtk-engines2 \
37                    port:jpeg \
38                    port:lcms \
39                    port:lensfun \
40                    port:libglade2 \
41                    port:libgphoto2 \
42                    port:libpng \
43                    port:librsvg \
44                    port:openexr \
45                    port:sqlite3 \
46                    port:tiff
47
48patchfiles          patch-src-common-exif.cc.diff patch-darktablerc.diff \
49                    patch-src-iop-lens.c.diff patch-Werror.diff
50
51configure.args-append   --disable-gconf --disable-gkeyring
52
53if {[variant_isset no_x11]} {
54    default_variants    +quartz
55}
56
57if {![variant_isset quartz]} {
58    default_variants    +x11
59}
60
61pre-fetch {
62    if {![variant_isset quartz] && ![variant_isset x11]} {
63        error "Either +x11 or +quartz is required"
64    }
65}
66
67pre-configure {
68    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
69        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
70        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
71        if {[variant_isset quartz] && ${gtk_not_quartz}} {
72            error "+quartz variant selected, but gtk2+x11 is installed"
73        } elseif {[variant_isset x11] && ${gtk_not_x11}} {
74            error "+x11 variant selected, but gtk2+quartz is installed"
75        }
76    } else {
77            error "Cannot find gdkconfig.h"
78    }
79}
80
81variant quartz requires no_x11 conflicts x11 gcc44 gcc45 {
82}
83
84variant x11 conflicts quartz description {Enable rendering in X11} {
85}
86
87variant no_x11 {
88}
89
90variant gcc44 conflicts gcc45 gcc46 quartz description {Build with GCC 4.4} {
91    depends_lib-append  port:gcc44
92    configure.compiler  macports-gcc-4.4
93}
94
95variant gcc45 conflicts gcc44 gcc46 quartz description {Build with GCC 4.5} {
96    depends_lib-append  port:gcc45
97    configure.compiler  macports-gcc-4.5
98}
99
100variant gcc46 conflicts gcc44 gcc45 description {Build with GCC 4.6} {
101    depends_lib-append  port:gcc46
102
103    configure.cc        ${prefix}/bin/gcc-mp-4.6
104    configure.cxx       ${prefix}/bin/g++-mp-4.6
105    configure.cpp       ${prefix}/bin/cpp-mp-4.6
106
107    configure.cc_archflags
108    configure.cxx_archflags
109    configure.ld_archflags
110
111    configure.universal_cflags
112    configure.universal_cxxflags
113    configure.universal_ldflags
114    configure.universal_args
115
116    patchfiles-append   patch-build-for-gcc46.diff
117}
118
119variant gconf description {build with gconf} {
120    configure.args-delete   --disable-gconf
121    configure.args-append   --enable-gconf
122    depends_lib-append      port:gconf
123}
124
125variant gnome_keyring description {build with gnome-keyring} {
126    configure.args-delete   --disable-gkeyring
127    configure.args-append   --enable-gkeyring
128    depends_lib-append      port:libgnome-keyring
129}
130
131livecheck.url       http://sourceforge.net/api/file/index/project-id/258690/rss
132livecheck.regex     {darktable-([0-9.]+?).tar}
Note: See TracBrowser for help on using the repository browser.