blob: 7e01f935c70b74d649e22d1a184c5d7c3d8be145 (
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
51
52
53
54
55
56
57
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/jpeg-mmx/jpeg-mmx-1.1.2-r1.ebuild,v 1.18 2005/05/11 15:18:09 azarah Exp $
inherit flag-o-matic eutils
DESCRIPTION="JPEG library with mmx enhancements"
HOMEPAGE="http://mjpeg.sourceforge.net/"
SRC_URI="mirror://sourceforge/mjpeg/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* x86"
IUSE=""
DEPEND="virtual/libc"
S=${WORKDIR}/jpeg-mmx
src_unpack() {
unpack ${P}.tar.gz
cd ${S}
epatch ${FILESDIR}/${PV}-gcc34.patch
}
src_compile() {
# Doesn't work with -fomit-frame-pointer, at least not on k6-2.
# Someone mentioned that this may be a k6 issue only; I have
# just a k6-2 to test it on, so I'll just adjust it for the
# machine I can test.
is-flag "-march=k6-3" && strip-flags "-fomit-frame-pointer"
is-flag "-march=k6-2" && strip-flags "-fomit-frame-pointer"
is-flag "-march=k6" && strip-flags "-fomit-frame-pointer"
# Do not elibtoolize, as it uses libtool-1.2, and is really too ancient
# for any of our patches to apply.
#elibtoolize
econf --enable-shared || die "configure failed"
emake || die "make failed"
}
src_install() {
dodir /usr/{include/jpeg-mmx,lib}
make \
includedir=${D}/usr/include/jpeg-mmx \
prefix=${D}/usr \
install || die "install failed"
mv ${D}/usr/lib/libjpeg.la ${D}/usr/lib/libjpeg-mmx.la
mv ${D}/usr/lib/libjpeg.so.62.0.0 ${D}/usr/lib/libjpeg-mmx.so.62.0.0
rm ${D}/usr/lib/libjpeg.so
ln -s /usr/lib/libjpeg-mmx.so.62.0.0 ${D}/usr/lib/libjpeg-mmx.so
rm ${D}/usr/lib/libjpeg.so.62
ln -s /usr/lib/libjpeg-mmx.so.62.0.0 ${D}/usr/lib/libjpeg-mmx.so.62
dodoc README change.log structure.doc libjpeg.doc
}
|