summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wulf C. Krueger <philantrop@exherbo.org> 2015-04-04 15:28:32 +0200
committerAvatar Wulf C. Krueger <philantrop@exherbo.org> 2015-04-04 15:28:32 +0200
commite087882175522f5f2bce6da2fdd52ce71a8657eb (patch)
tree66713a12db76a30f400a76eb5a823fa404a53bb2
parent2b1afbfbbb9b7743270b74d2ed8430bf886311e4 (diff)
downloadmono-e087882175522f5f2bce6da2fdd52ce71a8657eb.tar.gz
mono-e087882175522f5f2bce6da2fdd52ce71a8657eb.tar.xz
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