diff --git a/graphic/gimp/gimp.conf b/graphic/gimp/gimp.conf index 438c613d9..aa9d122df 100644 --- a/graphic/gimp/gimp.conf +++ b/graphic/gimp/gimp.conf @@ -16,7 +16,6 @@ # --enable-mp support multiple processors (default=no) -# --enable-python build python extension (by default disabled) var_append extraconfopt " " "--enable-default-binary" @@ -24,6 +23,16 @@ var_append extraconfopt " " "--enable-default-binary" # check for the availability of gimp-print pkginstalled gimp-print || var_append confopt ' ' "--disable-print" +pkginstalled python && var_append confopt ' ' "--enable-python" + +if pkginstalled lcms; then + var_append confopt ' ' "--with-lcms" + # Unfortunately gimp does not use pkg-config properly. + var_append GCC_WRAPPER_APPEND ' ' "`pkg-config lcms --cflags --libs-only +-L`" +else + var_append confopt ' ' "--without-lcms" +fi # most plugins want gimptool without wrong version number hook_add postmake 5 'ln -sf $root/$bindir/gimptool-2.0 $root/$bindir/gimptool'