You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/sg/sg-1.5.ebuild

74 lines
1.7 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/sg/sg-1.5.ebuild,v 1.6 2012/10/24 19:14:28 ulm Exp $
EAPI=4
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils 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="doc static-libs"
RDEPEND="
dev-libs/maloc
x11-libs/libXaw
x11-libs/motif
|| (
<media-libs/mesa-8[motif]
( media-libs/mesa x11-libs/libGLw )
media-libs/opengl-apple )"
DEPEND="
${RDEPEND}
doc? (
media-gfx/graphviz
app-doc/doxygen )"
S="${WORKDIR}"/${PN}
PATCHES=(
"${FILESDIR}"/1.4-opengl.patch
"${FILESDIR}"/1.4-doc.patch
)
src_prepare() {
rm src/{gl,glu,glw} -rf || die
autotools-utils_src_prepare
}
src_configure() {
local sg_include
local sg_lib
local myeconfargs
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 doc || myeconfargs+=( --with-doxygen= --with-dot= )
myeconfargs+=( --enable-glforce --enable-gluforce --enable-glwforce )
myeconfargs+=(
--docdir="${EPREFIX}"/usr/share/doc/${PF}
--disable-triplet
)
autotools-utils_src_configure
}