source: trunk/dports/graphics/gegl/Portfile @ 134913

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

gegl: reconfigure using autogen.sh for intltool 0.51 compatibility.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 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 134913 2015-04-10 17:21:36Z devans@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        15
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 \
25                GEGL is a graph based image processing framework offering image processing and \
26                compositing on large images. GEGL is suitable for projects ranging from small \
27                one-off projects to interactive applications.
28
29checksums       sha1    764cc66cb3c7b261b8fc18a6268a0e264a91d573 \
30                rmd160  cc10365cff27dd42b002bf305f82de54d8c158fa
31
32depends_build   port:pkgconfig \
33                port:intltool \
34                port:w3m \
35                port:python27
36
37depends_lib     port:babl \
38                port:gtk2 \
39                port:jpeg \
40                port:lua \
41                port:openexr \
42                port:exiv2 \
43                port:libopenraw \
44                port:librsvg \
45                port:libsdl \
46                path:lib/libavcodec.dylib:ffmpeg \
47                port:libspiro \
48                port:lensfun \
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
58# reconfigure using autogen.sh for intltool 0.51 compatibility
59
60configure.cmd   ./autogen.sh
61
62compiler.blacklist *gcc*
63
64gobject_introspection yes
65
66configure.python \
67                ${prefix}/bin/python2.7
68
69configure.args  --disable-docs \
70                --disable-silent-rules \
71                --without-graphviz \
72                --without-umfpack
73
74# disable parallel build, see #31498
75use_parallel_build no
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} 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    configure.args-append --enable-workshop
109}
110
111variant graphviz description {Build with graphviz support} {
112    depends_lib-append    path:bin/dot:graphviz
113    configure.args-delete --without-graphviz
114}
115
116#
117# the following dummy variants are used
118# to identify this port's binary dependencies
119# inherited from libsdl and librsvg
120#
121
122variant x11 conflicts quartz {}
123variant quartz conflicts x11 {}
124
125if {![variant_isset quartz]} {
126    default_variants +x11
127}
128
129livecheck.type  regex
130livecheck.url   http://download.gimp.org/pub/${name}/${branch}/
131livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.