From b248495a39c8b98bd74a3722d40d23543c73c562 Mon Sep 17 00:00:00 2001 From: Beech Rintoul Date: Mon, 29 Nov 2010 01:54:06 +0000 Subject: Fix PREFIX in configure environment. PR: ports/152532 Submitted by: Charlie Kester (maintainer) Approved by: itetcu (implicit) --- x11/fbpanel/Makefile | 2 +- x11/fbpanel/files/patch-configure | 29 +++++++++++++++++++---------- 2 files changed, 20 insertions(+), 11 deletions(-) (limited to 'x11') diff --git a/x11/fbpanel/Makefile b/x11/fbpanel/Makefile index 167be5c474bb..d10a202b9703 100644 --- a/x11/fbpanel/Makefile +++ b/x11/fbpanel/Makefile @@ -21,7 +21,7 @@ USE_GNOME= gtk20 HAS_CONFIGURE= yes USE_GMAKE= yes -CONFIGURE_ENV+= PREFIX=${PREFIX} +CONFIGURE_ARGS+= --prefix=${PREFIX} MAN1= fbpanel.1 MANCOMPRESSED= no diff --git a/x11/fbpanel/files/patch-configure b/x11/fbpanel/files/patch-configure index 532edc3e51c8..67c79362e883 100644 --- a/x11/fbpanel/files/patch-configure +++ b/x11/fbpanel/files/patch-configure @@ -1,11 +1,20 @@ ---- ./configure.orig 2010-04-04 02:02:40.000000000 -0700 -+++ ./configure 2010-11-17 11:11:33.000000000 -0800 -@@ -324,7 +324,7 @@ - add_var target "stab: configure for arch" "" +--- ./configure.orig 2010-04-04 11:02:40.000000000 +0200 ++++ ./configure 2010-11-22 19:41:52.000000000 +0100 +@@ -92,7 +92,7 @@ + { + local var val A - # N.B. order is important --add_var prefix "install architecture-independent files" /usr -+add_var prefix "install architecture-independent files" '${PREFIX}' - add_var eprefix "install architecture-dependent files" '$prefix' - add_var bindir "user executables" '$eprefix/bin' - add_var sbindir "system executables" '$eprefix/sbin' +- [ "$(sed -e 's/--[^=]\+=[^=]*/AA/' <<< $1)" != AA ] && return 1 ++ [ "$(sed -E -e 's/--[^=]+=[^=]*/AA/' <<< $1)" != AA ] && return 1 + + A=${1:2} + var=${A%%=*} +@@ -167,7 +167,7 @@ + + function check_feature () + { +- [ "$(sed -e 's/--\(enable\|disable\)-.\+/AA/' <<< $1)" != AA ] && return 1 ++ [ "$(sed -E -e 's/--(enable|disable)-.+/AA/' <<< $1)" != AA ] && return 1 + A=${1:2} + var=${A#*-} + val=${A%%-*} -- cgit v1.2.3