source: trunk/dports/graphics/gegl/Portfile

Last change on this file was 148894, checked in by mcalhoun@…, 14 months ago

openexr, ilmbase: update version to 2.2.0
revbump dependencies since library name changes
homepage states that new features "should be available to applications without code modifications"
merge openexr and ilmbase into one Portfile since versions now seem linked
fixes #44620, #44619, #49965, and #49966; maintainer timeout

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 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 148894 2016-05-22 14:26:15Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           gobject_introspection 1.0
6PortGroup           muniversal 1.0
7
8name                gegl
9conflicts           gegl-devel
10version             0.2.0
11revision            19
12license             {GPL-3+ LGPL-3+}
13set branch          [join [lrange [split ${version} .] 0 1] .]
14categories          graphics
15maintainers         devans
16platforms           darwin
17homepage            http://gegl.org/
18master_sites        gimp:${name}/${branch}/
19
20use_bzip2           yes
21
22description         GEGL is a graph based image processing framework.
23
24long_description    GEGL is a graph based image processing framework offering image processing and \
25                    compositing on large images. GEGL is suitable for projects ranging from small \
26                    one-off projects to interactive applications.
27
28checksums           sha1    764cc66cb3c7b261b8fc18a6268a0e264a91d573 \
29                    rmd160  cc10365cff27dd42b002bf305f82de54d8c158fa
30
31depends_build       port:autoconf \
32                    port:automake \
33                    port:libtool \
34                    port:pkgconfig \
35                    port:intltool \
36                    port:w3m \
37                    port:python27
38
39depends_lib         port:babl \
40                    port:gtk2 \
41                    port:jpeg \
42                    port:lua \
43                    port:openexr \
44                    port:libopenraw \
45                    port:librsvg \
46                    port:libsdl \
47                    path:lib/libavcodec.dylib:ffmpeg \
48                    port:libspiro \
49                    port:vala
50
51patchfiles          patch-fix-introspection.diff \
52                    patch-configure.ac.diff \
53                    patch-use-intltoolize.diff \
54                    patch-examples-Makefile.am.diff \
55                    rename-for-altivec.patch \
56                    patch-ffmpeg.diff
57
58post-patch {
59    # http://trac.macports.org/ticket/35148
60    if {${os.major} < 10} {
61        reinplace "s|OpenGL/CGLDevice.h|OpenGL/CGLTypes.h|" ${worksrcpath}/gegl/opencl/cl_gl.h
62    }
63
64    # Not sure what they expected by using these macros... they only belong in system headers...
65    reinplace "s/AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER//" ${worksrcpath}/gegl/opencl/cl_platform.h
66}
67
68# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
69
70configure.cmd       ./autogen.sh
71
72compiler.blacklist  *gcc*
73
74gobject_introspection yes
75
76configure.python    ${prefix}/bin/python2.7
77
78configure.args      --disable-docs \
79                    --disable-silent-rules \
80                    --without-exiv2 \
81                    --without-graphviz \
82                    --without-umfpack
83
84# disable parallel build, see #31498
85use_parallel_build no
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} eq "ppc"} {
94        configure.cflags-append -fno-altivec
95        configure.cxxflags-append -fno-altivec
96    } elseif {${build_arch} eq "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
112variant graphviz description {Build with graphviz support} {
113    depends_lib-append    path:bin/dot:graphviz
114    configure.args-delete --without-graphviz
115}
116
117#
118# the following dummy variants are used
119# to identify this port's binary dependencies
120# inherited from libsdl and librsvg
121#
122
123variant x11 conflicts quartz {}
124variant quartz conflicts x11 {}
125
126if {![variant_isset quartz]} {
127    default_variants +x11
128}
129
130livecheck.type      regex
131livecheck.url       http://download.gimp.org/pub/${name}/${branch}/
132livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.