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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Thu Feb 23 20:34:13 2012 UTC (7 years, 11 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
remove old

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

1 armin76 1.5 # Copyright 1999-2012 Gentoo Foundation
2 mattam 1.1 # Distributed under the terms of the GNU General Public License v2
3 aballier 1.6 # $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlsdl/ocamlsdl-0.7.1.ebuild,v 1.5 2012/02/05 18:33:08 armin76 Exp $
4 mattam 1.1
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 armin76 1.5 KEYWORDS="ppc x86"
15 mattam 1.2 IUSE="doc opengl truetype" #noimage nomixer
16 mattam 1.1
17     DEPEND=">=dev-lang/ocaml-3.04
18     >=media-libs/libsdl-1.2
19     opengl? ( >=dev-ml/lablgl-0.98 )
20 mattam 1.2 >=media-libs/sdl-mixer-1.2
21     >=media-libs/sdl-image-1.2
22 mattam 1.1 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 mattam 1.2 #use noimage && myconf="${myconf} --without-sdl-image"
40     #use nomixer && myconf="${myconf} --without-sdl-mixer"
41 mattam 1.1
42     econf $myconf \
43     `use_enable truetype sdl-ttf` \
44     || die
45 mattam 1.2 emake all || die
46 mattam 1.1 }
47    
48     src_install() {
49     findlib_src_install
50    
51     dodoc AUTHORS NEWS README
52     doinfo doc/*.info*
53    
54     if use doc; then
55     dohtml doc/html/*
56     fi
57     }

  ViewVC Help
Powered by ViewVC 1.1.20