[48892] trunk/dports/devel

blb at macports.org blb at macports.org
Tue Mar 31 01:22:18 PDT 2009


Revision: 48892
          http://trac.macports.org/changeset/48892
Author:   blb at macports.org
Date:     2009-03-31 01:22:17 -0700 (Tue, 31 Mar 2009)
Log Message:
-----------
New port - devel/ocamlsdl, OCaml bindings for SDL; ticket #18994

Added Paths:
-----------
    trunk/dports/devel/ocamlsdl/
    trunk/dports/devel/ocamlsdl/Portfile
    trunk/dports/devel/ocamlsdl/files/
    trunk/dports/devel/ocamlsdl/files/patch-configure.diff
    trunk/dports/devel/ocamlsdl/files/patch-src-Makefile.diff

Added: trunk/dports/devel/ocamlsdl/Portfile
===================================================================
--- trunk/dports/devel/ocamlsdl/Portfile	                        (rev 0)
+++ trunk/dports/devel/ocamlsdl/Portfile	2009-03-31 08:22:17 UTC (rev 48892)
@@ -0,0 +1,23 @@
+# $Id$
+
+PortSystem        1.0
+
+name              ocamlsdl
+version           0.7.2
+categories        devel multimedia
+maintainers       nomaintainer
+description       OCaml bindings for SDL
+long_description  \
+    SDL (Simple DirectMedia Layer) is a generic API that provides low level access to audio, keyboard, mouse, and display\
+    framebuffer across multiple platforms. OCamlSDL is an OCaml interface to the SDL and might be used to write multimedia\
+    applications in Objective Caml.
+homepage          http://ocamlsdl.sourceforge.net
+platforms         darwin
+master_sites      sourceforge
+checksums         md5    0707a9cf80bd9cfe18ad660dc077bad6         \
+                  sha1   eddaefdc2897bf46c5bc2e87f402966c901c8390 \
+                  rmd160 8a7bebda15e80c9d6c9dcda4ce6c431de8dcfc93
+patchfiles              patch-configure.diff patch-src-Makefile.diff
+depends_lib       port:libsdl port:libsdl_image port:libsdl_mixer port:libsdl_ttf port:ocaml port:lablgl
+configure.args    --without-findlib
+


Property changes on: trunk/dports/devel/ocamlsdl/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/ocamlsdl/files/patch-configure.diff
===================================================================
--- trunk/dports/devel/ocamlsdl/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/devel/ocamlsdl/files/patch-configure.diff	2009-03-31 08:22:17 UTC (rev 48892)
@@ -0,0 +1,16 @@
+--- configure.orig	2009-03-25 14:43:25.000000000 +0100
++++ configure	2009-03-25 15:01:53.000000000 +0100
+@@ -6308,6 +6308,13 @@
+ echo "$as_me: updating makefile.platform" >&6;}
+ sed -i -e "s/^PLATFORM.*/PLATFORM = $PLATFORM/" makefile.platform
+ 
++##### Macports patches #####
++echo
++echo "Patching makefile.config.gcc for Macports..."
++mv makefile.config.gcc makefile.config.gcc.orig
++/usr/bin/perl -e "while (<>){ s/-Wl,-framework,Cocoa/-framework Cocoa/; print; }" < makefile.config.gcc.orig > makefile.config.gcc
++##### end of patches #####
++
+ # Output the configuration summary
+ echo
+ echo "Configure summary:"

Added: trunk/dports/devel/ocamlsdl/files/patch-src-Makefile.diff
===================================================================
--- trunk/dports/devel/ocamlsdl/files/patch-src-Makefile.diff	                        (rev 0)
+++ trunk/dports/devel/ocamlsdl/files/patch-src-Makefile.diff	2009-03-31 08:22:17 UTC (rev 48892)
@@ -0,0 +1,11 @@
+--- src/Makefile.orig	2005-01-27 12:27:28.000000000 +0100
++++ src/Makefile	2009-03-25 15:09:45.000000000 +0100
+@@ -84,7 +84,7 @@
+           $(if $(OCAMLOPT),*.cmxa sdl*.$(A) *.cmx) \
+           $(if $(OCAMLMKLIB),dll*.so)
+ ifeq ($(PLATFORM),Apple)
+-	$(RANLIB) $$($(OCAMLFIND) printconf destdir)/*.$(A)
++	$(RANLIB) $$($(OCAMLFIND) query sdl)/*.$(A)
+ endif
+ else
+ install-findlib : ; $(error "findlib is not installed")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090331/f0c59c62/attachment.html>


More information about the macports-changes mailing list