summaryrefslogtreecommitdiff
blob: 09d634393a2bf2c34307859b50b94f8f16ee367a (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/qhull/qhull-3.1-r1.ebuild,v 1.2 2003/07/12 18:06:04 aliz Exp $

IUSE=""

S=${WORKDIR}/qhull3.1
DESCRIPTION="Geometry library"
SRC_URI="http://www.geom.umn.edu/software/qhull/qhull3.1.tgz"
HOMEPAGE="http://www.geom.umn.edu/software/qhull/"

SLOT="0"
LICENSE="BSD"
KEYWORDS="x86 ~sparc "

DEPEND=""

src_compile() {
	cd src
	# This echo statement appends a new build target to the exisiting Makefile
	# for an additional shared library; originally added to support octave-forge
	echo 'libqhull.so: $(OBJS)
	c++ -shared -Xlinker -soname -Xlinker $@ -o libqhull.so $(OBJS)' >> Makefile.txt
	# This line now specifies the build targets, including the target added on
	# the previous line
	make -f Makefile.txt all libqhull.so

}

src_install () {

	cd src

	dolib libqhull.a
	# This line installs the extra shared lib compiled with the target added
	# above
	dolib.so libqhull.so
	dobin qconvex
	dobin qdelaunay
	dobin qhalf
	dobin qhull
	dobin qvoronoi
	dobin rbox

	dodir /usr/include/qhull
	insinto /usr/include/qhull
	doins *.h

	cd ${S}
	dodoc Announce.txt COPYING.txt File_id.diz README.txt REGISTER.txt

	cd html

	rename .htm .html *.htm
	rename .man .1 *.man

	dohtml -a html,gif *

	doman *.1

	dodoc *.txt
}