2014-06-19 11:09:26 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2013-08-12 11:34:43 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2013-08-12 11:34:43 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2013-11-18 02:42:25 +04:00
|
|
|
inherit autotools eutils multilib-minimal
|
2013-08-12 11:34:43 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Library to interface with IEEE 1394 cameras following the IIDC specification"
|
|
|
|
HOMEPAGE="http://sourceforge.net/projects/libdc1394/"
|
2014-06-21 23:43:48 +04:00
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
|
2015-08-24 15:08:46 +03:00
|
|
|
https://dev.gentoo.org/~ssuominen/sdl.m4-20140620.tar.xz"
|
2013-08-12 11:34:43 +04:00
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="2"
|
2014-08-10 19:20:06 +04:00
|
|
|
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
|
2013-08-12 11:34:43 +04:00
|
|
|
IUSE="doc static-libs X"
|
|
|
|
|
2014-06-19 11:09:26 +04:00
|
|
|
RDEPEND=">=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
|
|
|
|
>=virtual/libusb-1-r1:1[${MULTILIB_USEDEP}]"
|
2013-08-12 11:34:43 +04:00
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
doc? ( app-doc/doxygen )"
|
|
|
|
|
2013-11-18 02:42:25 +04:00
|
|
|
src_prepare() {
|
2014-06-21 23:43:48 +04:00
|
|
|
epatch \
|
|
|
|
"${FILESDIR}"/${P}-includes.patch \
|
|
|
|
"${FILESDIR}"/${P}-pthread.patch
|
|
|
|
|
|
|
|
AT_M4DIR=${WORKDIR}/aclocal eautoreconf
|
2013-11-18 02:42:25 +04:00
|
|
|
}
|
|
|
|
|
2013-08-12 11:34:43 +04:00
|
|
|
multilib_src_configure() {
|
|
|
|
local myconf="$(use_enable doc doxygen-html)"
|
|
|
|
multilib_is_native_abi || myconf="--disable-doxygen-html --disable-examples"
|
|
|
|
|
|
|
|
# X is only useful for examples that are not installed.
|
|
|
|
ECONF_SOURCE="${S}" econf \
|
|
|
|
$(use_enable static-libs static) \
|
|
|
|
--program-suffix=2 \
|
|
|
|
--without-x \
|
|
|
|
${myconf}
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_compile() {
|
|
|
|
default
|
|
|
|
multilib_is_native_abi && use doc && emake doc
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_install() {
|
|
|
|
default
|
|
|
|
multilib_is_native_abi && use doc && dohtml doc/html/*
|
|
|
|
find "${ED}" -name '*.la' -exec rm -f {} +
|
|
|
|
}
|