Sha256: b6e5d328df77b6c2444baa53948eb8e11e57ca993288e082c1485f1440131730

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

From bf6f5c097a8dd88620dff316df85c3917ba72269 Mon Sep 17 00:00:00 2001
From: Petko Bordjukov <bordjukov@gmail.com>
Date: Sun, 22 Nov 2015 18:46:05 +0200
Subject: [PATCH 2/3] Add a configure script

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

diff --git a/configure b/configure
new file mode 100755
index 0000000..59a425f
--- /dev/null
+++ b/configure
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+TEMP=`getopt -o '' --long enable-static,disable-shared,prefix:,host: \
+     -n 'configure' -- "$@"`
+
+if [ $? != 0 ] ; then exit 1 ; fi
+
+# Note the quotes around `$TEMP': they are essential!
+eval set -- "$TEMP"
+
+while true ; do
+    case "$1" in
+        --host) shift 2 ;;
+        --enable-static) shift ;;
+        --disable-shared) shift ;;
+        --prefix)
+            dir="$( echo $2 | sed 's_/_\\/_g' )"
+            sed -i "s/DESTDIR=.*/DESTDIR=${dir}/" Makefile; shift 2 ;;
+        --) shift ; break ;;
+        *) echo "Internal error!" ; exit 1 ;;
+    esac
+done
-- 
2.8.3

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
image_compressor_pack-0.1.1.rc2 ports/patches/pngcrush/0002-Add-a-configure-script.patch