[43005] trunk/dports/lang/llvm

erickt at macports.org erickt at macports.org
Tue Dec 2 23:15:38 PST 2008


Revision: 43005
          http://trac.macports.org/changeset/43005
Author:   erickt at macports.org
Date:     2008-12-02 23:15:38 -0800 (Tue, 02 Dec 2008)
Log Message:
-----------
Add a variant for building ocaml bindings (from #17489). Thanks hircus!

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

Added Paths:
-----------
    trunk/dports/lang/llvm/files/patch-Makefile.ocaml.diff

Modified: trunk/dports/lang/llvm/Portfile
===================================================================
--- trunk/dports/lang/llvm/Portfile	2008-12-03 07:05:05 UTC (rev 43004)
+++ trunk/dports/lang/llvm/Portfile	2008-12-03 07:15:38 UTC (rev 43005)
@@ -4,7 +4,7 @@
 
 name                    llvm
 version                 2.4
-revision                1
+revision                2
 categories              lang
 platforms               darwin
 use_parallel_build      yes
@@ -31,7 +31,8 @@
     file mkdir ${configure.dir}
 }
 
-patchfiles              patch-Makefile.config.in.diff
+patchfiles              patch-Makefile.config.in.diff \
+                        patch-Makefile.ocaml.diff
 
 configure.cppflags
 configure.ldflags
@@ -59,6 +60,16 @@
     }
 }
 
-variant pic description {Enable generation of position independent code} { 
-    configure.args-append --enable-pic 
-} 
+variant ocaml description {Enable generation of OCaml binding} {
+    depends_build-append port:ocaml
+    depends_lib-append   port:ocaml
+
+    configure.args-delete --enable-bindings=none
+    configure.args-append --enable-bindings=ocaml
+
+    destroot.args-append  OVERRIDE_libdir=${prefix}/lib
+}
+
+variant pic description {Enable generation of position independent code} {
+    configure.args-append --enable-pic
+}

Added: trunk/dports/lang/llvm/files/patch-Makefile.ocaml.diff
===================================================================
--- trunk/dports/lang/llvm/files/patch-Makefile.ocaml.diff	                        (rev 0)
+++ trunk/dports/lang/llvm/files/patch-Makefile.ocaml.diff	2008-12-03 07:15:38 UTC (rev 43005)
@@ -0,0 +1,11 @@
+--- bindings/ocaml/Makefile.ocaml.ocaml-symlinks	2008-03-10 12:15:32.000000000 -0400
++++ bindings/ocaml/Makefile.ocaml	2008-12-02 16:29:01.000000000 -0500
+@@ -160,7 +160,7 @@
+ 
+ install-deplibs:
+ 	$(Verb) for i in $(DestLibs:$(PROJ_libocamldir)/%=%); do \
+-	  ln -sf "$(PROJ_libdir)/$$i" "$(PROJ_libocamldir)/$$i"; \
++         ln -sf "${OVERRIDE_libdir}/$$i" "$(PROJ_libocamldir)/$$i"; \
+ 	done
+ 
+ uninstall-deplibs:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081202/fead4154/attachment.html>


More information about the macports-changes mailing list