From db72d16f3d672e674899d6297dbdbe2e687dcc58 Mon Sep 17 00:00:00 2001 From: Alex Kozlov Date: Wed, 22 Mar 2017 22:50:16 +0000 Subject: - Update to 2.9.0 - Remove MAKE_ARGS, CPPFLAGS, LDFLAGS - handled by configure - Use configure to handle DEBUG option - Add description for OPTIMIZED_FLAGS - Disable OPENMP option for now - impossible to use without significant manual intervention on 10.x-11.x (needs devel/llvm39 or modern gcc) - Use configure to handle SSE option (only provided on i386/amd64, enabled by default on amd64) - Conditionally install DOCS PR: 217987 Submitted by: Anton Yuzhaninov (except OPENMP stuff) --- graphics/pngquant/files/patch-lib_configure | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'graphics/pngquant/files/patch-lib_configure') diff --git a/graphics/pngquant/files/patch-lib_configure b/graphics/pngquant/files/patch-lib_configure index da66afb0f590..15099467da5e 100644 --- a/graphics/pngquant/files/patch-lib_configure +++ b/graphics/pngquant/files/patch-lib_configure @@ -1,11 +1,12 @@ -Index: lib/configure +--- lib/configure.orig 2017-03-02 11:48:03 UTC ++++ lib/configure @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh CONFIG="config.mk" PREFIX="/usr/local" -@@ -80,7 +80,7 @@ +@@ -79,7 +79,7 @@ done # If someone runs sudo make install as very first command, and configure later, # $CONFIG cannot be overwritten, and must be deleted before continuing. @@ -14,20 +15,22 @@ Index: lib/configure echo "Cannot overwrite file $CONFIG! Please delete it." exit 1 fi -@@ -135,10 +135,8 @@ - +@@ -138,12 +138,8 @@ fi # SSE if [ "$SSE" = 'auto' ]; then -- if [[ "$(uname -m)" =~ (amd|x86_)64 || -- "$(grep -E -m1 "^flags" /proc/cpuinfo)" =~ "sse" ]]; then -- SSE=1 + SSE=0 +- if type uname > /dev/null; then +- if [[ "$(uname -m)" =~ "amd64" || "$(uname -m)" =~ "x86_64" || +- "$(grep -E -m1 "^flags" /proc/cpuinfo)" =~ "sse" ]]; then +- SSE=1 +- fi - fi + echo $(uname -m) | grep -E -q '(amd|x86_)64' && SSE=1 + grep -E -m1 -q '^flags.*sse' /proc/cpuinfo 2>/dev/null && SSE=1 fi if [ "$SSE" -eq 1 ]; then -@@ -161,9 +159,8 @@ +@@ -166,9 +162,8 @@ if [ -n "$OPENMP" ]; then else OPENMPFLAGS="-fopenmp" fi -- cgit v1.2.3