Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "The GIMP is the GNU Image Manipulation Program" |
| 2 | HOMEPAGE = "http://www.gimp.org" |
| 3 | SECTION = "x11/graphics" |
| 4 | LICENSE = "GPLv3" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e" |
| 6 | |
| 7 | DEPENDS = " \ |
| 8 | gdk-pixbuf-native \ |
| 9 | intltool-native \ |
| 10 | libxslt-native \ |
| 11 | gegl-native \ |
| 12 | dbus-glib \ |
| 13 | gtk+ \ |
| 14 | babl \ |
| 15 | gegl \ |
| 16 | libmypaint \ |
| 17 | mypaint-brushes-1.0 \ |
| 18 | gexiv2 \ |
| 19 | jpeg \ |
| 20 | libpng \ |
| 21 | libexif \ |
| 22 | tiff \ |
| 23 | lcms \ |
| 24 | poppler \ |
| 25 | poppler-data \ |
| 26 | jasper \ |
| 27 | bzip2 \ |
| 28 | libgudev \ |
| 29 | libmng \ |
| 30 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxmu libxpm', '', d)} \ |
| 31 | " |
| 32 | DEPENDS_append_libc-musl = " libexecinfo" |
| 33 | |
| 34 | inherit features_check gnomebase gtk-icon-cache gtk-doc mime-xdg |
| 35 | |
| 36 | REQUIRED_DISTRO_FEATURES = "x11" |
| 37 | |
| 38 | SHPV = "${@gnome_verdir("${PV}")}" |
| 39 | |
| 40 | SRC_URI = "https://download.gimp.org/pub/${BPN}/v${SHPV}/${BP}.tar.bz2" |
| 41 | SRC_URI[md5sum] = "096d04ffb2c4559cb2152f507ff31c9c" |
| 42 | SRC_URI[sha256sum] = "65bfe111e8eebffd3dde3016ccb507f9948d2663d9497cb438d9bb609e11d716" |
| 43 | |
| 44 | EXTRA_OECONF = "--disable-python \ |
| 45 | --without-webkit \ |
| 46 | --without-wmf" |
| 47 | |
| 48 | EXTRA_OECONF_append_libc-musl_mipsarch = " --disable-vector-icons" |
| 49 | EXTRA_OECONF_append_toolchain-clang_arm = " --disable-vector-icons" |
| 50 | |
| 51 | do_configure_append() { |
| 52 | find ${B} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g |
| 53 | find ${B} -name Makefile | xargs sed -i s:'-I/usr/include':'-I${STAGING_INCDIR}':g |
| 54 | } |
| 55 | |
| 56 | do_compile_prepend() { |
| 57 | # Let native babl/gegl find their plugins |
| 58 | export BABL_PATH=`find ${STAGING_LIBDIR_NATIVE} -maxdepth 1 -name 'babl-*'` |
| 59 | export GEGL_PATH=`find ${STAGING_LIBDIR_NATIVE} -maxdepth 1 -name 'gegl-*'` |
| 60 | } |
| 61 | |
| 62 | FILES_${PN} += "${datadir}/metainfo" |
| 63 | |
| 64 | RDEPENDS_${PN} += "mypaint-brushes-1.0" |