blob: aaeb93afcf244704e53c3b540951fc190245224b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/freeglut/freeglut-2.8.0-r1.ebuild,v 1.6 2012/09/30 17:28:49 armin76 Exp $
EAPI=4
inherit eutils libtool
DESCRIPTION="A completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library"
HOMEPAGE="http://freeglut.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="debug static-libs"
RDEPEND="virtual/glu
virtual/opengl
x11-libs/libX11
x11-libs/libXext
>=x11-libs/libXi-1.3
x11-libs/libXrandr
x11-libs/libXxf86vm"
DEPEND="${RDEPEND}
x11-proto/inputproto
x11-proto/xproto"
DOCS="AUTHORS ChangeLog NEWS README TODO"
src_prepare() {
# Please read the comments in the patch before thinking about dropping it
# yet again...
epatch "${FILESDIR}"/${PN}-2.4.0-bsd-usb-joystick.patch
# smooth_opengl3 demo doesn't build with recent mesa, bug #428382
sed -i "s/smooth_opengl3 //" progs/demos/Makefile.* || die
# Needed for sane .so versionning on bsd, please don't drop
elibtoolize
}
src_configure() {
econf \
$(use_enable static-libs static) \
--enable-replace-glut \
$(use_enable debug)
}
src_install() {
default
dohtml -r doc
find "${ED}" -name '*.la' -exec rm -f {} +
}
|