diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template index 594451146f7..8098bb54b1e 100644 --- a/srcpkgs/gimp/template +++ b/srcpkgs/gimp/template @@ -6,7 +6,7 @@ lib32disabled=yes build_style=gnu-configure configure_args="--without-aa --without-gvfs --enable-gimp-console --enable-python --with-gif-compression=lzw --with-libcurl --enable-mp" -hostmakedepends="pkg-config intltool" +hostmakedepends="automake gettext-devel glib-devel libtool pkg-config intltool" makedepends="libpng-devel gtk+-devel lcms2-devel alsa-lib-devel dbus-glib-devel libXmu-devel libXcursor-devel libexif-devel libsoup-devel libwmf-devel librsvg-devel @@ -20,7 +20,16 @@ homepage="https://www.gimp.org" license="GPL-3" distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2" checksum=9187a35cc52b110d78124d7b27b68a68ade14a794c2721314bac6134d2a5638a -nocross="https://build.voidlinux.eu/builders/armv7l_builder/builds/107/steps/shell_3/logs/stdio" + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" dbus-glib-devel gdk-pixbuf-devel pygtk-devel" + configure_args+=" am_cv_python_pythondir=${XBPS_CROSS_BASE}/usr/lib/python2.7/site-packages" + CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7" +fi + +pre_configure() { + NOCONFIGURE=1 autoreconf -fi +} libgimp_package() { short_desc+=" - runtime libraries"