summaryrefslogtreecommitdiff
blob: f0b78c8b2d2d2bde2d0754174705c65b3c3da3da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit common-lisp-2

DESCRIPTION="CL-GD is a library for Common Lisp which interfaces ti the GD Graphics Library"
HOMEPAGE="http://weitz.de/cl-gd/
		http://www.cliki.net/cl-gd/"
SRC_URI="http://common-lisp.net/~sionescu/ediware/${PN}_${PV}.orig.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""

DEPEND=">=dev-lisp/uffi-1.3.4
		dev-lisp/cffi
		media-libs/libpng
		media-libs/jpeg
		media-libs/freetype
		>=media-libs/gd-2.0.28
		sys-libs/zlib"

CLSYSTEMS="${PN} ${PN}-test"

src_compile() {
	gcc ${CFLAGS} -fPIC -c ${PN}-glue.c
	ld -shared -lgd -lz -lpng -ljpeg -lfreetype -lm ${PN}-glue.o -o ${PN}-glue.so
	rm ${PN}-glue.o
}

src_install() {
	dolib.so ${PN}-glue.so

	common-lisp-install *.{lisp,asd} test
	common-lisp-symlink-asdf

	dodoc CHANGELOG README
	dohtml doc/*
}