blob: 0ee31cebfaa207d99e45c8ed832091b0559246f6 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libjpeg-turbo/libjpeg-turbo-1.0.90.1.ebuild,v 1.4 2011/01/19 21:09:27 ssuominen Exp $
EAPI=2
inherit autotools libtool toolchain-funcs
DESCRIPTION="MMX, SSE, and SSE2 SIMD accellerated jpeg library"
HOMEPAGE="http://sourceforge.net/projects/libjpeg-turbo/"
SRC_URI="http://dev.gentoo.org/~anarchy/dist/${P}.tar.bz2
mirror://debian/pool/main/libj/libjpeg8/libjpeg8_8b-1.debian.tar.gz"
LICENSE="as-is LGPL-2.1 wxWinLL-3.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"
RDEPEND="!media-libs/jpeg:0"
DEPEND="${RDEPEND}
dev-lang/nasm"
S=${WORKDIR}/${PN}
src_prepare() {
eautoreconf -fiv
elibtoolize
}
src_configure() {
econf \
--with-jpeg8 \
--disable-dependency-tracking \
$(use_enable static-libs static)
}
src_compile() {
emake || die
cd ../debian/extra || die
emake CC="$(tc-getCC)" CFLAGS="${LDFLAGS} ${CFLAGS}" || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc BUILDING.txt ChangeLog.txt example.c README-turbo.txt
find "${D}" -name '*.la' -delete
cd ../debian/extra || die
emake DESTDIR="${D}" prefix=/usr install || die
}
|