diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-02-10 11:25:43 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-02-10 11:25:43 +0000 |
commit | a55d768219208013252c9321fcb1a3af7bab1f6f (patch) | |
tree | ab300035b4225c580b334a69e8ff3085ca5f45e7 /media-libs | |
parent | Version bump (diff) | |
download | gentoo-2-a55d768219208013252c9321fcb1a3af7bab1f6f.tar.gz gentoo-2-a55d768219208013252c9321fcb1a3af7bab1f6f.tar.bz2 gentoo-2-a55d768219208013252c9321fcb1a3af7bab1f6f.zip |
New snapshot.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libjpeg-turbo/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libjpeg-turbo/libjpeg-turbo-1.1.90_p20120210.ebuild | 108 |
2 files changed, 115 insertions, 1 deletions
diff --git a/media-libs/libjpeg-turbo/ChangeLog b/media-libs/libjpeg-turbo/ChangeLog index 82aa97c4c44c..6484adaa4ddf 100644 --- a/media-libs/libjpeg-turbo/ChangeLog +++ b/media-libs/libjpeg-turbo/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/libjpeg-turbo # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libjpeg-turbo/ChangeLog,v 1.26 2012/02/09 20:16:19 mattst88 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libjpeg-turbo/ChangeLog,v 1.27 2012/02/10 11:25:43 ssuominen Exp $ + +*libjpeg-turbo-1.1.90_p20120210 (10 Feb 2012) + + 10 Feb 2012; Samuli Suominen <ssuominen@gentoo.org> + +libjpeg-turbo-1.1.90_p20120210.ebuild: + New snapshot. 09 Feb 2012; Matt Turner <mattst88@gentoo.org> libjpeg-turbo-1.1.90_p20120129.ebuild: diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-1.1.90_p20120210.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-1.1.90_p20120210.ebuild new file mode 100644 index 000000000000..be16c85e3ee3 --- /dev/null +++ b/media-libs/libjpeg-turbo/libjpeg-turbo-1.1.90_p20120210.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libjpeg-turbo/libjpeg-turbo-1.1.90_p20120210.ebuild,v 1.1 2012/02/10 11:25:43 ssuominen Exp $ + +# http://libjpeg-turbo.svn.sourceforge.net/viewvc/libjpeg-turbo/branches/1.2.x/?view=tar + +EAPI=4 + +unset _inherits + +JPEG_ABI=8 + +if [[ ${PV} == *_p20* ]]; then + SRC_URI="http://dev.gentoo.org/~ssuominen/${P}.tar.xz" + _inherits=autotools +else + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +fi + +inherit ${_inherits} java-pkg-opt-2 libtool toolchain-funcs + +DESCRIPTION="MMX, SSE, and SSE2 SIMD accelerated JPEG library" +HOMEPAGE="http://libjpeg-turbo.virtualgl.org/ http://sourceforge.net/projects/libjpeg-turbo/" +SRC_URI="${SRC_URI} + mirror://debian/pool/main/libj/libjpeg${JPEG_ABI}/libjpeg${JPEG_ABI}_${JPEG_ABI}c-2.debian.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="java static-libs" + +ASM_DEPEND="|| ( dev-lang/nasm dev-lang/yasm )" +COMMON_DEPEND="!media-libs/jpeg:0" +RDEPEND="${COMMON_DEPEND} + java? ( >=virtual/jre-1.5 )" +DEPEND="${COMMON_DEPEND} + amd64? ( ${ASM_DEPEND} ) + x86? ( ${ASM_DEPEND} ) + amd64-linux? ( ${ASM_DEPEND} ) + x86-linux? ( ${ASM_DEPEND} ) + java? ( >=virtual/jdk-1.5 )" + +DOCS="*.txt change.log example.c README" + +src_prepare() { + if [[ -x ./configure ]]; then + elibtoolize + else + eautoreconf + fi + java-pkg-opt-2_src_prepare +} + +src_configure() { + if use java; then + export JAVACFLAGS="$(java-pkg_javac-args)" + export JNI_CFLAGS="$(java-pkg_get-jni-cflags)" + fi + + econf \ + $(use_enable static-libs static) \ + --with-jpeg${JPEG_ABI} \ + $(use_with java) +} + +src_compile() { + local _java_makeopts + use java && _java_makeopts="-j1" + emake ${_java_makeopts} + + ebegin "Building exifautotran and jpegexiforient extra tools" + pushd ../debian/extra >/dev/null + emake CC="$(tc-getCC)" CFLAGS="${LDFLAGS} ${CFLAGS}" + popd >/dev/null + eend $? +} + +src_test() { + emake test +} + +src_install() { + default + find "${ED}"usr -name '*.la' -exec rm -f {} + + + insinto /usr/share/doc/${PF}/html + doins -r doc/html/* + + if use java; then + insinto /usr/share/doc/${PF}/html/java + doins -r java/doc/* + newdoc java/README README.java + + rm -rf "${ED}"usr/classes + java-pkg_dojar java/turbojpeg.jar + fi + + ebegin "Installing exifautotran and jpegexiforient extra tools" + pushd ../debian/extra >/dev/null + newdoc ../changelog changelog.debian + + emake \ + DESTDIR="${D}" prefix="${EPREFIX}"/usr \ + INSTALL="install -m755" INSTALLDIR="install -d -m755" \ + install + popd >/dev/null + eend $? +} |