Commit 6d340ce9 authored by Hans Hübner's avatar Hans Hübner
Browse files

Merge pull request #8 from Rudolph-Miller/issue/3

automate compiling cl-gd-glue
parents 966d57ec 82196a2d
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -43,6 +43,7 @@
  :version "0.6.1"
  :version "0.6.1"
  :serial t
  :serial t
  :description "Interface to the GD graphics library"
  :description "Interface to the GD graphics library"
  :defsystem-depends-on (:external-program)
  :components ((:file "packages")
  :components ((:file "packages")
               (:file "util")
               (:file "util")
               (:file "specials")
               (:file "specials")
@@ -56,5 +57,12 @@
               (:file "strings")
               (:file "strings")
               (:file "misc")
               (:file "misc")
               (:file "animated-gif"))
               (:file "animated-gif"))
  :perform (compile-op :before (op c)
    (declare (ignore op c))
    (sb-posix:chdir (asdf:system-source-directory :cl-gd))
    #+darwin
    (funcall (symbol-function (intern "RUN" :external-program)) "/usr/bin/make" '("cl-gd-glue.dylib"))
    #-darwin
    (funcall (symbol-function (intern "RUN" :external-program)) "/usr/bin/make" nil))
  :depends-on (#-(or :clisp :openmcl) :uffi
  :depends-on (#-(or :clisp :openmcl) :uffi
               #+(or :clisp :openmcl) :cffi-uffi-compat))
               #+(or :clisp :openmcl) :cffi-uffi-compat))