/[gentoo-x86]/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild
Gentoo

Contents of /dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Mar 17 15:58:49 2015 UTC (4 years, 10 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +9 -5 lines
fix build without ocamlopt, bug #543532

Signed-off-by: aballier@gentoo.org
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlsdl/ocamlsdl-0.9.1.ebuild,v 1.4 2013/03/03 14:48:44 aballier Exp $
4
5 EAPI=5
6
7 inherit findlib eutils
8
9 DESCRIPTION="OCaml SDL Bindings"
10
11 HOMEPAGE="http://ocamlsdl.sourceforge.net"
12 SRC_URI="mirror://sourceforge/ocamlsdl/${P}.tar.gz"
13 LICENSE="LGPL-2"
14
15 SLOT="0/${PV}"
16 KEYWORDS="~amd64 ppc x86"
17 IUSE="doc +ocamlopt opengl truetype" #noimage nomixer
18
19 RDEPEND="
20 >=dev-lang/ocaml-3.12:=[ocamlopt=]
21 >=media-libs/libsdl-1.2
22 opengl? ( >=dev-ml/lablgl-0.98:= )
23 >=media-libs/sdl-mixer-1.2
24 >=media-libs/sdl-image-1.2
25 truetype? ( >=media-libs/sdl-ttf-2.0 )
26 "
27 DEPEND="${RDEPEND}"
28
29 src_prepare() {
30 epatch "${FILESDIR}/ocamlopt.patch"
31 }
32
33 src_configure() {
34 myconf=""
35 if use opengl; then
36 destdir=`ocamlfind printconf destdir`
37 lablgldir=`find ${destdir} -name "lablgl" -or -name "lablGL"`
38 if [ -z "${lablgldir}" ]; then
39 destdir=`ocamlc -where`
40 lablgldir=`find ${destdir} -name "lablgl" -or -name "lablGL"`
41 fi
42
43 if [ ! -z "${lablgldir}" ]; then
44 myconf="--with-lablgldir=${lablgldir}"
45 fi
46 fi
47
48 #use noimage && myconf="${myconf} --without-sdl-image"
49 #use nomixer && myconf="${myconf} --without-sdl-mixer"
50
51 econf $myconf \
52 `use_enable truetype sdl-ttf`
53 }
54
55 src_install() {
56 findlib_src_install
57
58 dodoc AUTHORS NEWS README
59 doinfo doc/*.info*
60
61 if use doc; then
62 dohtml doc/html/*
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20