From c71fa7900f033f9a75fd501d822b4a14d52e8d5c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 21 Jun 2012 12:02:30 -0400 Subject: Version packages, set libdir, fix build system. What was upstream thinking when writing configure? --- (limited to 'patches') diff --git a/patches/01_fix-build-system.patch b/patches/01_fix-build-system.patch new file mode 100644 index 0000000..4e51d8f --- /dev/null +++ b/patches/01_fix-build-system.patch @@ -0,0 +1,46 @@ +Description: Make configure act more like a GNU Autoconf one +Author: "P. J. McDermott" + +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() + { -- cgit v0.9.1