blob: 4526839ad645105bf019a8355f3bae27857a044e [file] [log] [blame]
Patrick Williamsac13d5f2023-11-24 18:59:46 -06001SUMMARY = "The GIMP is the GNU Image Manipulation Program"
2HOMEPAGE = "http://www.gimp.org"
3SECTION = "x11/graphics"
4LICENSE = "GPL-3.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e"
6
7DEPENDS = " \
8 alsa-lib \
9 atk \
10 cairo \
11 fontconfig \
12 freetype \
13 gdk-pixbuf-native \
14 intltool-native \
15 libxslt-native \
16 gegl-native \
17 dbus-glib \
18 gtk+ \
19 babl \
20 gegl \
21 libmypaint \
22 mypaint-brushes-1.0 \
23 gexiv2 \
24 jpeg \
25 libmng \
26 libpng \
27 libexif \
28 tiff \
29 lcms \
30 poppler \
31 poppler-data \
32 jasper \
33 bzip2 \
34 libgudev \
35 libmng \
36 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxmu libxpm', '', d)} \
37"
38DEPENDS:append:libc-musl = " libexecinfo"
39
40GNOMEBASEBUILDCLASS = "autotools"
41inherit features_check gnomebase gtk-icon-cache gtk-doc mime-xdg
42
43REQUIRED_DISTRO_FEATURES = "x11"
44
45SHPV = "${@gnome_verdir("${PV}")}"
46
47SRC_URI = "https://download.gimp.org/pub/${BPN}/v${SHPV}/${BP}.tar.bz2 \
48 file://0001-configure-Keep-first-line-of-compiler-version-string.patch \
49 file://0001-libtool-Do-not-add-build-time-library-paths-to-LD_LI.patch"
50SRC_URI[sha256sum] = "3d3bc3c69a4bdb3aea9ba2d5385ed98ea03953f3857aafd1d6976011ed7cdbb2"
51
52EXTRA_OECONF = "--disable-python \
53 --without-webkit \
54 --disable-check-update \
55 --without-wmf"
56
57EXTRA_OECONF += "${@oe.utils.conditional('SITEINFO_BITS', '32', ' --disable-vector-icons', '', d)}"
58
59do_configure:append() {
60 find ${B} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
61 find ${B} -name Makefile | xargs sed -i s:'-I/usr/include':'-I${STAGING_INCDIR}':g
62}
63
64do_compile:prepend() {
65 # Let native babl/gegl find their plugins
66 export BABL_PATH=`find ${STAGING_LIBDIR_NATIVE} -maxdepth 1 -name 'babl-*'`
67 export GEGL_PATH=`find ${STAGING_LIBDIR_NATIVE} -maxdepth 1 -name 'gegl-*'`
68}
69
70FILES:${PN} += "${datadir}/metainfo"
71
72RDEPENDS:${PN} += "mypaint-brushes-1.0"