/[gentoo-x86]/media-gfx/brlcad/brlcad-7.18.2.ebuild
Gentoo

Contents of /media-gfx/brlcad/brlcad-7.18.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 8 08:02:52 2011 UTC (2 years, 9 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha61/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/brlcad/brlcad-7.18.2.ebuild,v 1.1 2011/03/27 19:06:12 dilfridge Exp $
4
5 EAPI=3
6 inherit eutils java-pkg-opt-2
7
8 DESCRIPTION="Constructive solid geometry modeling system"
9 HOMEPAGE="http://brlcad.org/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="LGPL-2 BSD"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="benchmarks debug doc examples java opengl smp"
16
17 RDEPEND="media-libs/libpng
18 sys-libs/zlib
19 >=sci-libs/tnt-3
20 sci-libs/jama
21 =dev-tcltk/itcl-3.4*
22 =dev-tcltk/itk-3.4*
23 dev-tcltk/iwidgets
24 dev-tcltk/tkimg
25 sys-libs/libtermcap-compat
26 media-libs/urt
27 x11-libs/libXt
28 x11-libs/libXi
29 java? ( >=virtual/jre-1.5 )"
30
31 DEPEND="${RDEPEND}
32 sys-devel/bison
33 sys-devel/flex
34 java? ( >=virtual/jdk-1.5 )
35 doc? ( dev-libs/libxslt )"
36
37 BRLCAD_DIR="${EPREFIX}/usr/${PN}"
38
39 src_configure() {
40 local myconf="--without-jdk"
41 use java && myconf="--with-jdk=$(java-config -O)"
42
43 econf \
44 --disable-strict-build \
45 --prefix="${BRLCAD_DIR}" \
46 --datadir="${BRLCAD_DIR}/share" \
47 --mandir="${BRLCAD_DIR}/man" \
48 --disable-almost-everything \
49 --disable-regex-build \
50 --disable-png-build \
51 --disable-zlib-build \
52 --disable-urt-build \
53 --disable-tcl-build \
54 --disable-tk-build \
55 --disable-itcl-build \
56 --disable-tkimg-build \
57 --disable-jove-build \
58 --disable-tnt-install \
59 --disable-iwidgets-install \
60 --enable-opennurbs-build \
61 --with-ldflags="-L${EPREFIX}/usr/$(get_libdir)/itcl3.4 -L${EPREFIX}/usr/$(get_libdir)/itk3.4" \
62 --with-x \
63 --with-x11 \
64 $(use_enable debug) \
65 $(use_enable debug optimization) \
66 $(use_enable debug runtime-debug) \
67 $(use_enable debug verbose) \
68 $(use_enable debug warnings) \
69 $(use_enable debug progress) \
70 $(use_enable doc documentation) \
71 $(use_enable examples models-install) \
72 $(use_enable smp parallel) \
73 $(use_with opengl ogl) \
74 ${myconf}
75 }
76
77 src_test() {
78 emake check || die "emake check failed"
79 if use benchmarks; then
80 emake benchmark || die "emake benchmark failed"
81 fi
82 }
83
84 src_install() {
85 emake DESTDIR="${D}" install || die "emake install failed"
86 rm -f "${D}"usr/share/brlcad/{README,NEWS,AUTHORS,HACKING,INSTALL,COPYING}
87 dodoc AUTHORS NEWS README HACKING TODO BUGS ChangeLog
88 echo "PATH=\"${BRLCAD_DIR}/bin\"" > 99brlcad
89 echo "MANPATH=\"${BRLCAD_DIR}/man\"" >> 99brlcad
90 doenvd 99brlcad || die
91 newicon misc/macosx/Resources/ReadMe.rtfd/brlcad_logo_tiny.png brlcad.png
92 make_desktop_entry mged "BRL-CAD" brlcad "Graphics;Engineering"
93 }

  ViewVC Help
Powered by ViewVC 1.1.20