Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18994 closed submission (fixed)

Port submission: ocamlsdl

Reported by: macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: devel, multimedia Cc: blb@…
Port: ocamlsdl

Description

I made a Portfile for ocamlsdl, please consider to add it to the main ports repository.

OCamlSDL is an OCaml interface to the SDL and might be used to write multimedia applications in Objective Caml.

Portfile was successfully compiled and tested on OS X 10.5.6.

This is one of my three first submissions I do today. I hope I did everything right.

Attachments (3)

Portfile (974 bytes) - added by macports@… 16 years ago.
patch-configure.diff (615 bytes) - added by macports@… 16 years ago.
patch-src-Makefile.diff (418 bytes) - added by macports@… 16 years ago.

Download all attachments as: .zip

Change History (7)

Changed 16 years ago by macports@…

Attachment: Portfile added

Changed 16 years ago by macports@…

Attachment: patch-configure.diff added

Changed 16 years ago by macports@…

Attachment: patch-src-Makefile.diff added

comment:1 Changed 16 years ago by blb@…

Cc: blb@… added

The first issue I ran into with this is that ocamlfind install doesn't respect MacPorts' destroot, so it tries to install directly into ${prefix} instead of ${destroot}${prefix}. This means those files won't be recorded as part of the port.

I worked around some of this but there are still other issues (it needs to add to ${prefix}/lib/ocaml/ld.conf the new location for sdl); FYI, I added the following to Portfile

set ocamlfind_defaultdestdir [exec ocamlfind printconf destdir]
destroot.env      OCAMLFIND_DESTDIR=${destroot}${ocamlfind_defaultdestdir}
pre-destroot {
   xinstall -m 755 -d ${destroot}${ocamlfind_defaultdestdir}
}

comment:2 Changed 16 years ago by blb@…

Resolution: fixed
Status: newclosed

Added in r48892, thanks. Used the 'configure.args --without-findlib' to avoid the destroot issues as discussed over email.

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Type: enhancementsubmission

comment:4 Changed 16 years ago by (none)

Milestone: Port Submissions

Milestone Port Submissions deleted

Note: See TracTickets for help on using tickets.