blob: 2db6f56f0e987182b121b4dd7f4175ab99c77d56 (
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-2004 Gentoo Foundation
# 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.9 2004/07/01 08:02:58 eradicator Exp $
MY_P="${PN}${PV}"
DESCRIPTION="Geometry library"
HOMEPAGE="http://www.qhull.org"
SRC_URI="http://www.geom.umn.edu/software/qhull/${MY_P}.tgz"
SLOT="0"
LICENSE="BSD"
KEYWORDS="x86 sparc ~ppc amd64"
IUSE=""
RDEPEND="virtual/libc"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd ${S}/src
mv Makefile.txt Makefile
# 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
# the newly compiled programs will be run during the build. seems
# easiest to statically link.
sed -i \
-e 's/-lqhull/libqhull.a/' \
-e '/^all:/ s/$/ libqhull.so/' Makefile \
|| die "sed Makefile failed"
}
src_compile() {
cd src
emake CCOPTS1="${CFLAGS}" || die "emake failed"
}
src_install() {
cd src
dolib libqhull.a || die "dolib failed"
dolib.so libqhull.so || die "dolib.so failed"
dobin qconvex qdelaunay qhalf qhull qvoronoi rbox || die "dobin failed"
insinto /usr/include/qhull
doins *.h
cd ${S}
dodoc Announce.txt COPYING.txt File_id.diz README.txt REGISTER.txt
cd html
dohtml *
dodoc *.txt
for m in *man
do
newman ${m} ${m/.man/.1}
done
}
|