blob: e0c30d3a3bf5d5004f8a66104a73a6cb911d2187 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/iulib/iulib-0.4.ebuild,v 1.6 2010/11/08 15:13:00 ssuominen Exp $
inherit eutils toolchain-funcs
DESCRIPTION="easy-to-use image and video I/O functions"
HOMEPAGE="http://code.google.com/p/iulib/"
SRC_URI="http://iulib.googlecode.com/files/${P}.tgz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="sdl"
RDEPEND="sys-libs/zlib
media-libs/libpng
virtual/jpeg
media-libs/tiff
sdl? (
media-libs/libsdl
media-libs/sdl-gfx
)"
DEPEND="${RDEPEND}
dev-util/scons"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-0.4-scons-build-env.patch
sed -i \
-e "/^have_sdl = 1/s:1:`use sdl && echo 1 || echo 0`:" \
-e '/tiff/s:inflate:TIFFOpen:' \
-e '/progs.Append(LIBS=libiulib)/s:Append:Prepend:' \
SConstruct || die #297326 #308955 #310439
sed -i '/SDL.SDL_image.h/d' utils/dgraphics.cc || die #310443
}
src_compile() {
tc-export CC CXX
scons prefix=/usr || die
}
src_install() {
scons install prefix="${D}/usr" || die
dodoc CHANGES README TODO
}
|