From b96bf4fcea99a2079ee8d120f15701a55f3dec10 Mon Sep 17 00:00:00 2001 From: Minto van der Sluis Date: Sun, 2 Sep 2007 17:21:40 +0200 Subject: [PATCH] Modified gimp to find lcms where ever it is installed. - existing gimp could only find lcms when installed in the default location. - Now even works when installed in the non default location. --- graphic/gimp/gimp.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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'