diff options
author | Timothy Redaelli <drizzt@gentoo.org> | 2008-03-01 11:39:49 +0000 |
---|---|---|
committer | Timothy Redaelli <drizzt@gentoo.org> | 2008-03-01 11:39:49 +0000 |
commit | 684ad0360e8a4fd8f42bdec5e1f164f5ac294083 (patch) | |
tree | aaf683e2d28cf36d2e90a5797dad1a8ea9cd2bc1 /media-libs/openjpeg | |
parent | Add ~alpha (diff) | |
download | gentoo-2-684ad0360e8a4fd8f42bdec5e1f164f5ac294083.tar.gz gentoo-2-684ad0360e8a4fd8f42bdec5e1f164f5ac294083.tar.bz2 gentoo-2-684ad0360e8a4fd8f42bdec5e1f164f5ac294083.zip |
Version bump and install image_to_j2k and j2k_to_image tools
Thanks to Alexander Grahn wrt bug #211704
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-libs/openjpeg')
-rw-r--r-- | media-libs/openjpeg/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/openjpeg/files/openjpeg-1.3-codec-Makefile.patch | 20 | ||||
-rw-r--r-- | media-libs/openjpeg/openjpeg-1.3.ebuild | 34 |
3 files changed, 62 insertions, 1 deletions
diff --git a/media-libs/openjpeg/ChangeLog b/media-libs/openjpeg/ChangeLog index bd893dfbf55b..6f25d1104a33 100644 --- a/media-libs/openjpeg/ChangeLog +++ b/media-libs/openjpeg/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/openjpeg # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/ChangeLog,v 1.7 2008/02/21 10:47:38 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/ChangeLog,v 1.8 2008/03/01 11:39:48 drizzt Exp $ + +*openjpeg-1.3 (01 Mar 2008) + + 01 Mar 2008; Timothy Redaelli <drizzt@gentoo.org> + +files/openjpeg-1.3-codec-Makefile.patch, +openjpeg-1.3.ebuild: + Version bump and install image_to_j2k and j2k_to_image tools + Thanks to Alexander Grahn wrt bug #211704 21 Feb 2008; Raúl Porcel <armin76@gentoo.org> openjpeg-1.2.ebuild: alpha/sparc stable diff --git a/media-libs/openjpeg/files/openjpeg-1.3-codec-Makefile.patch b/media-libs/openjpeg/files/openjpeg-1.3-codec-Makefile.patch new file mode 100644 index 000000000000..f1a3206def40 --- /dev/null +++ b/media-libs/openjpeg/files/openjpeg-1.3-codec-Makefile.patch @@ -0,0 +1,20 @@ +--- codec/Makefile 2007-11-27 13:38:52.000000000 +0100 ++++ codec/Makefile.new 2008-02-28 11:18:08.000000000 +0100 +@@ -2,6 +2,9 @@ + + CFLAGS = -O3 -lstdc++ # -g -p -pg + ++PREFIX = /usr ++INSTALL_BINDIR = $(PREFIX)/bin ++ + all: j2k_to_image image_to_j2k + + j2k_to_image: j2k_to_image.c ../libopenjpeg.a +@@ -12,3 +15,7 @@ + + clean: + rm -f j2k_to_image image_to_j2k ++ ++install: all ++ install -d '$(DESTDIR)$(INSTALL_BINDIR)' ++ install -m 755 j2k_to_image image_to_j2k '$(DESTDIR)$(INSTALL_BINDIR)' diff --git a/media-libs/openjpeg/openjpeg-1.3.ebuild b/media-libs/openjpeg/openjpeg-1.3.ebuild new file mode 100644 index 000000000000..b17ad3fe6f62 --- /dev/null +++ b/media-libs/openjpeg/openjpeg-1.3.ebuild @@ -0,0 +1,34 @@ +# 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 $ + +inherit flag-o-matic toolchain-funcs multilib + +DESCRIPTION="An open-source JPEG 2000 codec written in C" +HOMEPAGE="http://www.openjpeg.org/" +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="" + +S="${WORKDIR}/OpenJPEG_v1_3" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-1.2-Makefile.patch + epatch "${FILESDIR}"/${P}-codec-Makefile.patch +} + +src_compile() { + append-flags -fPIC + emake CC="$(tc-getCC)" AR="$(tc-getAR)" COMPILERFLAGS="${CFLAGS}" || die "emake failed" +} + +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" + dodoc ChangeLog +} |