Just for your information, I would not recommend using the MacPorts version of SDL. The dylibs and frameworks are built with links hard-coded to the /opt/local directory, so if you distribute the files to other Mac users (who don't have MacPorts), they will not be able to run your app. I would suggest instead using the official builds from libsdl.org, which are easy to obtain and install, and won't break on other Mac machines.
That said, the patch is not necessarily a bad idea.... On Fri, Dec 11, 2009 at 3:43 AM, Jens Thiede <jensthi...@gmail.com> wrote: > I'm using an Intel iMac, and OS X 10.5.8, and MacPorts ( > http://www.macports.org/ > ) which is an alternative to FINK. > > Lispbuilder-SDL did not support using MacPorts, but supported FINK, so > I added the default MacPorts library path to cffi:*foreign-library- > directories*. > > Also, CFFI seems to automatically add the ".dylib" extension to Darwin > libraries, so I removed it in the cocoahelper.lisp file. > > Hope you find the following patch helpful, > > Jens. > > Index: cocoahelper/cocoahelper.lisp > =================================================================== > --- cocoahelper/cocoahelper.lisp (revision 1378) > +++ cocoahelper/cocoahelper.lisp (working copy) > @@ -13,7 +13,7 @@ > > (define-foreign-library cocoahelper > (:darwin (:or (:framework "cocoahelper") > - (:default "cocoahelper.dylib")))) > + (:default "cocoahelper")))) > (use-foreign-library cocoahelper) > > > Index: cffi/library.lisp > =================================================================== > --- cffi/library.lisp (revision 1378) > +++ cffi/library.lisp (working copy) > @@ -17,6 +17,10 @@ > #+darwin(pushnew #P"/sw/lib/" cffi:*foreign-library-directories* > :test #'equal) > > +;; This is where MacPorts installs SDL. > +#+darwin(pushnew #P"/opt/local/lib/" cffi:*foreign-library-directories* > + :test #'equal) > + > (cffi:define-foreign-library sdl > (:darwin (:or (:framework "SDL") > (:default "libSDL"))) > > _______________________________________________ > application-builder mailing list > application-builder@lispniks.com > http://www.lispniks.com/mailman/listinfo/application-builder > -- Elliott Slaughter "Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay
_______________________________________________ application-builder mailing list application-builder@lispniks.com http://www.lispniks.com/mailman/listinfo/application-builder