diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-11-01 13:59:49 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-11-01 13:59:49 +0000 |
commit | 314db057fe32147e38d7bb753912ffcd4830a16b (patch) | |
tree | 8600ff28dada1804f1150044aa20672085658d4b /media-libs/sg/sg-1.4.ebuild | |
parent | Delete older ebuild. (diff) | |
download | gentoo-2-314db057fe32147e38d7bb753912ffcd4830a16b.tar.gz gentoo-2-314db057fe32147e38d7bb753912ffcd4830a16b.tar.bz2 gentoo-2-314db057fe32147e38d7bb753912ffcd4830a16b.zip |
New addition
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/sg/sg-1.4.ebuild')
-rw-r--r-- | media-libs/sg/sg-1.4.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/media-libs/sg/sg-1.4.ebuild b/media-libs/sg/sg-1.4.ebuild new file mode 100644 index 000000000000..a23f0727e2cd --- /dev/null +++ b/media-libs/sg/sg-1.4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/sg/sg-1.4.ebuild,v 1.1 2010/11/01 13:59:49 jlec Exp $ + +EAPI="3" + +inherit autotools eutils multilib + +DESCRIPTION="Socket Graphics tool for displaying polygons" +HOMEPAGE="http://fetk.org/codes/sg/index.html" +SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="GPL-2" +IUSE="opengl" + +RDEPEND=" + dev-libs/maloc + x11-libs/openmotif + opengl? ( + virtual/glu + virtual/opengl + )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/${PN} + +src_prepare() { + rm src/{gl,glu,glw} -rf + epatch "${FILESDIR}"/${PV}-opengl.patch + eautoreconf +} + +src_configure() { + local sg_include + local sg_lib + local myconf + + sg_include="${EPREFIX}"/usr/include + sg_lib="${EPREFIX}"/usr/$(get_libdir) + export FETK_LIBRARY="${sg_lib}" + export FETK_MOTIF_LIBRARY="${sg_lib}" + export FETK_GL_LIBRARY="${sg_lib}" + export FETK_GLU_LIBRARY="${sg_lib}" + export FETK_GLW_LIBRARY="${sg_lib}" + export FETK_INCLUDE="${sg_include}" + export FETK_GLW_INCLUDE="${sg_include}" + export FETK_GLU_INCLUDE="${sg_include}" + export FETK_GL_INCLUDE="${sg_include}"/GL + export FETK_MOTIF_INCLUDE="${sg_include}" + + use opengl && myconf="${myconf} --enable-glforce --enable-gluforce --enable-glwforce" + + econf \ + ${myconf} \ + --enable-shared \ + --disable-triplet +} + +src_install() { + emake DESTDIR="${D}" install || die +} |