Ticket #189: opensg-1.8.3.ebuild

File opensg-1.8.3.ebuild, 1.7 kB (added by rstanchak, 1 year ago)

fixed ebuild using automake (osg-config didn't work quite right)

Line 
1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="prefix"
6
7 inherit eutils
8
9 DESCRIPTION="OpenSG is a portable scenegraph system to create realtime graphics programs, e.g. for virtual reality applications."
10 HOMEPAGE="http://www.opensg.org"
11 LICENSE="LGPL-2"
12
13 SRC_URI="http://superb-east.dl.sourceforge.net/sourceforge/opensg/opensg_dailybuild.070704.source.tgz"
14
15 SLOT="1"
16 KEYWORDS="~x86 ~amd64"
17
18 # TODO: add use flags for distcc, qt4, tests
19 IUSE="debug tiff png openexr gif cal3d jpeg qt3 cg tests doc"
20
21 DEPEND="
22   virtual/opengl
23   >=sys-libs/zlib-1.2.3-r1
24   virtual/glut
25   tiff? ( >=media-libs/tiff-3.8.2-r2 )
26   png? ( >=media-libs/libpng-1.2.16 )
27   gif? ( >=media-libs/giflib-4.1.4 )
28   jpeg? ( >=media-libs/jpeg-6b-r7 )
29   openexr? ( media-libs/openexr )
30   cal3d? ( >=media-libs/cal3d-0.11.0-r1 )
31   qt3? ( >=x11-libs/qt-3.3.8 )
32   cg? ( >=media-gfx/nvidia-cg-toolkit-1.5.0 )
33   doc? ( >=app-doc/doxygen-1.4.2 )
34   doc? ( sci-visualization/gnuplot )
35   doc? ( media-gfx/imagemagick )
36   doc? ( media-gfx/transfig )
37 "
38
39 RDEPEND="${DEPEND}"
40
41 # globally set the type of OpenSG to be build
42 OSGTYPE="opt"
43 if use debug ; then
44         OSGTYPE="dbg"
45 fi
46
47 src_compile()
48 {
49         # call scons (this customized scons is part of the opensg package)
50         cd ${WORKDIR}/OpenSG
51         econf \
52                 $(use_enable png) \
53                 $(use_enable tiff tif) \
54                 $(use_enable gif) \
55                 $(use_enable jpeg jpg) \
56                 --enable-glut \
57                 $(use_enable qt3 qt) \
58         || die \
59         "!!! Please add ${S}/config.log when filing bugs reports to bugs.gentoo.org"
60
61         emake
62 }
63
64 src_install()
65 {
66         cd ${WORKDIR}/OpenSG
67         mkdir -p ${D}/usr
68         INSTALL_DIR_SED=$(echo ${PREFIX}/usr | sed -e 's/\//\\\//g')
69         emake INSTALL_DIR=${D}/usr INSTALL_DIR_SED=${INSTALL_DIR_SED} install
70 }