diff -urb cl-gd-0.5.0.orig/Makefile cl-gd-0.5.0/Makefile --- cl-gd-0.5.0.orig/Makefile 2005-03-31 01:34:53.000000000 -0800 +++ cl-gd-0.5.0/Makefile 2005-10-03 10:09:33.000000000 -0700 @@ -4,3 +4,8 @@ gcc -I/usr/local/include -fPIC -c cl-gd-glue.c ld -shared -lgd -lz -lpng -ljpeg -lfreetype -liconv -lm -lc cl-gd-glue.o -o cl-gd-glue.so -L/usr/local/lib rm cl-gd-glue.o \ No newline at end of file + +# this should work for Mac OS X + +cl-gd-glue.dylib: + gcc -lgd -ljpeg -dynamiclib cl-gd-glue.c -o cl-gd-glue.dylib diff -urb cl-gd-0.5.0.orig/README cl-gd-0.5.0/README --- cl-gd-0.5.0.orig/README 2005-05-17 09:59:22.000000000 -0700 +++ cl-gd-0.5.0/README 2005-10-02 20:56:22.000000000 -0700 @@ -34,6 +34,10 @@ ld -lgd -lz -lpng -ljpeg -lfreetype -lm -liconv -shared cl-gd-glue.o -o cl-gd-glue.so rm cl-gd-glue.o + For Mac OS X, use + + gcc -lgd -ljpeg -dynamiclib cl-gd-glue.c -o cl-gd-glue.dylib + 1.6. Make sure that cl-gd.asd can be seen from asdf (this is usually achieved by a symbolic link), start your favorite Lisp, and compile CL-GD: diff -urb cl-gd-0.5.0.orig/cl-gd.asd cl-gd-0.5.0/cl-gd.asd --- cl-gd-0.5.0.orig/cl-gd.asd 2005-09-26 05:50:11.000000000 -0700 +++ cl-gd-0.5.0/cl-gd.asd 2005-10-02 20:56:22.000000000 -0700 @@ -54,4 +54,4 @@ (:file "drawing" :depends-on ("transform" "colors-aux")) (:file "strings" :depends-on ("transform" "colors-aux")) (:file "misc" :depends-on ("transform"))) - :depends-on (#-clisp :uffi #+clisp :cffi-uffi-compat)) + :depends-on (#-(or clisp openmcl) :uffi #+(or clisp openmcl) :cffi-uffi-compat)) diff -urb cl-gd-0.5.0.orig/doc/index.html cl-gd-0.5.0/doc/index.html --- cl-gd-0.5.0.orig/doc/index.html 2005-09-26 05:50:12.000000000 -0700 +++ cl-gd-0.5.0/doc/index.html 2005-10-02 20:57:22.000000000 -0700 @@ -210,6 +210,10 @@ ld -lgd -lz -lpng -ljpeg -lfreetype -lm -liconv -shared cl-gd-glue.o -o cl-gd-glue.so rm cl-gd-glue.o +For Mac OS X, use +
+gcc -lgd -ljpeg -dynamiclib cl-gd-glue.c -o cl-gd-glue.dylib
+
  • Make sure that cl-gd.asd can be seen from asdf (this is usually achieved by a symbolic link), start your favorite Lisp, and compile CL-GD:
     (asdf:oos 'asdf:compile-op :cl-gd)
    diff -urb cl-gd-0.5.0.orig/specials.lisp cl-gd-0.5.0/specials.lisp
    --- cl-gd-0.5.0.orig/specials.lisp	2005-09-26 05:50:11.000000000 -0700
    +++ cl-gd-0.5.0/specials.lisp	2005-10-02 20:56:22.000000000 -0700
    @@ -132,7 +132,7 @@
          "/cygwin/usr/local/lib/"
          "/cygwin/usr/lib/")
       "A list of directories where UFFI tries to find cl-gd-glue.so")
    -(defvar *shared-library-types* '("so" "dll")
    +(defvar *shared-library-types* '("so" "dll" "dylib")
       "The list of types a shared library can have. Used when looking for
     cl-gd-glue.so")
     (defvar *shared-library-drive-letters* '("C" "D" "E" "F" "G")