diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-08-11 13:54:13 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-08-11 13:54:13 +0000 |
commit | 1a10db88ef945176022d19130ee91cff63a14f91 (patch) | |
tree | 31f6b88ad87b4e948ae337212a395f053082c379 /media-libs/openjpeg/openjpeg-1.5.1-r1.ebuild | |
parent | sci-biology/last: Drop old (diff) | |
download | historical-1a10db88ef945176022d19130ee91cff63a14f91.tar.gz historical-1a10db88ef945176022d19130ee91cff63a14f91.tar.bz2 historical-1a10db88ef945176022d19130ee91cff63a14f91.zip |
Convert to multilib. Do not build executables for the static libs build, drop the static-libs useflag propagation since the libs do not need it and we do not build the executables anymore.
Package-Manager: portage-2.2.0_alpha196/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'media-libs/openjpeg/openjpeg-1.5.1-r1.ebuild')
-rw-r--r-- | media-libs/openjpeg/openjpeg-1.5.1-r1.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/media-libs/openjpeg/openjpeg-1.5.1-r1.ebuild b/media-libs/openjpeg/openjpeg-1.5.1-r1.ebuild new file mode 100644 index 000000000000..903e6c615225 --- /dev/null +++ b/media-libs/openjpeg/openjpeg-1.5.1-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/openjpeg-1.5.1-r1.ebuild,v 1.1 2013/08/11 13:54:06 aballier Exp $ + +EAPI=5 +inherit multilib cmake-utils multilib-minimal + +DESCRIPTION="An open-source JPEG 2000 library" +HOMEPAGE="http://code.google.com/p/openjpeg/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="doc static-libs test" + +RDEPEND="media-libs/lcms:2= + media-libs/libpng:0= + media-libs/tiff:0= + sys-libs/zlib:=" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +DOCS=( AUTHORS CHANGES NEWS README THANKS ) + +PATCHES=( "${FILESDIR}"/${P}-build.patch ) + +RESTRICT="test" #409263 + +multilib_src_configure() { + local mycmakeargs=( + -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)" + $(cmake-utils_use_build test TESTING) + ) + + if multilib_is_native_abi ; then + mycmakeargs+=( $(cmake-utils_use_build doc) ) + else + mycmakeargs+=( -DBUILD_CODEC=OFF ) + fi + + cmake-utils_src_configure + + if use static-libs ; then + mycmakeargs=( + -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)" + $(cmake-utils_use_build test TESTING) + -DBUILD_SHARED_LIBS=OFF + -DBUILD_CODEC=OFF + ) + BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_configure + fi +} + +multilib_src_compile() { + cmake-utils_src_compile + + if use static-libs ; then + BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_compile + fi +} + +multilib_src_install() { + if use static-libs ; then + BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_install + #static bins overwritten by shared install + fi + + cmake-utils_src_install + + dosym openjpeg-1.5/openjpeg.h /usr/include/openjpeg.h + dosym libopenjpeg1.pc /usr/$(get_libdir)/pkgconfig/libopenjpeg.pc +} |