summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Marc-Antoine Perennou <keruspe@exherbo.org> 2015-04-06 09:47:46 +0200
committerAvatar Marc-Antoine Perennou <keruspe@exherbo.org> 2015-04-06 09:47:46 +0200
commitafd7c72250731232c569aeee63402f086a3c1c0b (patch)
treefe0ad5170ef25b26297badfedcd9c2ef073a87bf
parentbc4ec30c2393873233d3903ac537950fac6af58f (diff)
parente087882175522f5f2bce6da2fdd52ce71a8657eb (diff)
downloadmono-afd7c72250731232c569aeee63402f086a3c1c0b.tar.gz
mono-afd7c72250731232c569aeee63402f086a3c1c0b.tar.xz
Merge branch 'cross'
* cross: mono-basic: cross adjustments
-rw-r--r--packages/dev-lang/mono-basic/mono-basic-3.8.exheres-010
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/dev-lang/mono-basic/mono-basic-3.8.exheres-0 b/packages/dev-lang/mono-basic/mono-basic-3.8.exheres-0
index fffe054..6c68037 100644
--- a/packages/dev-lang/mono-basic/mono-basic-3.8.exheres-0
+++ b/packages/dev-lang/mono-basic/mono-basic-3.8.exheres-0
@@ -20,11 +20,17 @@ DEPENDENCIES="
dev-lang/mono[>=2.2]
"
+src_prepare() {
+ default
+
+ edo sed -i -e "/PROGRAM_INSTALL_DIR/s:= \(\$(prefix)\).*:= \1/$(exhost --target)/bin:" scripts/Makefile
+}
+
src_configure() {
cat > "${WORK}/build/config.make" <<-EOF
prefix=/usr
-exec_prefix=/usr
-mono_libdir=/usr/${LIBDIR}
+exec_prefix=/usr/$(exhost --target)
+mono_libdir=/usr/$(exhost --target)/lib
man_dir=/usr/share/man
man1_dir=\${man_dir}/man1
RUNTIME=mono