From f2b2ed3b8f488cd5f2435414f2f476305a1ac9fd Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Fri, 12 Feb 2010 15:53:51 +0100
Subject: use prefixed pkg-config in package vmime

---
 src/vmime.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/vmime.mk b/src/vmime.mk
index 61d9175..2c1ddd8 100644
--- a/src/vmime.mk
+++ b/src/vmime.mk
@@ -19,12 +19,18 @@ define $(PKG)_UPDATE
 endef
 
 define $(PKG)_BUILD
-    # ansi and pedantic are too strict for mingw
+    # The configure script will make the real configuration, but
+    # we need scons to generate configure.in, Makefile.am etc.
+    # ansi and pedantic are too strict for mingw.
     # http://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435
     $(SED) "s/'-ansi', //;" -i '$(1)/SConstruct'
     $(SED) "s/'-pedantic', //;" -i '$(1)/SConstruct'
+    $(SED) 's/pkg-config/$(TARGET)-pkg-config/g;' -i '$(1)/SConstruct'
 
-    cd '$(1)' && scons autotools sendmail_path=/sbin/sendmail
+    cd '$(1)' && scons autotools \
+         prefix='$(PREFIX)/$(TARGET)' \
+         target='$(TARGET)' \
+         sendmail_path=/sbin/sendmail
 
     $(SED) 's,libtoolize ,$(LIBTOOLIZE) ,' -i '$(1)'/bootstrap
     cd '$(1)' && ./bootstrap
-- 
cgit v0.12