[82803] trunk/dports/lang/llvm-devel/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sat Aug 20 13:01:03 PDT 2011


Revision: 82803
          http://trac.macports.org/changeset/82803
Author:   jeremyhu at macports.org
Date:     2011-08-20 13:00:58 -0700 (Sat, 20 Aug 2011)
Log Message:
-----------
llvm-devel: Claim maintainership (to go along with clang-devel) and adjust formatting and variants to better match llvm port

Modified Paths:
--------------
    trunk/dports/lang/llvm-devel/Portfile

Modified: trunk/dports/lang/llvm-devel/Portfile
===================================================================
--- trunk/dports/lang/llvm-devel/Portfile	2011-08-20 19:15:06 UTC (rev 82802)
+++ trunk/dports/lang/llvm-devel/Portfile	2011-08-20 20:00:58 UTC (rev 82803)
@@ -1,41 +1,69 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem          1.0
+PortSystem              1.0
 
-name                llvm-devel
-conflicts           llvm
-version             3.0-r137552
-categories          lang
-platforms           darwin
-maintainers         nomaintainer
-license             BSD
+name                    llvm-devel
+conflicts               llvm
+svn.revision            138208
+version                 3.0-r${svn.revision}
+categories              lang
+platforms               darwin
+license                 UIUC/NCSA
+maintainers             jeremyhu openmaintainer
+description             llvm is a next generation compiler infrastructure (svn trunk version)
+long_description        The LLVM Core libraries provide a modern source- and \
+                        target-independent optimizer, along with code \
+                        generation support for many popular CPUs (as well as \
+                        some less common ones!) These libraries are built \
+                        around a well specified code representation known as \
+                        the LLVM intermediate representation ("LLVM IR").
 
-description         This is the LLVM svn version.
-long_description    LLVM is the next generation compiler meant to replace \
-                    GCC by providing a much cleaner and interoperable \
-                    infrastructure.
+homepage                http://llvm.org/
+master_sites            ${homepage}releases/${version}/
 
-homepage            http://www.llvm.org/
+fetch.type              svn
+svn.url                 http://llvm.org/svn/llvm-project/llvm/trunk
 
-depends_build       port:gzip port:bzip2
+worksrcdir              trunk
 
-fetch.type          svn
-svn.url             http://llvm.org/svn/llvm-project/llvm/trunk
-svn.revision        137552
+depends_lib             port:libffi
+depends_run             bin:perl:perl5
 
-worksrcdir          trunk
+universal_variant       no
 
-universal_variant   no
+build.env-append        REQUIRE_RTTI=1
+configure.cppflags
+configure.ldflags
+configure.args          --enable-bindings=none --enable-libffi --enable-shared --enable-jit \
+                        --enable-optimized --disable-assertions --disable-profiling \
+                        --disable-debug-symbols --disable-debug-runtime
 
-configure.args      --enable-optimized \
-                    --enable-targets=x86,powerpc
+platform darwin {
+    if {${build_arch} == "i386" } {
+        configure.pre_args-append --build=i686-apple-darwin${os.major}
+    } else {
+        configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
+    }
+}
 
-variant jit description {enable jit compilation} {
-    configure.args-append   --enable-jit
+platform darwin 8 {
+    pre-fetch {
+        ui_error "${name} requires Mac OS X 10.5 or greater."
+        return -code error "incompatible Mac OS X version"
+    }
 }
 
-variant debug description {generate debug build} {
-    configure.args-delete   --enable-optimized
-    configure.args-append   --disable-optimized
+variant debug {
+    configure.args-delete --disable-assertions --disable-debug-symbols --enable-optimize
+    configure.args-append --enable-assertions --enable-debug-symbols --disable-optimize
 }
+
+variant ocaml description {Enable generation of OCaml binding} {
+    depends_lib-append   port:ocaml
+
+    configure.args-delete --enable-bindings=none
+    configure.args-append --enable-bindings=ocaml
+
+    destroot.args-append  OVERRIDE_libdir=${prefix}/lib
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110820/27820f8e/attachment.html>


More information about the macports-changes mailing list