Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

LLVM 3.2 package #297

Merged
merged 2 commits into from

2 participants

@testcocoon

No description provided.

Sébastien Fr... added some commits
@samoht samoht merged commit 49528df into ocaml:master
@samoht
Owner

Sebastien, can you please comment on https://github.com/OCamlPro/opam-repository/issues/955 ? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 15, 2013
  1. LLVM v3.2 package

    Sébastien Fricker authored
This page is out of date. Refresh to see the latest.
View
27 packages/llvm.3.2/descr
@@ -0,0 +1,27 @@
+LLVM (tools, C++ libraries and ocaml binfing) and clang
+
+This packge install:
+ - LLVM C++ libraries
+ - LLVM command line tools
+ - clang C++ compiler
+ - OCaml binding
+
+If conf-llvm-debug package is installed, a debug build (with symbols and runtime checks) is generated.
+
+To compile C++ code:
+ - Includes are installed in "$(opam config -var prefix)/include"
+ - Libraries are installed in "$(opam config -var prefix)/lib"
+
+Compilation sample:
+ g++ -L"$(opam config -var prefix)/lib" -I"$(opam config -var prefix)/include" -lLLVM-3.1 mysample.cpp -o mysample
+
+Documentation:
+ The documentation is generated only if the package conf-llvm-debug is installed.
+ NOTE: the doxygen documentation is generated, this takes a lot of time.
+ The documentation is generated in "$(opam config -var doc)/llvm"
+
+
+NOTE: this package does not use the official LLVM tar distribution. The
+ official distribution uses 3 separate packages.
+ To generate this source package, execute:
+ ./llvm_package 3.2
View
26 packages/llvm.3.2/llvm_package.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+LLVM_VERSION=$1
+
+HERE=$(dirname "$0")
+HERE=$(cd "$HERE" ; echo $PWD)
+PACKAGE=$HERE/llvm-$LLVM_VERSION.tar.gz
+TEMP=$(mktemp -d /tmp/llvm_XXXXXX)
+LLVM_SRC_TAR=llvm-$LLVM_VERSION.src.tar.gz
+CLANG_SRC_TAR=clang-$LLVM_VERSION.src.tar.gz
+COMPILER_RT_SRC_TAR=compiler-rt-$LLVM_VERSION.src.tar.gz
+LLVM_SRC_LINK=http://llvm.org/releases/$LLVM_VERSION/$LLVM_SRC_TAR
+CLANG_SRC_LINK=http://llvm.org/releases/$LLVM_VERSION/$CLANG_SRC_TAR
+COMPILER_RT_SRC_LINK=http://llvm.org/releases/$LLVM_VERSION/$COMPILER_RT_SRC_TAR
+
+LLVM_OBJECTS=/tmp/llvm-objects
+mkdir -p $TEMP/llvm-$LLVM_VERSION/tools/clang
+mkdir -p $TEMP/llvm-$LLVM_VERSION/project/compiler-rt
+
+wget "$LLVM_SRC_LINK" -O - | tar --strip-components=1 -x -z -f - -C $TEMP/llvm-$LLVM_VERSION || exit
+wget "$CLANG_SRC_LINK" -O - | tar --strip-components=1 -x -z -f - -C $TEMP/llvm-$LLVM_VERSION/tools/clang || exit
+wget "$COMPILER_RT_SRC_LINK" -O - | tar --strip-components=1 -x -z -f - -C $TEMP/llvm-$LLVM_VERSION/project/compiler-rt || exit
+
+cd $TEMP/ || exit
+tar cfz $PACKAGE llvm-$LLVM_VERSION || exit
+rm -rf $TEMP
+echo $PACKAGE created
View
13 packages/llvm.3.2/opam
@@ -0,0 +1,13 @@
+opam-version: "1"
+maintainer: "sebastien.fricker@gmail.com"
+build: [
+ [ "./configure" "--prefix=%{prefix}%" "--docdir=%{doc}%/llvm" "--%{conf-llvm-debug:enable}%-doxygen" "--%{conf-llvm-debug:enable}%-docs" "llvm_cv_cxx_visibility_inlines_hidden=no" "--enable-static" "--enable-shared" "--%{conf-llvm-debug:enable}%-debug-runtime" "--%{conf-llvm-debug:enable}%-debug-symbols" "--enable-jit" "--%{conf-llvm-debug:enable}%-assertions" "--with-ocaml-libdir=%{lib}%/llvm" ]
+ [ "%{make}%" "-j9" ]
+ [ "%{make}%" "install" ]
+ [ "cp" "%{lib}%/llvm/META.llvm" "%{lib}%/llvm/META" ]
+]
+remove: [
+ [ "./configure" "--prefix=%{prefix}%" "--docdir=%{doc}%/llvm" "--%{conf-llvm-debug:enable}%-doxygen" "--%{conf-llvm-debug:enable}%-docs" "llvm_cv_cxx_visibility_inlines_hidden=no" "--enable-static" "--enable-shared" "--%{conf-llvm-debug:enable}%-debug-runtime" "--%{conf-llvm-debug:enable}%-debug-symbols" "--enable-jit" "--%{conf-llvm-debug:enable}%-assertions" "--with-ocaml-libdir=%{lib}%/llvm" ]
+ ["%{make}%" "-k" "uninstall" ]
+]
+depopts: [ "conf-llvm-debug" ]
View
2  packages/llvm.3.2/url
@@ -0,0 +1,2 @@
+archive: "http://oqamldebug.forge.ocamlcore.org/llvm-3.2.tar.gz"
+checksum: "c2ea747bf0d785703532b080d1e270f5"
Something went wrong with that request. Please try again.