e733df
diff -up gegl-0.2.0/configure.ac.libopenraw gegl-0.2.0/configure.ac
e733df
--- gegl-0.2.0/configure.ac.libopenraw	2016-12-03 08:11:31.968387802 +0100
e733df
+++ gegl-0.2.0/configure.ac	2016-12-03 08:12:19.398987931 +0100
e733df
@@ -790,7 +790,7 @@ AC_ARG_WITH(libopenraw, [  --without-lib
e733df
 
e733df
 have_libopenraw="no"
e733df
 if test "x$with_libopenraw" != "xno"; then
e733df
-  PKG_CHECK_MODULES(OPENRAW, libopenraw-1.0 >= openraw_required_version,
e733df
+  PKG_CHECK_MODULES(OPENRAW, libopenraw-0.1 >= openraw_required_version,
e733df
     have_libopenraw="yes",
e733df
     have_libopenraw="no  (openraw library not found)")
e733df
 fi
e733df
diff -up gegl-0.2.0/configure.libopenraw gegl-0.2.0/configure
e733df
--- gegl-0.2.0/configure.libopenraw	2016-12-03 08:11:33.954412931 +0100
e733df
+++ gegl-0.2.0/configure	2016-12-03 08:12:15.506938686 +0100
e733df
@@ -20760,12 +20760,12 @@ if test -n "$OPENRAW_CFLAGS"; then
e733df
     pkg_cv_OPENRAW_CFLAGS="$OPENRAW_CFLAGS"
e733df
  elif test -n "$PKG_CONFIG"; then
e733df
     if test -n "$PKG_CONFIG" && \
e733df
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenraw-1.0 >= 0.0.5\""; } >&5
e733df
-  ($PKG_CONFIG --exists --print-errors "libopenraw-1.0 >= 0.0.5") 2>&5
e733df
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenraw-0.1 >= 0.0.5\""; } >&5
e733df
+  ($PKG_CONFIG --exists --print-errors "libopenraw-0.1 >= 0.0.5") 2>&5
e733df
   ac_status=$?
e733df
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
e733df
   test $ac_status = 0; }; then
e733df
-  pkg_cv_OPENRAW_CFLAGS=`$PKG_CONFIG --cflags "libopenraw-1.0 >= 0.0.5" 2>/dev/null`
e733df
+  pkg_cv_OPENRAW_CFLAGS=`$PKG_CONFIG --cflags "libopenraw-0.1 >= 0.0.5" 2>/dev/null`
e733df
 		      test "x$?" != "x0" && pkg_failed=yes
e733df
 else
e733df
   pkg_failed=yes
e733df
@@ -20777,12 +20777,12 @@ if test -n "$OPENRAW_LIBS"; then
e733df
     pkg_cv_OPENRAW_LIBS="$OPENRAW_LIBS"
e733df
  elif test -n "$PKG_CONFIG"; then
e733df
     if test -n "$PKG_CONFIG" && \
e733df
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenraw-1.0 >= 0.0.5\""; } >&5
e733df
-  ($PKG_CONFIG --exists --print-errors "libopenraw-1.0 >= 0.0.5") 2>&5
e733df
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenraw-0.1 >= 0.0.5\""; } >&5
e733df
+  ($PKG_CONFIG --exists --print-errors "libopenraw-0.1 >= 0.0.5") 2>&5
e733df
   ac_status=$?
e733df
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
e733df
   test $ac_status = 0; }; then
e733df
-  pkg_cv_OPENRAW_LIBS=`$PKG_CONFIG --libs "libopenraw-1.0 >= 0.0.5" 2>/dev/null`
e733df
+  pkg_cv_OPENRAW_LIBS=`$PKG_CONFIG --libs "libopenraw-0.1 >= 0.0.5" 2>/dev/null`
e733df
 		      test "x$?" != "x0" && pkg_failed=yes
e733df
 else
e733df
   pkg_failed=yes
e733df
@@ -20803,9 +20803,9 @@ else
e733df
         _pkg_short_errors_supported=no
e733df
 fi
e733df
         if test $_pkg_short_errors_supported = yes; then
e733df
-	        OPENRAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenraw-1.0 >= 0.0.5" 2>&1`
e733df
+	        OPENRAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenraw-0.1 >= 0.0.5" 2>&1`
e733df
         else
e733df
-	        OPENRAW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenraw-1.0 >= 0.0.5" 2>&1`
e733df
+	        OPENRAW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenraw-0.1 >= 0.0.5" 2>&1`
e733df
         fi
e733df
 	# Put the nasty error message in config.log where it belongs
e733df
 	echo "$OPENRAW_PKG_ERRORS" >&5
e733df
diff -up gegl-0.2.0/operations/external/openraw.c.libopenraw gegl-0.2.0/operations/external/openraw.c
e733df
--- gegl-0.2.0/operations/external/openraw.c.libopenraw	2016-12-03 08:28:14.284333843 +0100
e733df
+++ gegl-0.2.0/operations/external/openraw.c	2016-12-03 08:29:01.495751180 +0100
e733df
@@ -116,7 +116,7 @@ load_buffer (GeglOperation *operation)
e733df
       goto clean_file;
e733df
     }
e733df
 
e733df
-  if(or_rawdata_format (rawdata) != OR_DATA_TYPE_CFA)
e733df
+  if(or_rawdata_format (rawdata) != OR_DATA_TYPE_RAW)
e733df
     {
e733df
       goto clean_file;
e733df
     }