summaryrefslogtreecommitdiffstats
path: root/patches/01_fix-build-system.patch
blob: 4e51d8fcc3377e93ddfcbaf911dbf30156a8c146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Description: Make configure act more like a GNU Autoconf one
Author: "P. J. McDermott" <pjm@nac.net>

diff -Naur opkhelper-1.0.0.orig/configure opkhelper-1.0.0/configure
--- opkhelper-1.0.0.orig/configure	2012-04-25 00:43:02.492677186 -0400
+++ opkhelper-1.0.0/configure	2012-06-21 11:52:54.867945276 -0400
@@ -98,23 +98,19 @@
 			shift 2
 			;;
 		--bindir)
-			# Leave PREFIX unexpanded for now, in case it isn't set yet.
-			BINDIR="\${PREFIX}/${2}"
+			BINDIR="${2}"
 			shift 2
 			;;
 		--libdir)
-			# Leave PREFIX unexpanded for now, in case it isn't set yet.
-			LIBDIR="\${PREFIX}/${2}"
+			LIBDIR="${2}"
 			shift 2
 			;;
 		--datadir)
-			# Leave PREFIX unexpanded for now, in case it isn't set yet.
-			DATADIR="\${PREFIX}/${2}"
+			DATADIR="${2}"
 			shift 2
 			;;
 		--mandir)
-			# Leave PREFIX unexpanded for now, in case it isn't set yet.
-			MANDIR="\${PREFIX}/${2}"
+			MANDIR="${2}"
 			shift 2
 			;;
 		--)
@@ -152,11 +148,6 @@
 if [ -z "${MANDIR}" ]; then
 	MANDIR=${PREFIX}/share/man
 fi
-# Expand PREFIX if it's there.
-eval "BINDIR=${BINDIR}"
-eval "LIBDIR=${LIBDIR}"
-eval "DATADIR=${DATADIR}"
-eval "MANDIR=${MANDIR}"
 
 find_dependency()
 {