/[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.1 - (hide annotations) (download)
Thu Aug 2 12:56:55 2012 UTC (9 months, 2 weeks ago) by aballier
Branch: MAIN
version bump

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 aballier 1.1 # Copyright 1999-2012 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.0.ebuild,v 1.1 2012/06/22 12:42:30 aballier Exp $
4    
5     inherit findlib
6    
7     DESCRIPTION="OCaml SDL Bindings"
8    
9     HOMEPAGE="http://ocamlsdl.sourceforge.net"
10     SRC_URI="mirror://sourceforge/ocamlsdl/${P}.tar.gz"
11     LICENSE="LGPL-2"
12    
13     SLOT="0"
14     KEYWORDS="~amd64 ~ppc ~x86"
15     IUSE="doc opengl truetype" #noimage nomixer
16    
17     DEPEND=">=dev-lang/ocaml-3.04
18     >=media-libs/libsdl-1.2
19     opengl? ( >=dev-ml/lablgl-0.98 )
20     >=media-libs/sdl-mixer-1.2
21     >=media-libs/sdl-image-1.2
22     truetype? ( >=media-libs/sdl-ttf-2.0 )"
23    
24     src_compile() {
25     myconf=""
26     if use opengl; then
27     destdir=`ocamlfind printconf destdir`
28     lablgldir=`find ${destdir} -name "lablgl" -or -name "lablGL"`
29     if [ -z "${lablgldir}" ]; then
30     destdir=`ocamlc -where`
31     lablgldir=`find ${destdir} -name "lablgl" -or -name "lablGL"`
32     fi
33    
34     if [ ! -z "${lablgldir}" ]; then
35     myconf="--with-lablgldir=${lablgldir}"
36     fi
37     fi
38    
39     #use noimage && myconf="${myconf} --without-sdl-image"
40     #use nomixer && myconf="${myconf} --without-sdl-mixer"
41    
42     econf $myconf \
43     `use_enable truetype sdl-ttf` \
44     || die
45     emake all || die
46     }
47    
48     src_install() {
49     findlib_src_install
50    
51     dodoc AUTHORS NEWS README || die
52     doinfo doc/*.info* || die
53    
54     if use doc; then
55     dohtml doc/html/* || die
56     fi
57     }

  ViewVC Help
Powered by ViewVC 1.1.13