Sha256: eb64f0ea78276270099736bcae41cebaefb3bad617f9c48e6c7b65ce2ca774c7

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

From cb9a2cf59b05d088a478186a0043f3513530eff4 Mon Sep 17 00:00:00 2001
From: Petko Bordjukov <bordjukov@gmail.com>
Date: Sat, 19 Nov 2016 12:49:12 +0200
Subject: [PATCH 2/4] Add a configure script

---
 configure | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100755 configure

diff --git a/configure b/configure
new file mode 100755
index 0000000..6af6f2f
--- /dev/null
+++ b/configure
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+for arg in "$@"
+do
+    case "$arg" in
+    -- )
+        option="$arg"
+        ;;
+    * )
+        option="$arg"
+        ;;
+    esac
+    case "$arg" in
+    *=* )
+        optarg=`expr "X$arg" : 'X[^=]*=\(.*\)'`
+        ;;
+    * )
+        optarg=""
+        ;;
+    esac
+    case "$option" in
+    --help | -h )
+        echo "Usage:"
+        echo "    $0 [options]"
+        echo "Options:"
+        echo "    -h, --help              Show this help"
+        echo "    --prefix=PREFIX         Install in the specified prefix"
+        echo "                            [default: /usr/local]"
+        exit 0
+        ;;
+    --prefix=* )
+        prefix="$optarg"
+        shift
+        ;;
+    * )
+        echo "$0: warning: unknown option: $arg"
+        echo "Type \"$0 -help\" for help"
+        ;;
+    esac
+done
+
+sed_config="
+    s|DESTDIR=.*|DESTDIR=$prefix|g
+    s| *\$||
+"
+
+sed -i.bak "$sed_config" Makefile
-- 
2.10.2

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
image_compressor_pack-1.0.0.1 ports/patches/pngcrush/0002-Add-a-configure-script.patch
image_compressor_pack-1.0.0.0 ports/patches/pngcrush/0002-Add-a-configure-script.patch