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

Last change on this file since 134962 was 134962, checked in by devans@…, 4 years ago

intltool dependents already updated for intltool 0.51: change 'reconfigure with autogen.sh' to 'reconfigure with upstream autogen.sh' in comment.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 134962 2015-04-12 08:20:29Z devans@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
11set git_name        gegl
12set git_commit      0c5bdd25e54fc4f143c32c0b713a40dccf36d66b
13set git_date        20150409
14version             0.3.0-${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  b37c3710509eec5a11f918165ede65b9bbb703d5 \
33                    sha256  08a6939f0070d4bfd086b7033dad9c03f3443df32ce93afe83a84990a6326743
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:json-glib \
51                    port:libopenraw \
52                    port:librsvg \
53                    port:libsdl \
54                    path:lib/libavcodec.dylib:ffmpeg \
55                    port:libspiro \
56                    port:lensfun \
57                    port:vala
58
59patchfiles          patch-configure.ac.diff \
60                    patch-force-intltoolize.diff \
61                    patch-ffmpeg.diff
62
63gobject_introspection yes
64
65compiler.blacklist-append gcc-4.0 *gcc-4.2
66
67# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
68
69configure.cmd       ./autogen.sh
70
71configure.python    ${prefix}/bin/python2.7
72
73configure.args      --disable-docs \
74                    --disable-silent-rules \
75                    --without-umfpack
76
77post-patch {
78    # http://trac.macports.org/ticket/35148
79    if {${os.major} < 10} {
80        reinplace "s|OpenGL/CGLDevice.h|OpenGL/CGLTypes.h|" ${worksrcpath}/gegl/opencl/cl_gl.h
81    }
82
83    # Not sure what they expected by using these macros... they only belong in system headers...
84    reinplace "s/AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER//" ${worksrcpath}/gegl/opencl/cl_platform.h
85}
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    configure.args-append --enable-workshop
109}
110
111livecheck.type      none
Note: See TracBrowser for help on using the repository browser.