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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jun 8 02:11:41 2012 UTC (2 years, 1 month ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 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.4.ebuild,v 1.2 2011/09/14 12:08:39 ssuominen Exp $
4
5 EAPI=3
6 inherit eutils java-pkg-opt-2 multilib
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 dev-tcltk/tkpng
26 sys-libs/libtermcap-compat
27 media-libs/urt
28 x11-libs/libXt
29 x11-libs/libXi
30 java? ( >=virtual/jre-1.5 )"
31
32 DEPEND="${RDEPEND}
33 sys-devel/bison
34 sys-devel/flex
35 java? ( >=virtual/jdk-1.5 )
36 doc? ( dev-libs/libxslt )"
37
38 BRLCAD_DIR="${EPREFIX}/usr/${PN}"
39
40 src_prepare() {
41 epatch "${FILESDIR}"/${P}-libpng15.patch
42
43 java-pkg-opt-2_src_prepare
44 }
45
46 src_configure() {
47 local myconf="--without-jdk"
48 use java && myconf="--with-jdk=$(java-config -O)"
49
50 econf \
51 --disable-strict-build \
52 --prefix="${BRLCAD_DIR}" \
53 --datadir="${BRLCAD_DIR}/share" \
54 --mandir="${BRLCAD_DIR}/man" \
55 --disable-almost-everything \
56 --disable-regex-build \
57 --disable-png-build \
58 --disable-zlib-build \
59 --disable-urt-build \
60 --disable-tcl-build \
61 --disable-tk-build \
62 --disable-itcl-build \
63 --disable-tkimg-build \
64 --disable-jove-build \
65 --disable-tnt-install \
66 --disable-iwidgets-install \
67 --enable-opennurbs-build \
68 --with-ldflags="-L${EPREFIX}/usr/$(get_libdir)/itcl3.4 -L${EPREFIX}/usr/$(get_libdir)/itk3.4" \
69 --with-x \
70 --with-x11 \
71 $(use_enable debug) \
72 $(use_enable debug optimization) \
73 $(use_enable debug runtime-debug) \
74 $(use_enable debug verbose) \
75 $(use_enable debug warnings) \
76 $(use_enable debug progress) \
77 $(use_enable doc documentation) \
78 $(use_enable examples models-install) \
79 $(use_enable smp parallel) \
80 $(use_with opengl ogl) \
81 ${myconf}
82 }
83
84 src_test() {
85 emake check || die "emake check failed"
86 if use benchmarks; then
87 emake benchmark || die "emake benchmark failed"
88 fi
89 }
90
91 src_install() {
92 emake DESTDIR="${D}" install || die "emake install failed"
93 rm -f "${D}"usr/share/brlcad/{README,NEWS,AUTHORS,HACKING,INSTALL,COPYING}
94 dodoc AUTHORS NEWS README HACKING TODO BUGS ChangeLog
95 echo "PATH=\"${BRLCAD_DIR}/bin\"" > 99brlcad
96 echo "MANPATH=\"${BRLCAD_DIR}/man\"" >> 99brlcad
97 doenvd 99brlcad || die
98 newicon misc/macosx/Resources/ReadMe.rtfd/brlcad_logo_tiny.png brlcad.png
99 make_desktop_entry mged "BRL-CAD" brlcad "Graphics;Engineering"
100 }

  ViewVC Help
Powered by ViewVC 1.1.20