/
Portfile
135 lines (109 loc) · 4.45 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# -*- 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
PortSystem 1.0
PortGroup muniversal 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup gobject_introspection 1.0
name gegl-devel
conflicts gegl-0.4
set git_name gegl
set git_commit 2e0f4234e43618a02c76539b9189361469b56954
set git_date 20180723
version 0.4.7-${git_date}
revision 1
license {GPL-3+ LGPL-3+}
categories graphics
maintainers {devans @dbevans}
platforms darwin
description GEGL is a graph based image processing framework.
long_description GEGL is a graph based image processing framework offering image processing and \
compositing on large images. GEGL is suitable for projects ranging from small \
one-off projects to interactive applications. This is the development version \
based on a recent snapshot of upstream git master.
homepage http://gegl.org/
master_sites https://gitlab.gnome.org/GNOME/${git_name}/-/archive/${git_commit}/
distname ${git_name}-${git_commit}
use_bzip2 yes
checksums rmd160 0984b720f0ff4bdae49cfdcfcc0fce8af83cbd3e \
sha256 61fe3d52c7c11b29fb85d32d3dc84863c6057d4cf9b30aa7f3db8367b5bb015e \
size 23942803
depends_build port:pkgconfig \
port:w3m \
port:python27
depends_lib port:babl-devel \
port:gdk-pixbuf2 \
port:gtk2 \
port:jpeg \
port:lua \
path:bin/dot:graphviz \
port:openexr \
port:exiv2 \
port:gexiv2 \
port:jasper \
port:json-glib \
port:lcms2 \
port:lensfun \
port:libraw \
port:librsvg \
path:lib/libavcodec.dylib:ffmpeg \
port:libspiro \
port:vala \
port:webp
patchfiles patch-configure.ac.diff
post-patch {
# http://trac.macports.org/ticket/35148
if {${os.major} < 10} {
reinplace "s|OpenGL/CGLDevice.h|OpenGL/CGLTypes.h|" ${worksrcpath}/gegl/opencl/cl_gl.h
}
}
gobject_introspection yes
# blacklist compilers that do not support C11 (redefinition of typedef 'GeglDownscale2x2Fun' in gegl-algorithms.h at line 51)
# tweak gcc blacklisting for 10.5 ppc
compiler.blacklist *gcc-3.* *gcc-4.* {clang < 300}
use_autoreconf yes
autoreconf.args -fvi
configure.python ${prefix}/bin/python2.7
configure.args --disable-docs \
--disable-silent-rules \
--without-sdl \
--without-umfpack
# use version specific binary suffix to avoid conflict with gegl, gegl-0.3
post-destroot {
set suffix "-0.4"
foreach bin [glob -nocomplain -tails -directory "${destroot}${prefix}/bin" *] {
move ${destroot}${prefix}/bin/${bin} \
${destroot}${prefix}/bin/${bin}${suffix}
}
}
platform darwin {
if {[variant_isset universal]} {
# In order to build universal on Leopard, you need MacPorts 2.1
set merger_configure_args(x86_64) --build=${build_arch}-apple-${os.platform}${os.version}
set merger_configure_cflags(ppc) -fno-altivec
set merger_configure_cxxflags(ppc) -fno-altivec
} elseif {${build_arch} eq "ppc"} {
configure.cflags-append -fno-altivec
configure.cxxflags-append -fno-altivec
} elseif {${build_arch} eq "x86_64"} {
configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
}
}
variant html_doc description {Build html docs with enscript and asciidoc} {
depends_build-append port:asciidoc
configure.args-delete --disable-docs
configure.args-append --enable-docs
}
variant workshop description {Enable build of workshop operations} {
depends_lib-append port:lensfun
configure.args-append --enable-workshop
}
#
# the following dummy variants are used
# to identify this port's binary dependencies
# inherited from libsdl and librsvg
#
variant x11 conflicts quartz {}
variant quartz conflicts x11 {}
if {![variant_isset quartz]} {
default_variants +x11
}
livecheck.type none