summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libgexiv2/Manifest2
-rw-r--r--media-libs/libgexiv2/libgexiv2-0.1.0.ebuild50
-rw-r--r--media-libs/libraw/Manifest3
-rw-r--r--media-libs/libraw/files/libraw.pc12
-rw-r--r--media-libs/libraw/libraw-0.9.1.ebuild71
5 files changed, 138 insertions, 0 deletions
diff --git a/media-libs/libgexiv2/Manifest b/media-libs/libgexiv2/Manifest
new file mode 100644
index 0000000..c8de8dc
--- /dev/null
+++ b/media-libs/libgexiv2/Manifest
@@ -0,0 +1,2 @@
+DIST libgexiv2-0.1.0.tar.bz2 23971 RMD160 8f8ffb19b58772679437df072153eb26101345b1 SHA1 31d14d35189e128f3c72e51cf627fa462dc60dd9 SHA256 0efddbda2e103f0704f57b06571cacded7401323480082107ee5cde3f1d61f6f
+EBUILD libgexiv2-0.1.0.ebuild 1325 RMD160 aea461c1dc30241559391543baf84e1e0544b250 SHA1 02849a5209294495108fbedfbd7670aa79aaa6ec SHA256 db0d478bd11569c29c4d1910ed0a890c6eeacf9f1721e22ffcaabcafaee7d6bb
diff --git a/media-libs/libgexiv2/libgexiv2-0.1.0.ebuild b/media-libs/libgexiv2/libgexiv2-0.1.0.ebuild
new file mode 100644
index 0000000..eca48dd
--- /dev/null
+++ b/media-libs/libgexiv2/libgexiv2-0.1.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/exiv2/exiv2-0.19.ebuild,v 1.8 2010/04/18 19:24:55 maekke Exp $
+
+EAPI="2"
+
+inherit eutils versionator
+
+MY_PN="gexiv2"
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="EXIF and IPTC metadata C++ library and command line utility"
+HOMEPAGE="http://trac.yorba.org/wiki/gexiv2"
+SRC_URI="http://yorba.org/download/${MY_PN}/${MY_PV}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug static-libs"
+
+RDEPEND="dev-libs/glib
+ >=media-gfx/exiv2-0.19"
+DEPEND="${RDEPEND}
+ dev-lang/vala[vapigen]
+ dev-util/pkgconfig"
+
+src_prepare() {
+ sed -ie 's/libtool/libtool --tag=CC/g' Makefile || die "libtool sed failed"
+}
+
+src_configure() {
+ local myconf="--prefix=/usr"
+
+ use debug && myconf+=" --debug"
+
+ # Upstream has a custom configure shell script
+ ./configure ${myconf} || die "configure failed"
+
+ echo "LIB=$(get_libdir)" >> configure.mk
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS MAINTAINERS NEWS README THANKS || die "dodoc failed"
+
+ if ! use static-libs; then
+ find "${D}" -name '*.la' -delete || die "deleting .la files failed"
+ find "${D}" -name '*.a' -delete || die "deleting .la files failed"
+ fi
+}
diff --git a/media-libs/libraw/Manifest b/media-libs/libraw/Manifest
new file mode 100644
index 0000000..1f2af97
--- /dev/null
+++ b/media-libs/libraw/Manifest
@@ -0,0 +1,3 @@
+AUX libraw.pc 289 RMD160 89a58bc9aae7b465c4f504e3c7e55beb07461dfb SHA1 483d5dba5ea0d99c5d1901fa3648cc475a18c7c0 SHA256 214beae165ae5b678c386ba9db570f4bae95e55638aec054c2d3195d53ea5bdf
+DIST LibRaw-0.9.1.tar.gz 547554 RMD160 53cf7747c91b47c35014379c1cc6490e2b1468d1 SHA1 c314ac3949605ea3419f0ef1851af3af1772e6d9 SHA256 f9737af7988579945994c1eb3b9e74ff201584e7dc8a92dac0b1e83457be125c
+EBUILD libraw-0.9.1.ebuild 1791 RMD160 babaec04f599108253a88c2eaf5cf31a0a43b948 SHA1 51a18d43edad062d4f5b6dc08217ca470a91429c SHA256 d301998779edcd9b9956858d400b7cb02092c9c749136d0ed99ee72d243d6cf6
diff --git a/media-libs/libraw/files/libraw.pc b/media-libs/libraw/files/libraw.pc
new file mode 100644
index 0000000..5d688ab
--- /dev/null
+++ b/media-libs/libraw/files/libraw.pc
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+VERSION=@version@
+
+Name: @PN@
+Description: Library for easy decoding of camera RAW files
+Requires:
+Version: @version@
+Libs: -L${libdir} -lraw -ljpeg
+Cflags: -I${includedir}/libraw -I${includedir}
diff --git a/media-libs/libraw/libraw-0.9.1.ebuild b/media-libs/libraw/libraw-0.9.1.ebuild
new file mode 100644
index 0000000..714f99f
--- /dev/null
+++ b/media-libs/libraw/libraw-0.9.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+MY_P="LibRaw-${PV}"
+
+inherit eutils
+
+DESCRIPTION="Decoding library for RAW image formats"
+HOMEPAGE="http://www.libraw.org/"
+SRC_URI="http://www.${PN}.org/data/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1 CDDL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="lcms openmp utils"
+
+RDEPEND="media-libs/jpeg:0
+ lcms? ( media-libs/lcms:0 )"
+DEPEND="${RDEPEND}
+ openmp? ( sys-devel/gcc[openmp] )"
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ local prefix=/usr
+
+ sed -e "s:@prefix@:${prefix}:g" \
+ -e "s:@version@:${PV}:g" \
+ -e "s:@PN@:${PN}:g" \
+ ${FILESDIR}/libraw.pc > ${WORKDIR}/libraw.pc || die "pkgconfig sed failed"
+
+ sed -ie "s:CFLAGS=\(.*\):CFLAGS=${CFLAGS} \1:g" Makefile || die "CFLAGS fix failed"
+
+ if use lcms; then
+ sed -ie "s:^#\(LCMS_.*\)/usr/local/\(.*\):\1${ROOT}${prefix}/\2:" Makefile || die "Enable lcms failed"
+ sed -ie "s/^\(Libs:.*\)/\1 -llcms/g" ${WORKDIR}/libraw.pc || die "lcms pkgconfig failed"
+ fi
+
+ if use openmp; then
+ sed -ie "s:^#\(CFLAGS.*openmp\):\1:" Makefile || die "Enable openmp failed"
+ sed -ie "s/^\(Libs:.*\)/\1 -fopenmp/g" ${WORKDIR}/libraw.pc || die "openmp pkgconfig failed"
+ fi
+}
+
+src_compile() {
+ emake library || die "emake library failed"
+ if use utils; then
+ emake all_samples || die "emake utils failed"
+ fi
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)
+ doins ./lib/lib* || die "doins libs failed"
+
+ insinto /usr/include
+ doins -r ./libraw || die "doins includes failed"
+
+ if use utils; then
+ insinto /usr/bin
+ doins samples/* || die "doins utils failed"
+ fi
+
+ # Only static libs are installed
+ insinto /usr/lib/pkgconfig
+ doins ${WORKDIR}/libraw.pc || die "doins .pc failed"
+
+ dodoc Changelog.txt || die "dodoc failed"
+}