Sha256: 9e5efb75aa69cbaff65eefb318c144c53036191da7cbecb2c6a29902c175a5a3

Contents?: true

Size: 1.36 KB

Versions: 4

Compression:

Stored size: 1.36 KB

Contents

From 28ea2dcad9c0d706099f9466edd453c0220d2a55 Mon Sep 17 00:00:00 2001
From: Petko Bordjukov <bordjukov@gmail.com>
Date: Sun, 22 Nov 2015 17:57:21 +0200
Subject: [PATCH 3/5] Make the configure script set the DESTDIR

---
 configure | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/configure b/configure
index 1a24852..b2407ee 100755
--- a/configure
+++ b/configure
@@ -1 +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.8.3

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
image_compressor_pack-1.0.0.1 ports/patches/jhead/0003-Make-the-configure-script-set-the-DESTDIR.patch
image_compressor_pack-1.0.0.0 ports/patches/jhead/0003-Make-the-configure-script-set-the-DESTDIR.patch
image_compressor_pack-0.1.3 ports/patches/jhead/0003-Make-the-configure-script-set-the-DESTDIR.patch
image_compressor_pack-0.1.1 ports/patches/jhead/0003-Make-the-configure-script-set-the-DESTDIR.patch