diff options
author | 2009-02-09 21:30:37 +0100 | |
---|---|---|
committer | 2009-02-09 21:30:37 +0100 | |
commit | 7880cd59bab4e270424506cde91f39bffe2ff02e (patch) | |
tree | 754cb025cb342977d6b00282be312b02dd170bb4 | |
parent | Clean out old. (diff) | |
download | loki_val-7880cd59bab4e270424506cde91f39bffe2ff02e.tar.gz loki_val-7880cd59bab4e270424506cde91f39bffe2ff02e.tar.bz2 loki_val-7880cd59bab4e270424506cde91f39bffe2ff02e.zip |
Add libopenjpeg
-rw-r--r-- | media-libs/openjpeg/ChangeLog | 82 | ||||
-rw-r--r-- | media-libs/openjpeg/Manifest | 7 | ||||
-rw-r--r-- | media-libs/openjpeg/files/openjpeg-1.1.1-Makefile.patch | 20 | ||||
-rw-r--r-- | media-libs/openjpeg/files/openjpeg-1.2-Makefile.patch | 23 | ||||
-rw-r--r-- | media-libs/openjpeg/files/openjpeg-1.3-codec-Makefile | 21 | ||||
-rw-r--r-- | media-libs/openjpeg/metadata.xml | 11 | ||||
-rw-r--r-- | media-libs/openjpeg/openjpeg-1.3-r2.ebuild | 40 |
7 files changed, 204 insertions, 0 deletions
diff --git a/media-libs/openjpeg/ChangeLog b/media-libs/openjpeg/ChangeLog new file mode 100644 index 0000000..78f6da6 --- /dev/null +++ b/media-libs/openjpeg/ChangeLog @@ -0,0 +1,82 @@ +# ChangeLog for media-libs/openjpeg +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/ChangeLog,v 1.19 2009/02/03 15:34:37 drizzt Exp $ + +*openjpeg-1.3-r1 (03 Feb 2009) + + 03 Feb 2009; <drizzt@gentoo.org> openjpeg-1.3.ebuild, + +openjpeg-1.3-r1.ebuild: + Link with libm wrt bug #246727 + + 07 Dec 2008; Mike Frysinger <vapier@gentoo.org> openjpeg-1.3.ebuild: + Add arm/s390/sh love #240520. + + 25 Oct 2008; Raúl Porcel <armin76@gentoo.org> openjpeg-1.3.ebuild: + Add ~ia64 wrt #240520 + + 13 Oct 2008; Jeroen Roovers <jer@gentoo.org> openjpeg-1.3.ebuild: + Marked ~hppa (bug #240520). + + 02 Oct 2008; Brent Baude <ranger@gentoo.org> openjpeg-1.3.ebuild: + stable ppc, bug 237418 + + 01 Oct 2008; Brent Baude <ranger@gentoo.org> openjpeg-1.3.ebuild: + stable ppc64, bug 237418 + + 28 Sep 2008; Raúl Porcel <armin76@gentoo.org> openjpeg-1.3.ebuild: + alpha/sparc/x86 stable wrt #237418 + + 20 Sep 2008; Steve Dibb <beandog@gentoo.org> openjpeg-1.3.ebuild: + amd64 stable, bug 237418 + + 15 Sep 2008; Brent Baude <ranger@gentoo.org> openjpeg-1.2.ebuild: + Marking openjpeg-1.2 ppc for bug 237032 + + 12 May 2008; Markus Rothe <corsair@gentoo.org> openjpeg-1.2.ebuild: + Stable on ppc64 + + 01 Mar 2008; Timothy Redaelli <drizzt@gentoo.org> + +files/openjpeg-1.3-codec-Makefile, + -files/openjpeg-1.3-codec-Makefile.patch, openjpeg-1.3.ebuild: + Fix wrt bug #211999. + Thanks to Jakub Moc for reporting. + +*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 + + 30 Jan 2008; Raúl Porcel <armin76@gentoo.org> openjpeg-1.2.ebuild: + Add ~sparc wrt #206759 + + 24 Sep 2007; Raúl Porcel <armin76@gentoo.org> openjpeg-1.2.ebuild: + Add ~alpha wrt #189692 + + 09 Sep 2007; Joseph Jezak <josejx@gentoo.org> openjpeg-1.1.1.ebuild, + openjpeg-1.2.ebuild: + Added ~ppc/~ppc64 for bug #189692. + + 23 Aug 2007; Roy Marples <uberlord@gentoo.org> + files/openjpeg-1.2-Makefile.patch, openjpeg-1.2.ebuild: + Redo the Makefile patch so it doesn't specify install user/group and it + doesn't strip by default. Keyworded ~x86-fbsd, #189692. + +*openjpeg-1.2 (30 Jun 2007) + + 30 Jun 2007; Timothy Redaelli <drizzt@gentoo.org> + +files/openjpeg-1.2-Makefile.patch, +openjpeg-1.2.ebuild: + Version bump. + Thanks to Matsuu Takuto for reporting wrt bug #183698. + +*openjpeg-1.1.1 (06 Mar 2007) + + 06 Mar 2007; Timothy Redaelli <drizzt@gentoo.org> + +files/openjpeg-1.1.1-Makefile.patch, +metadata.xml, + +openjpeg-1.1.1.ebuild: + New ebuild, thanks to Guido wrt bug #127026 + diff --git a/media-libs/openjpeg/Manifest b/media-libs/openjpeg/Manifest new file mode 100644 index 0000000..642fc50 --- /dev/null +++ b/media-libs/openjpeg/Manifest @@ -0,0 +1,7 @@ +AUX openjpeg-1.1.1-Makefile.patch 558 RMD160 485ed66f0db6df3e657fa7fb09a333eae12f9cdb SHA1 5d78c5d2230cc03605e28437a7d84edfb4c230a6 SHA256 216925794ff95f720f910ef414256abf41cf2fb50a1b4cc9e65e3eb812f1b758 +AUX openjpeg-1.2-Makefile.patch 999 RMD160 0088fbadaea6401409071df76591ab6b1c006665 SHA1 79026cb2ea5fb9eafe187b03edad7f21e132a03b SHA256 39d427776b30026aa6ca03df4c52f13ffded210cb8327e351db1c9f170db5040 +AUX openjpeg-1.3-codec-Makefile 722 RMD160 fdc0880dfab7f82d56716afb9b73a283953f0917 SHA1 b38ab6acda4676bba922167a06104f6c6564bdf2 SHA256 6554a08e1cd69476ad3c06cc6322ed28c010ac947a43489b14748c4e51d2a0a4 +DIST openjpeg_v1_3.tar.gz 1004678 RMD160 2a22cc123058b1974cd1bf3898044acabceba26c SHA1 8d6870d9500ea09e0b1d30b981bea1c8de534de4 SHA256 3bca2e1e040f9dcbbcb1e0627f17a76eeb95e153bf663d082070c044a21202bd +EBUILD openjpeg-1.3-r2.ebuild 1247 RMD160 73ebb61dee987e7d55c7b249b980df3404b167ba SHA1 926d84fa5117a62157f8092b97305e8d42413e63 SHA256 44693669257fc5e38ec5f5732f21c2c73e55160132bb1ec5c3433a96e20b7d49 +MISC ChangeLog 2806 RMD160 fbc0e3547ec1070aefd41bd2b7731fbdd833867c SHA1 03d207133b872d9f46f10f14972c99af76affd17 SHA256 36dd516531e7199c2074b952da42ff1d079e85cfcde58b9e0978ffe562153cb0 +MISC metadata.xml 324 RMD160 2d95e0a01f11bca08961a8f7f2e0d56370567dff SHA1 a7fe255b6b2dd6c97da736a90d8fd41751291ee5 SHA256 a60b95e1f390cbd2b180519d2a200c766fa5adf86534ada54fda51ea1f2310ce diff --git a/media-libs/openjpeg/files/openjpeg-1.1.1-Makefile.patch b/media-libs/openjpeg/files/openjpeg-1.1.1-Makefile.patch new file mode 100644 index 0000000..d783e28 --- /dev/null +++ b/media-libs/openjpeg/files/openjpeg-1.1.1-Makefile.patch @@ -0,0 +1,20 @@ +--- OpenJPEG/Makefile.orig 2007-02-13 09:49:00.000000000 +0100 ++++ OpenJPEG/Makefile 2007-02-28 08:28:58.000000000 +0100 +@@ -36,7 +36,7 @@ + dist: OpenJPEG + mkdir -p dist + cp *.a dist +- mv *.so dist ++ cp *.so dist + cp libopenjpeg/openjpeg.h dist + + dos2unix: +@@ -51,7 +51,7 @@ + $(AR) r $@ $(MODULES) + + $(SHAREDLIB): $(MODULES) +- $(CC) -s -shared -Wl,-soname,$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES) ++ $(CC) $(LDFLAGS) -s -shared -Wl,-soname,$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES) + + install: + install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR) diff --git a/media-libs/openjpeg/files/openjpeg-1.2-Makefile.patch b/media-libs/openjpeg/files/openjpeg-1.2-Makefile.patch new file mode 100644 index 0000000..3ed124d --- /dev/null +++ b/media-libs/openjpeg/files/openjpeg-1.2-Makefile.patch @@ -0,0 +1,23 @@ +diff -ur a/Makefile b/Makefile +--- a/Makefile 2007-06-04 14:27:25 +0100 ++++ b/Makefile 2007-08-23 11:38:25 +0100 +@@ -54,15 +54,15 @@ + $(AR) r $@ $(MODULES) + + $(SHAREDLIB): $(MODULES) +- $(CC) -s -shared -Wl,-soname,$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES) ++ $(CC) $(LDFLAGS) -shared -Wl,-soname,$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES) + + install: OpenJPEG + install -d '$(DESTDIR)$(INSTALL_LIBDIR)' '$(DESTDIR)$(INSTALL_INCLUDE)' +- install -m 644 -o root -g root $(STATICLIB) '$(DESTDIR)$(INSTALL_LIBDIR)' ++ install -m 644 $(STATICLIB) '$(DESTDIR)$(INSTALL_LIBDIR)' + ranlib '$(DESTDIR)$(INSTALL_LIBDIR)/$(STATICLIB)' +- install -m 755 -o root -g root $(SHAREDLIB) '$(DESTDIR)$(INSTALL_LIBDIR)' ++ install -m 755 $(SHAREDLIB) '$(DESTDIR)$(INSTALL_LIBDIR)' + ln -sf $(SHAREDLIB) '$(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)' +- install -m 644 -o root -g root libopenjpeg/openjpeg.h '$(DESTDIR)$(INSTALL_INCLUDE)' ++ install -m 644 libopenjpeg/openjpeg.h '$(DESTDIR)$(INSTALL_INCLUDE)' + -ldconfig + + clean: diff --git a/media-libs/openjpeg/files/openjpeg-1.3-codec-Makefile b/media-libs/openjpeg/files/openjpeg-1.3-codec-Makefile new file mode 100644 index 0000000..8a07423 --- /dev/null +++ b/media-libs/openjpeg/files/openjpeg-1.3-codec-Makefile @@ -0,0 +1,21 @@ +# Makefile for the main OpenJPEG codecs: j2k_to_image and image_to_j2k + +CFLAGS += -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 + $(CC) $(CFLAGS) $(LDFLAGS) compat/getopt.c index.c convert.c j2k_to_image.c -o j2k_to_image -L.. -lopenjpeg -I ../libopenjpeg/ -lm -ltiff + +image_to_j2k: image_to_j2k.c ../libopenjpeg.a + $(CC) $(CFLAGS) $(LDFLAGS) compat/getopt.c index.c convert.c image_to_j2k.c -o image_to_j2k -L.. -lopenjpeg -I ../libopenjpeg/ -lm -ltiff + +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/metadata.xml b/media-libs/openjpeg/metadata.xml new file mode 100644 index 0000000..fd1b03c --- /dev/null +++ b/media-libs/openjpeg/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>drizzt@gentoo.org</email> + </maintainer> + <use> + <flag name="tools">Installs tools (j2k_to_image and image_to_j2k)</flag> + </use> +</pkgmetadata> diff --git a/media-libs/openjpeg/openjpeg-1.3-r2.ebuild b/media-libs/openjpeg/openjpeg-1.3-r2.ebuild new file mode 100644 index 0000000..168e5d5 --- /dev/null +++ b/media-libs/openjpeg/openjpeg-1.3-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/openjpeg-1.3-r1.ebuild,v 1.1 2009/02/03 15:34:37 drizzt Exp $ + +inherit eutils 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 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="tools" +DEPEND="tools? ( >=media-libs/tiff-3.8.2 )" +RDEPEND=${DEPEND} + +S="${WORKDIR}/OpenJPEG_v1_3" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-1.2-Makefile.patch + cp "${FILESDIR}"/${P}-codec-Makefile "${S}"/codec/Makefile +} + +src_compile() { + emake CC="$(tc-getCC)" AR="$(tc-getAR)" LIBRARIES="-lm" 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" + if use tools; then + emake -C codec DESTDIR="${D}" INSTALL_BINDIR="/usr/bin" install || die "install failed" + fi + dodoc ChangeLog +} |