source: trunk/dports/graphics/gegl-devel/Portfile

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

gegl-devel: update to version 0.3.9 git master as of 20160717.

  • 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 150475 2016-07-19 17:24:44Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6PortGroup           compiler_blacklist_versions 1.0
7PortGroup           gobject_introspection 1.0
8
9name                gegl-devel
10conflicts           gegl gegl-0.3
11set git_name        gegl
12set git_commit      d27108b4f609e3a50e1459cfc14da7e1fd44f157
13set git_date        20160717
14version             0.3.9-${git_date}
15license             {GPL-3+ LGPL-3+}
16categories          graphics
17maintainers         devans
18platforms           darwin
19
20description         GEGL is a graph based image processing framework.
21
22long_description    GEGL is a graph based image processing framework offering image processing and \
23                    compositing on large images. GEGL is suitable for projects ranging from small \
24                    one-off projects to interactive applications. This is the development version \
25                    based on a recent snapshot of upstream git master.
26
27homepage            http://gegl.org/
28master_sites        https://git.gnome.org/browse/${git_name}/snapshot/
29
30distname            ${git_name}-${git_commit}
31
32checksums           rmd160  b31053cdef8dc61f22aa0f3b194a11d8ef95cd7a \
33                    sha256  ad5dcaec15f4c1a7e35fb8c108691e2700321f3534775b05d6cd1b53c5a2442f
34
35depends_build       port:pkgconfig \
36                    port:intltool \
37                    port:w3m \
38                    port:autoconf \
39                    port:automake \
40                    port:libtool \
41                    port:python27
42
43depends_lib         port:babl-devel \
44                    port:gtk2 \
45                    port:jpeg \
46                    port:lua \
47                    path:bin/dot:graphviz \
48                    port:openexr \
49                    port:exiv2 \
50                    port:gexiv2 \
51                    port:json-glib \
52                    port:libraw \
53                    port:librsvg \
54                    port:libsdl \
55                    path:lib/libavcodec.dylib:ffmpeg \
56                    port:libspiro \
57                    port:vala \
58                    port:webp
59
60patchfiles          patch-configure.ac.diff \
61                    patch-force-intltoolize.diff
62
63post-patch {
64    # http://trac.macports.org/ticket/35148
65    if {${os.major} < 10} {
66        reinplace "s|OpenGL/CGLDevice.h|OpenGL/CGLTypes.h|" ${worksrcpath}/gegl/opencl/cl_gl.h
67    }
68
69    # Not sure what they expected by using these macros... they only belong in system headers...
70    reinplace "s/AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER//" ${worksrcpath}/gegl/opencl/cl_platform.h
71}
72
73gobject_introspection yes
74
75compiler.blacklist-append gcc-4.0 *gcc-4.2
76
77# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
78
79configure.cmd       ./autogen.sh
80
81configure.python    ${prefix}/bin/python2.7
82
83configure.args      --disable-docs \
84                    --disable-silent-rules \
85                    --without-umfpack
86
87platform darwin {
88    if {[variant_isset universal]} {
89        # In order to build universal on Leopard, you need MacPorts 2.1
90        set merger_configure_args(x86_64) --build=${build_arch}-apple-${os.platform}${os.version}
91        set merger_configure_cflags(ppc) -fno-altivec
92        set merger_configure_cxxflags(ppc) -fno-altivec
93    } elseif {${build_arch} == "ppc"} {
94        configure.cflags-append -fno-altivec
95        configure.cxxflags-append -fno-altivec
96    } elseif {${build_arch} == "x86_64"} {
97        configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
98    }
99}
100
101variant html_doc description {Build html docs with enscript and asciidoc} {
102    depends_build-append port:asciidoc
103    configure.args-delete --disable-docs
104    configure.args-append --enable-docs
105}
106
107variant workshop description {Enable build of workshop operations} {
108    depends_lib-append port:lensfun
109    configure.args-append --enable-workshop
110}
111
112#
113# the following dummy variants are used
114# to identify this port's binary dependencies
115# inherited from libsdl and librsvg
116#
117
118variant x11 conflicts quartz {}
119variant quartz conflicts x11 {}
120
121if {![variant_isset quartz]} {
122    default_variants +x11
123}
124
125livecheck.type      none
Note: See TracBrowser for help on using the repository browser.