Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

documentation and makefile updates

  • Loading branch information...
commit f6e0b763b7f87c4465b7df4ed2b69390b606c3b4 1 parent 9c540dd
@hanshuebner hanshuebner authored
Showing with 56 additions and 59 deletions.
  1. +6 −0 CHANGELOG
  2. +1 −1  Makefile
  3. +22 −32 README
  4. +2 −1  cl-gd.asd
  5. +25 −25 doc/index.html
View
6 CHANGELOG
@@ -1,3 +1,9 @@
+Version 0.5.8
+2012-04-21
+Update documentation to refer to Quicklisp for installation
+Correct (setf save-alpha-p) to use &optional instead of &key (Stas Boukarev)
+Fix for Clozure CL on 64bit OSX (Manuel Odendahl)
+
Version 0.5.7
2009-11-22
Changed WITH-TRANSFORMATIONS so that SBCL doesn't complain (Jeff Cunningham)
View
2  Makefile
@@ -2,7 +2,7 @@
cl-gd-glue.so:
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
+ ld -shared -lgd -lz -lpng -ljpeg -lfreetype -lm -lc cl-gd-glue.o -o cl-gd-glue.so -L/usr/local/lib
rm cl-gd-glue.o
# this should work for Mac OS X
View
54 README
@@ -7,47 +7,37 @@ CL-GD also supports Nikodemus Siivola's HYPERDOC, see
1. Installation (see doc/index.html for Windows instructions)
-1.1. Download and install a recent version of asdf.
+1.1. Download and install a recent version of GD and its supporting
+ libraries. Please use your operating system's package manager to
+ install the "development" version of the GD library. On Ubuntu
+ Linux, this can be achieved with the command:
-1.2. Download and install UFFI. CL-GD needs at least version 1.3.4 of
- UFFI to work properly. However, as of August 2003, only
- AllegroCL, CMUCL, LispWorks, SBCL, and SCL are fully supported
- because CL-GD needs the new UFFI macros WITH-CAST-POINTER and
- DEF-FOREIGN-VAR which haven't yet been ported to all UFFI
- platforms.
+ apt-get install libgd2-xpm-dev
-1.3. Download and install a recent version of GD and its supporting
- libraries libpng, zlib, libjpeg, libiconv, and libfreetype. CL-GD has
- been tested with GD 2.0.33, versions older than 2.0.28 won't
- work. Note that you won't be able to compile CL-GD unless you have
- installed all supporting libraries. This is different from using
- GD directly from C where you only have to install the libraries
- you intend to use.
+ GD depends on several other libraries to handle different
+ graphics formats. These should be installed by your package
+ manager automatically. If you cannot use or do not have a
+ package manager that includes GD, you'll have to follow the GD
+ installation instructions (http://www.boutell.com/gd/). Note
+ that you won't be able to compile CL-GD unless you have installed
+ all supporting libraries. This is different from using GD
+ directly from C where you only have to install the libraries you
+ intend to use.
-1.4. Unzip and untar the file cl-gd.tgz and put the resulting
- directory wherever you want, then cd into this directory.
+1.2. Install cl-gd and its Lisp dependencies using quicklisp
+ (http://quicklisp.org/).
-1.5. Compile cl-gd-glue.c into a shared library for your platform. On
- Linux this would be
+1.3. Compile cl-gd-glue.c into a shared library for your platform. A
+ simple Makefile is included in the cl-gd source directory.
- gcc -fPIC -c cl-gd-glue.c
- ld -lgd -lz -lpng -ljpeg -lfreetype -lm -liconv -shared cl-gd-glue.o -o cl-gd-glue.so
- rm cl-gd-glue.o
+ For FreeBSD and Linux, just type
- For Mac OS X, use
+ make
- gcc -lgd -ljpeg -dynamiclib cl-gd-glue.c -o cl-gd-glue.dylib
+ For OSX, type
-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:
+ make cl-gd-glue.dylib
- (asdf:oos 'asdf:compile-op :cl-gd)
-
- From now on you can simply load CL-GD into a running Lisp image
- with
-
- (asdf:oos 'asdf:load-op :cl-gd)
2. Test
View
3  cl-gd.asd
@@ -40,8 +40,9 @@
:defaults (parse-namestring *load-truename*)))
(defsystem :cl-gd
- :version "0.5.7"
+ :version "0.5.8"
:serial t
+ :description "Interface to the GD graphics library"
:components ((:file "packages")
(:file "util")
(:file "specials")
View
50 doc/index.html
@@ -203,37 +203,37 @@
CL-GD together with this documentation can be downloaded from <a
href="http://weitz.de/files/cl-gd.tar.gz">http://weitz.de/files/cl-gd.tar.gz</a>. The
-current version is 0.5.7. A <a href="http://packages.debian.org/cgi-bin/search_packages.pl?keywords=cl-gd&amp;searchon=names&amp;subword=1&amp;version=all&amp;release=all">Debian package</a> is available thanks to <a href="http://pvaneynd.mailworks.org/">Peter van Eynde</a> and <a href="http://b9.com/">Kevin Rosenberg</a>, so if you're on Debian you should have no problems installing CL-GD. There's also a port
+current version is 0.5.8. A <a href="http://packages.debian.org/cgi-bin/search_packages.pl?keywords=cl-gd&amp;searchon=names&amp;subword=1&amp;version=all&amp;release=all">Debian package</a> is available thanks to <a href="http://pvaneynd.mailworks.org/">Peter van Eynde</a> and <a href="http://b9.com/">Kevin Rosenberg</a>, so if you're on Debian you should have no problems installing CL-GD. There's also a port
for <a href="http://www.gentoo.org/proj/en/common-lisp/index.xml">Gentoo Linux</a> thanks to Matthew Kennedy. Otherwise, proceed like this:
<ul>
-<li>Download and install a recent version of <a href="http://www.cliki.net/asdf">asdf</a>.
-<li>Download and install <a href="http://uffi.b9.com/">UFFI</a>. CL-GD needs at least version&nbsp;1.3.4 of UFFI to work properly. However, as of August 2003, only AllegroCL, CMUCL, LispWorks, SBCL, and SCL are fully supported because CL-GD needs the new UFFI macros <a href="http://uffi.b9.com/manual/with-cast-pointer.html"><code>WITH-CAST-POINTER</code></a> and <a href="http://uffi.b9.com/manual/def-foreign-var.html"><code>DEF-FOREIGN-VAR</code></a> which haven't yet been ported to all UFFI platforms. <b>Note:</b> For CLISP or OpenMCL download and install <a
-href="http://common-lisp.net/project/cffi/">CFFI</a> instead.
-<li>Download and install a recent version of <a href="http://www.boutell.com/gd/">GD</a> and its supporting libraries <a href="http://www.libpng.org/pub/png/">libpng</a>, <a href="http://www.info-zip.org/pub/infozip/zlib/">zlib</a>, <a href="http://www.ijg.org/">libjpeg</a>, <a href="http://www.freetype.org/">libfreetype</a>, and maybe <a href="http://www.gnu.org/software/libiconv/">libiconv</a>. CL-GD has been tested and developed with GD 2.0.28, older version probably won't work. Note that you won't be able to compile CL-GD unless you have installed <em>all</em> supporting libraries. This is different from using GD directly from C where you only have to install the libraries you intend to use.
-<li>Download <a href="http://weitz.de/files/cl-gd.tar.gz"><code>cl-gd.tar.gz</code></a>, unzip and untar the file and put the resulting directory wherever you want, then cd into this directory.
-<li>Compile <code>cl-gd-glue.c</code> into a shared library for your platform. On FreeBSD or Linux this would be
+ <li>Download and install a recent version of GD and its supporting
+ libraries. Please use your operating system's package manager to
+ install the "development" version of the GD library. On Ubuntu
+ Linux, this can be achieved with the command:
+ <pre>
+ apt-get install libgd2-xpm-dev
+ </pre>
+ GD depends on several other libraries to handle different
+ graphics formats. These should be installed by your package
+ manager automatically. If you cannot use or do not have a
+ package manager that includes GD, you'll have to follow the GD
+ installation instructions (http://www.boutell.com/gd/). Note
+ that you won't be able to compile CL-GD unless you have installed
+ all supporting libraries. This is different from using GD
+ directly from C where you only have to install the libraries you
+ intend to use.</li>
+ <li>Install cl-gd and its Lisp dependencies using <a href="http://quicklisp.org/">Quicklisp</a></li>
+ <li>Compile <code>cl-gd-glue.c</code> into a shared library for your platform. On FreeBSD or Linux this would be
<pre>
-gcc -fPIC -c cl-gd-glue.c
-ld -lgd -lz -lpng -ljpeg -lfreetype -lm -shared cl-gd-glue.o -o cl-gd-glue.so
-rm cl-gd-glue.o
+ make
</pre>
-(Note: On older versions of Linux, you might have to add <code>-liconv</code>.)
-<p>
-For Mac OS X, use
-<pre>
-gcc -lgd -ljpeg -dynamiclib cl-gd-glue.c -o cl-gd-glue.dylib
-</pre>
-<li>Make sure that <code>cl-gd.asd</code> can be seen from asdf (this is usually achieved by a symbolic link), start your favorite Lisp, and compile CL-GD:
+and on OSX it would be
<pre>
-(asdf:oos 'asdf:compile-op :cl-gd)
+ make cl-gd-glue.dylib
</pre>
-<li>From now on you can simply load CL-GD into a running Lisp image with
-<pre>
-(asdf:oos 'asdf:load-op :cl-gd)
-</pre>
-<li>To build <em>without</em> GIF support compile the C library with the option <code>-DGD_DONT_USE_GIF</code> and push the symbol <code>:CL-GD-NO-GIF</code> onto <a href="http://www.lispworks.com/documentation/HyperSpec/Body/v_featur.htm"><code>*FEATURES*</code></a> <em>before</em> compiling CL-GD.
-
-<li>CL-GD comes with a simple test suite that can be used to check if it's
+(Note: On older versions of Linux, you might have to add <code>-liconv</code>.)
+ </li>
+ <li>CL-GD comes with a simple test suite that can be used to check if it's
basically working. Note that this'll only test a subset of CL-GD. To
run the tests load CL-GD and then
<pre>
Please sign in to comment.
Something went wrong with that request. Please try again.