blob: e3623b148c7bdf78f5492d403ccc18a6f30839b6 (
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
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild,v 1.5 2015/03/17 15:58:49 aballier Exp $
EAPI=5
inherit findlib eutils
DESCRIPTION="OCaml SDL Bindings"
HOMEPAGE="http://ocamlsdl.sourceforge.net"
SRC_URI="mirror://sourceforge/ocamlsdl/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0/${PV}"
KEYWORDS="~amd64 ppc x86"
IUSE="doc +ocamlopt opengl truetype" #noimage nomixer
RDEPEND="
>=dev-lang/ocaml-3.12:=[ocamlopt=]
>=media-libs/libsdl-1.2
opengl? ( >=dev-ml/lablgl-0.98:= )
>=media-libs/sdl-mixer-1.2
>=media-libs/sdl-image-1.2
truetype? ( >=media-libs/sdl-ttf-2.0 )
"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}/ocamlopt.patch"
}
src_configure() {
myconf=""
if use opengl; then
destdir=`ocamlfind printconf destdir`
lablgldir=`find ${destdir} -name "lablgl" -or -name "lablGL"`
if [ -z "${lablgldir}" ]; then
destdir=`ocamlc -where`
lablgldir=`find ${destdir} -name "lablgl" -or -name "lablGL"`
fi
if [ ! -z "${lablgldir}" ]; then
myconf="--with-lablgldir=${lablgldir}"
fi
fi
#use noimage && myconf="${myconf} --without-sdl-image"
#use nomixer && myconf="${myconf} --without-sdl-mixer"
econf $myconf \
`use_enable truetype sdl-ttf`
}
src_install() {
findlib_src_install
dodoc AUTHORS NEWS README
doinfo doc/*.info*
if use doc; then
dohtml doc/html/*
fi
}
|