From e92b2b861f3d9b17b12626696b109e28af4e42a8 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Mon, 23 Sep 2013 16:17:26 +0200 Subject: [PATCH] fix lcms2 patch --- sources | 2 +- xsane-0.999-lcms2.patch | 30 +++++++++++++----------------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/sources b/sources index 290bf9d..9ec1b5c 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ bd62603e67d7472b93cee42f57ae14b8 xsane-256x256.png 9927f21e1ab6ba96315e7f0e30746deb xsane-0.999.tar.gz -a6e5b3d9faa6ab53ee2509f6a673cf0e xsane-0.999-7-autoconf.patch.bz2 +546080267e72a0e4fa2e4e9a61de64cd xsane-0.999-7-autoconf.patch.bz2 diff --git a/xsane-0.999-lcms2.patch b/xsane-0.999-lcms2.patch index 66196e5..c3d696c 100644 --- a/xsane-0.999-lcms2.patch +++ b/xsane-0.999-lcms2.patch @@ -1,52 +1,48 @@ -From 056fce58bb3ec706c7199531ac523256dc491cf3 Mon Sep 17 00:00:00 2001 +From 30af0e2edbf061b71bed9536d826894449f0390d Mon Sep 17 00:00:00 2001 From: Nils Philippsen -Date: Mon, 23 Sep 2013 14:59:41 +0200 +Date: Mon, 23 Sep 2013 16:11:31 +0200 Subject: [PATCH] patch: lcms2 Squashed commit of the following: -commit 7400fe13858cc5e1ce224d95948aa633e629d017 +commit f975accf7e1a08438b63580ea848457d373200f5 Author: Nils Philippsen Date: Mon Sep 23 14:53:45 2013 +0200 Add support for lcms 2.x. --- - configure.in | 25 +++++++++++++++++---- + configure.in | 22 ++++++++++++++---- include/config.h.in | 8 ++++++- src/xsane-preview.c | 6 +++-- src/xsane-save.c | 38 ++++++++++++++++++++++++++----- src/xsane-viewer.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++--- src/xsane.h | 8 ++++++- - 6 files changed, 133 insertions(+), 17 deletions(-) + 6 files changed, 130 insertions(+), 17 deletions(-) diff --git a/configure.in b/configure.in -index df7b114..01ef391 100644 +index df7b114..3659c97 100644 --- a/configure.in +++ b/configure.in -@@ -129,8 +129,21 @@ if test "${USE_TIFF}" = "yes"; then - AC_CHECK_LIB(tiff, TIFFOpen) +@@ -130,7 +130,17 @@ if test "${USE_TIFF}" = "yes"; then fi -+AC_DEFINE(HAVE_LIBLCMS, [], [Define if LCMS is to be used.]) -+AC_DEFINE(HAVE_LIBLCMS1, [], [Define if you have liblcms.]) -+AC_DEFINE(HAVE_LIBLCMS2, [], [Define if you have liblcms2.]) -+ if test "${USE_LCMS}" = "yes"; then - AC_CHECK_LIB(lcms, cmsOpenProfileFromFile) + AC_SEARCH_LIBS(cmsOpenProfileFromFile, [lcms2 lcms]) ++ if test "${ac_cv_search_cmsOpenProfileFromFile}" != "no"; then ++ AC_DEFINE(HAVE_LIBLCMS, 1, [Define if LCMS is to be used.]) ++ fi + if test "${ac_cv_search_cmsOpenProfileFromFile}" == "-llcms2"; then -+ AC_DEFINE(HAVE_LIBLCMS) -+ AC_DEFINE(HAVE_LIBLCMS2) ++ AC_DEFINE(HAVE_LIBLCMS2, 1, [Define if you have liblcms2.]) + else + if test "${ac_cv_search_cmsOpenProfileFromFile}" == "-llcms"; then -+ AC_DEFINE(HAVE_LIBLCMS) -+ AC_DEFINE(HAVE_LIBLCMS1) ++ AC_DEFINE(HAVE_LIBLCMS1, 1, [Define if you have liblcms.]) + fi + fi fi dnl Checks for library functions. -@@ -294,10 +307,14 @@ else +@@ -294,10 +304,14 @@ else echo "* - PNG support deactivated *" fi