1SUMMARY="A graph based image processing framework"
2DESCRIPTION="GEGL (Generic Graphics Library) is a data flow based image processing framework, \
3providing floating point processing and non-destructive image processing capabilities to GNU \
4Image Manipulation Program and other projects (imgflo, GNOME Photos, gcut, iconographer, ���)
5
6With GEGL you chain together processing operations to represent the desired image processing \
7pipeline. GEGL provides operations for image loading and storing, color adjustments, GIMPs \
8artistic filters and more forms of image processing GEGL can also be used from the commandline."
9HOMEPAGE="https://gegl.org/"
10COPYRIGHT="��yvind Kol��s"
11LICENSE="GNU LGPL v3"
12REVISION="1"
13SOURCE_URI="https://download.gimp.org/pub/gegl/0.4/gegl-$portVersion.tar.xz"
14CHECKSUM_SHA256="418c26d94be8805d7d98f6de0c6825ca26bd74fcacb6c188da47533d9ee28247"
15PATCHES="gegl-$portVersion.patchset"
16
17ARCHITECTURES="all !x86_gcc2"
18SECONDARY_ARCHITECTURES="x86"
19
20PROVIDES="
21	gegl$secondaryArchSuffix = $portVersion compat >= 0
22	cmd:gegl$secondaryArchSuffix
23	cmd:gegl_imgcmp$secondaryArchSuffix
24	lib:libgegl_0.4$secondaryArchSuffix = 0.447.1 compat >= 0
25	lib:libgegl_sc_0.4$secondaryArchSuffix = $portVersion compat >= 0
26	lib:libgegl_npd_0.4$secondaryArchSuffix = $portVersion compat >= 0
27	"
28REQUIRES="
29	haiku$secondaryArchSuffix
30	lib:libavcodec$secondaryArchSuffix
31	lib:libavformat$secondaryArchSuffix
32	lib:libavutil$secondaryArchSuffix
33	lib:libbabl_0.1$secondaryArchSuffix
34	lib:libcairo$secondaryArchSuffix
35	lib:libfribidi$secondaryArchSuffix
36	lib:libgdk_pixbuf_2.0$secondaryArchSuffix
37	lib:libgexiv2$secondaryArchSuffix
38	lib:libglib_2.0$secondaryArchSuffix
39	lib:libgomp$secondaryArchSuffix
40	lib:libjpeg$secondaryArchSuffix
41	lib:libjson_glib_1.0$secondaryArchSuffix
42	lib:libintl$secondaryArchSuffix
43	lib:liblcms2$secondaryArchSuffix
44	lib:liblensfun$secondaryArchSuffix
45	lib:libnsgif$secondaryArchSuffix
46	lib:libOpenEXR_3_0$secondaryArchSuffix
47	lib:libpango_1.0$secondaryArchSuffix
48	lib:libpangocairo_1.0$secondaryArchSuffix
49	lib:libpangoft2_1.0$secondaryArchSuffix
50	lib:libpng16$secondaryArchSuffix
51	lib:libpoppler$secondaryArchSuffix
52	lib:libpoppler_glib$secondaryArchSuffix
53	lib:libraw$secondaryArchSuffix
54	lib:librsvg_2$secondaryArchSuffix
55	lib:libtiff$secondaryArchSuffix
56	lib:libumfpack$secondaryArchSuffix
57	lib:libwebp$secondaryArchSuffix
58	lib:libz$secondaryArchSuffix
59	"
60
61PROVIDES_devel="
62	gegl${secondaryArchSuffix}_devel = $portVersion compat >= 0
63	devel:libgegl_0.4$secondaryArchSuffix = 0.447.1 compat >= 0
64	devel:libgegl_sc_0.4$secondaryArchSuffix = $portVersion compat >= 0
65	devel:libgegl_npd_0.4$secondaryArchSuffix = $portVersion compat >= 0
66	"
67REQUIRES_devel="
68	gegl$secondaryArchSuffix == $portVersion base
69	"
70
71BUILD_REQUIRES="
72	haiku${secondaryArchSuffix}_devel
73	devel:libavcodec$secondaryArchSuffix
74	devel:libavformat$secondaryArchSuffix
75	devel:libbabl_0.1$secondaryArchSuffix
76	devel:libcairo$secondaryArchSuffix
77	devel:libfribidi$secondaryArchSuffix
78	devel:libgdk_pixbuf_2.0$secondaryArchSuffix
79	devel:libgexiv2$secondaryArchSuffix
80	devel:libglib_2.0$secondaryArchSuffix
81	devel:libgomp$secondaryArchSuffix
82	devel:libjpeg$secondaryArchSuffix
83	devel:libjson_glib_1.0$secondaryArchSuffix
84	devel:liblcms2$secondaryArchSuffix
85	devel:liblensfun$secondaryArchSuffix
86	devel:libnsgif$secondaryArchSuffix
87	devel:libOpenEXR_3_0$secondaryArchSuffix
88	devel:libpango_1.0$secondaryArchSuffix
89	devel:libpangocairo_1.0$secondaryArchSuffix
90	devel:libpangoft2_1.0$secondaryArchSuffix
91	devel:libpng16$secondaryArchSuffix
92	devel:libpoppler$secondaryArchSuffix >= 131
93	devel:libraw$secondaryArchSuffix
94	devel:librsvg_2$secondaryArchSuffix
95	devel:libtiff$secondaryArchSuffix
96	devel:libumfpack$secondaryArchSuffix
97	devel:libwebp$secondaryArchSuffix
98	devel:libX11$secondaryArchSuffix
99	devel:libXext$secondaryArchSuffix
100	devel:libz$secondaryArchSuffix
101	"
102BUILD_PREREQUIRES="
103	cmd:find
104	cmd:gcc$secondaryArchSuffix
105	cmd:make
106	cmd:meson
107	cmd:ninja
108	cmd:perl
109	cmd:pkg_config$secondaryArchSuffix
110	"
111
112BUILD()
113{
114	meson \
115		--buildtype=release \
116		--prefix=$prefix \
117		--libdir=$libDir \
118		--libexecdir=$binDir \
119		--datadir=$dataDir \
120		--localedir=$dataDir/locale \
121		--includedir=$includeDir \
122		--sysconfdir=$settingsDir \
123		-Dintrospection=false \
124		-Dpango=enabled \
125		-Dpangocairo=enabled \
126		_build
127
128	cd _build
129	ninja
130}
131
132INSTALL()
133{
134	cd _build
135	ninja install
136
137	rm $libDir/gegl-0.4/*.json
138
139	prepareInstalledDevelLibs libgegl-0.4 libgegl-sc-0.4 libgegl-npd-0.4
140	fixPkgconfig
141
142	# devel package
143	packageEntries devel \
144		$dataDir \
145		$developDir
146}
147