blob: 717716e1f930377281acc0f66659f19a32da6fed [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "The GIMP is the GNU Image Manipulation Program"
2HOMEPAGE = "http://www.gimp.org"
3SECTION = "x11/graphics"
4LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e"
6
7DEPENDS = " \
Andrew Geissler97771a32021-03-05 15:23:11 -06008 alsa-lib \
9 atk \
10 cairo \
11 fontconfig \
12 freetype \
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 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 \
Andrew Geissler97771a32021-03-05 15:23:11 -060025 libmng \
Andrew Geissler82c905d2020-04-13 13:39:40 -050026 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
40inherit features_check gnomebase gtk-icon-cache gtk-doc mime-xdg
41
42REQUIRED_DISTRO_FEATURES = "x11"
43
44SHPV = "${@gnome_verdir("${PV}")}"
45
Andrew Geisslerac970dd2021-02-12 15:32:45 -060046SRC_URI = "https://download.gimp.org/pub/${BPN}/v${SHPV}/${BP}.tar.bz2 \
47 file://0001-configure.ac-fix-with-linux-input-handling-with-upco.patch \
48 "
Andrew Geisslerbbbd5f42020-10-30 15:42:48 -050049SRC_URI[sha256sum] = "2db84b57f3778d80b3466d7c21a21d22e315c7b062de2883cbaaeda9a0f618bb"
Andrew Geissler82c905d2020-04-13 13:39:40 -050050
51EXTRA_OECONF = "--disable-python \
52 --without-webkit \
Andrew Geissler97771a32021-03-05 15:23:11 -060053 --disable-check-update \
Andrew Geissler82c905d2020-04-13 13:39:40 -050054 --without-wmf"
55
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050056EXTRA_OECONF_append_mipsarch = " --disable-vector-icons"
Andrew Geissler32b11992021-03-31 13:37:05 -050057EXTRA_OECONF_append_libc-musl_riscv32 = " --disable-vector-icons"
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050058EXTRA_OECONF_append_libc-musl_x86 = " --disable-vector-icons"
Andrew Geissler97771a32021-03-05 15:23:11 -060059EXTRA_OECONF_append_arm = " --disable-vector-icons"
Andrew Geissler82c905d2020-04-13 13:39:40 -050060
61do_configure_append() {
62 find ${B} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
63 find ${B} -name Makefile | xargs sed -i s:'-I/usr/include':'-I${STAGING_INCDIR}':g
64}
65
66do_compile_prepend() {
67 # Let native babl/gegl find their plugins
68 export BABL_PATH=`find ${STAGING_LIBDIR_NATIVE} -maxdepth 1 -name 'babl-*'`
69 export GEGL_PATH=`find ${STAGING_LIBDIR_NATIVE} -maxdepth 1 -name 'gegl-*'`
70}
71
72FILES_${PN} += "${datadir}/metainfo"
73
74RDEPENDS_${PN} += "mypaint-brushes-1.0"