/[gentoo-alt]/trunk/overlay/media-libs/jpeg/jpeg-6b-r7.ebuild
Gentoo

Contents of /trunk/overlay/media-libs/jpeg/jpeg-6b-r7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1288 - (show annotations) (download)
Mon May 29 00:51:19 2006 UTC (8 years, 4 months ago) by flameeyes
File size: 1396 byte(s)
Add jpeg with portable patch for maxmem support.
1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/jpeg/jpeg-6b-r7.ebuild,v 1.2 2006/05/29 00:33:43 flameeyes Exp $
4
5 inherit libtool eutils toolchain-funcs
6
7 PATCH_VER=1.2
8 DESCRIPTION="Library to load, handle and manipulate images in the JPEG format"
9 HOMEPAGE="http://www.ijg.org/"
10 SRC_URI="ftp://ftp.uu.net/graphics/jpeg/${PN}src.v${PV}.tar.gz
11 mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
12
13 LICENSE="as-is"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
16 IUSE=""
17
18 RDEPEND=""
19 DEPEND="${RDEPEND}
20 >=sys-devel/libtool-1.5.10-r4"
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25 EPATCH_EXCLUDE="60_all_jpeg-maxmem-sysconf.patch"
26 EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
27
28 epatch "${FILESDIR}/60_all_jpeg-maxmem-sysconf.patch"
29 elibtoolize
30 }
31
32 src_compile() {
33 tc-export CC RANLIB AR
34
35 econf --enable-shared --enable-static \
36 --enable-maxmem=64 || die "econf failed"
37 emake || die "make failed"
38 emake -C "${WORKDIR}"/extra || die "make extra failed"
39 }
40
41 src_install() {
42 make install DESTDIR="${D}" || die "install"
43 make -C "${WORKDIR}"/extra install DESTDIR="${D}" || die "install extra"
44
45 dodoc README install.doc usage.doc wizard.doc change.log \
46 libjpeg.doc example.c structure.doc filelist.doc \
47 coderules.doc
48 }

  ViewVC Help
Powered by ViewVC 1.1.20