[Lunar-commits] <moonbase> llvm: making a few changes to the build process and where it lives.

Dennis 'stumbles' Veatch stumbles at lunar-linux.org
Mon May 11 16:35:00 CEST 2009


commit b09f33f12f14cb2f4938b7f374f831544cb2649c
Author: Dennis 'stumbles' Veatch <stumbles at lunar-linux.org>
Date:   Mon May 11 10:35:00 2009 -0400

    llvm: making a few changes to the build process and where it lives.
---
 devel/llvm/BUILD   |   10 +++++++++-
 devel/llvm/DEPENDS |    2 ++
 devel/llvm/DETAILS |    1 +
 3 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/devel/llvm/BUILD b/devel/llvm/BUILD
index f85760e..be92242 100644
--- a/devel/llvm/BUILD
+++ b/devel/llvm/BUILD
@@ -2,6 +2,14 @@
 
   OPTS="$OPTS --enable-optimized --enable-assertions --enable-pic --enable-targets=host-only"
 
-  default_build
+  default_build   &&
+
+  prepare_install &&
+
+  echo "export LLVM_DIR=\"${MODULE_PREFIX}\"" >> $SOURCE_DIRECTORY/llvm.rc  &&
+  echo export PATH=\"'${PATH}':${MODULE_PREFIX}/bin\" >> $SOURCE_DIRECTORY/llvm.rc  &&
+  echo export PKG_CONFIG_PATH=\"'${PKG_CONFIG_PATH}':${MODULE_PREFIX}/lib/pkgconfig\" >> $SOURCE_DIRECTORY/llvm.rc &&
+
+  install -m644 llvm.rc /etc/profile.d/
 
 ) > $C_FIFO 2>&1
diff --git a/devel/llvm/DEPENDS b/devel/llvm/DEPENDS
new file mode 100644
index 0000000..806bc11
--- /dev/null
+++ b/devel/llvm/DEPENDS
@@ -0,0 +1,2 @@
+optional_depends udis86  "--with-udis86"    "--without-udis86"  "for disassembler support"
+optional_depends doxygen "--enable-doxygen" "--disable-doxygen" "for documentation support"
diff --git a/devel/llvm/DETAILS b/devel/llvm/DETAILS
index 77fdbec..80da63c 100644
--- a/devel/llvm/DETAILS
+++ b/devel/llvm/DETAILS
@@ -3,6 +3,7 @@
           SOURCE=$MODULE-$VERSION.tar.gz
       SOURCE_URL=http://www.llvm.org/releases/$VERSION/
       SOURCE_VFY=sha1:67f4bace9e64cc39255583aa837470d9b9de0aa5
+   MODULE_PREFIX=${LLVM_DIR:-/opt/lunar/llvm}
         WEB_SITE=http://www.llvm.org/
          ENTERED=20090128
          UPDATED=20090324


More information about the Lunar-commits mailing list