Sha256: d44da18bee1ea541587c29b6414ab2da3810bb0ae8f2048130599105f081f4f2

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

From 28212c119b915202ae3f53f77bd28b68ad481458 Mon Sep 17 00:00:00 2001
From: Petko Bordjukov <bordjukov@gmail.com>
Date: Thu, 9 Jun 2016 03:11:07 +0300
Subject: [PATCH 5/7] Remove lcms2 check

---
 configure.bash | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/configure.bash b/configure.bash
index 0ada8a5..4b8c80e 100755
--- a/configure.bash
+++ b/configure.bash
@@ -15,7 +15,7 @@ else
     COCOA_READER=0
     LCMS2=auto
 fi
-LDFLAGS="-lpng -lz -static"
+LDFLAGS="-lpng -lz -llcms2 -lpthread -static"
 EXTRA_CFLAGS=
 EXTRA_LDFLAGS=
 
@@ -359,20 +359,7 @@ if [ "$HAS_LIBPNG" -eq 0 ]; then
     error "libpng" "not found (try: $LIBPNG_CMD)"
 fi
 
-# lcms2
-if [ "$LCMS2" != 0 ]; then
-    if find_library "lcms2" "lcms2" "lcms2.h" "liblcms2.a" "liblcms2.$SOLIBSUFFIX*"; then
-        cflags "-DUSE_LCMS=1"
-    else
-        if [ "$LCMS2" = 'auto' ]; then
-            status "lcms2" "no"
-        else
-            error "lcms2" "not found (please install libcms2-devel package)"
-        fi
-    fi
-else
-    status "lcms2" "no"
-fi
+cflags "-DUSE_LCMS=1"
 
 echo
 
-- 
2.8.3

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
image_compressor_pack-0.1.3 ports/patches/pngquant/0005-Remove-lcms2-check.patch