[84254] trunk/dports/devel/ocamlsdl/Portfile

mww at macports.org mww at macports.org
Wed Sep 21 10:09:30 PDT 2011


Revision: 84254
          http://trac.macports.org/changeset/84254
Author:   mww at macports.org
Date:     2011-09-21 10:09:28 -0700 (Wed, 21 Sep 2011)
Log Message:
-----------
ocamlsdl: version 0.8.0

Modified Paths:
--------------
    trunk/dports/devel/ocamlsdl/Portfile

Modified: trunk/dports/devel/ocamlsdl/Portfile
===================================================================
--- trunk/dports/devel/ocamlsdl/Portfile	2011-09-21 16:51:36 UTC (rev 84253)
+++ trunk/dports/devel/ocamlsdl/Portfile	2011-09-21 17:09:28 UTC (rev 84254)
@@ -3,7 +3,7 @@
 PortSystem        1.0
 
 name              ocamlsdl
-version           0.7.2
+version           0.8.0
 categories        devel multimedia
 maintainers       nomaintainer
 description       OCaml bindings for SDL
@@ -14,10 +14,25 @@
 homepage          http://ocamlsdl.sourceforge.net/
 platforms         darwin
 master_sites      sourceforge:project/${name}/OCamlSDL/${name}-${version}
-checksums         md5    0707a9cf80bd9cfe18ad660dc077bad6         \
-                  sha1   eddaefdc2897bf46c5bc2e87f402966c901c8390 \
-                  rmd160 8a7bebda15e80c9d6c9dcda4ce6c431de8dcfc93
-patchfiles              patch-configure.diff patch-src-Makefile.diff
+checksums           md5     b7ee334cf107867cc8d08cbcc319c9af \
+                    sha1    ebccd8c47d3c0ada8b97a7f6de5483197c885194 \
+                    rmd160  f4595325d075cc6348c341e63ea321952758d7fb
+#patchfiles              patch-configure.diff patch-src-Makefile.diff
 depends_lib       port:libsdl_image port:libsdl_mixer port:libsdl_ttf port:ocaml port:lablgl
-configure.args    --without-findlib \
-                  --disable-sdltest
+
+set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
+
+# cheat the system by providing a thin ocamlfind-wrapper that obeys destdir
+post-extract {
+    system -W ${worksrcpath} "echo ${prefix}/bin/ocamlfind \\$* -destdir ${ocamlfind_destdir} -ldconf ignore > ocamlfind"
+    system -W ${worksrcpath} "chmod +x ocamlfind"
+}
+
+configure.args    --disable-sdltest
+configure.env     OCAMLFIND=${worksrcpath}/ocamlfind
+
+pre-destroot {
+    xinstall -m 755 -d ${ocamlfind_destdir} ${destroot}${prefix}/share/doc/${name}
+    file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110921/4d1ae156/attachment.html>


More information about the macports-changes mailing list