diff options
Diffstat (limited to 'media-libs/openjpeg/openjpeg-1.3.ebuild')
-rw-r--r-- | media-libs/openjpeg/openjpeg-1.3.ebuild | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/media-libs/openjpeg/openjpeg-1.3.ebuild b/media-libs/openjpeg/openjpeg-1.3.ebuild index b17ad3fe6f62..0b9eb57c7688 100644 --- a/media-libs/openjpeg/openjpeg-1.3.ebuild +++ b/media-libs/openjpeg/openjpeg-1.3.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/openjpeg-1.3.ebuild,v 1.1 2008/03/01 11:39:48 drizzt Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/openjpeg-1.3.ebuild,v 1.2 2008/03/01 18:19:58 drizzt Exp $ -inherit flag-o-matic toolchain-funcs multilib +inherit eutils toolchain-funcs multilib DESCRIPTION="An open-source JPEG 2000 codec written in C" HOMEPAGE="http://www.openjpeg.org/" @@ -11,7 +11,8 @@ SRC_URI="http://www.openjpeg.org/openjpeg_v${PV//./_}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="" +IUSE="tools" +DEPEND="tools? ( >=media-libs/tiff-3.8.2 )" S="${WORKDIR}/OpenJPEG_v1_3" @@ -19,16 +20,20 @@ src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${PN}-1.2-Makefile.patch - epatch "${FILESDIR}"/${P}-codec-Makefile.patch + cp "${FILESDIR}"/${P}-codec-Makefile "${S}"/codec/Makefile } src_compile() { - append-flags -fPIC - emake CC="$(tc-getCC)" AR="$(tc-getAR)" COMPILERFLAGS="${CFLAGS}" || die "emake failed" + emake CC="$(tc-getCC)" AR="$(tc-getAR)" COMPILERFLAGS="${CFLAGS} -std=c99 -fPIC" || die "emake failed" + if use tools; then + emake -C codec CC="$(tc-getCC)" || die "emake failed" + fi } src_install() { emake DESTDIR="${D}" INSTALL_LIBDIR="/usr/$(get_libdir)" install || die "install failed" - emake -C codec DESTDIR="${D}" INSTALL_BINDIR="/usr/bin" install || die "install failed" + if use tools; then + emake -C codec DESTDIR="${D}" INSTALL_BINDIR="/usr/bin" install || die "install failed" + fi dodoc ChangeLog } |