diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2009-03-19 10:18:54 -0700 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2009-03-19 10:18:54 -0700 |
commit | ad0ff8a23ef462ad7faabdce720ec2614ba202bd (patch) | |
tree | dfaba93e5bce21d11495acc233393a4e2bd70f27 /media-libs | |
parent | etsf_io: various fixes. (diff) | |
download | dberkholz-ad0ff8a23ef462ad7faabdce720ec2614ba202bd.tar.gz dberkholz-ad0ff8a23ef462ad7faabdce720ec2614ba202bd.tar.bz2 dberkholz-ad0ff8a23ef462ad7faabdce720ec2614ba202bd.zip |
libv4l: add multilib version from #244918 for skype.
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libv4l/Manifest | 3 | ||||
-rw-r--r-- | media-libs/libv4l/libv4l-0.5.8-r1.ebuild | 90 | ||||
-rw-r--r-- | media-libs/libv4l/libv4l-0.5.8.ebuild | 40 |
3 files changed, 133 insertions, 0 deletions
diff --git a/media-libs/libv4l/Manifest b/media-libs/libv4l/Manifest new file mode 100644 index 0000000..56e3d95 --- /dev/null +++ b/media-libs/libv4l/Manifest @@ -0,0 +1,3 @@ +DIST libv4l-0.5.8.tar.gz 96764 RMD160 b79aec349f9d13b4cbba1c4693efbbf38e397873 SHA1 6fbca776fc4550eca2e8ef901547a82f99849e0a SHA256 9d006377ec51ca149ed415fbea5c3298b0fe7bae4cbd3bc2f54fd25a24ed9eb2 +EBUILD libv4l-0.5.8-r1.ebuild 2253 RMD160 bee32b8a422f5c2cb97a22905533198170ef7d81 SHA1 ca2fc9f6e9d38a674d0111733643cfcfa3502888 SHA256 3e312dfadb86ff81074009b818e72adb0b096b194bb225c536b66c0209aa3368 +EBUILD libv4l-0.5.8.ebuild 1331 RMD160 3bb2e65997287ba58d42c50df8b045ecfaf0d015 SHA1 9ea142d0f66a0e551e4145232a4441a7e225d8a0 SHA256 f3e3e5a1dadb6f29f843fb151a3f0551d3ec109350776555fb7f3d052d76f18b diff --git a/media-libs/libv4l/libv4l-0.5.8-r1.ebuild b/media-libs/libv4l/libv4l-0.5.8-r1.ebuild new file mode 100644 index 0000000..7ac6531 --- /dev/null +++ b/media-libs/libv4l/libv4l-0.5.8-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib toolchain-funcs + +DESCRIPTION="V4L userspace libraries" +HOMEPAGE="http://people.atrpms.net/~hdegoede/ + http://hansdegoede.livejournal.com/3636.html" +SRC_URI="http://people.atrpms.net/~hdegoede/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86" +IUSE="multilib" + +EMULTILIB_PKG="true" + +src_unpack() { + unpack ${A} + + if use multilib && has_multilib_profile; then + for ABI in $(get_install_abis); do + cp -pr "${S}" "${S}-${ABI}" + done + fi +} + +make_libv4l() { + tc-export CC + emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" CFLAGS="${CFLAGS}" \ + || die "emake failed" +} + +src_compile() { + if use multilib && has_multilib_profile; then + einfo "Building multilib libv4l for ABIs: $(get_install_abis)" + for ABI in $(get_install_abis); do + cd "${S}-${ABI}" + make_libv4l + done + else + make_libv4l + fi +} + +make_install_libv4l() { + emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" \ + DESTDIR="${D}" install || die "emake install failed" +} + +src_install() { + dodoc ChangeLog README* TODO + if use multilib && has_multilib_profile; then + for ABI in $(get_install_abis); do + cd "${S}-${ABI}" + make_install_libv4l + done + else + make_install_libv4l + fi +} + +pkg_postinst() { + elog + elog "libv4l includes wrapper libraries for compatibility and pixel format" + elog "conversion, which are especially useful for users of the gspca usb" + elog "webcam driver in kernel 2.6.27 and higher." + elog + elog "To add v4l2 compatibility to a v4l application 'myapp', launch it via" + if use multilib && has_multilib_profile; then + elog "one of the following:" + for ABI in $(get_install_abis); do + elog "LD_PRELOAD=/usr/$(get_libdir)/libv4l/v4l1compat.so myapp" + done + elog + else + elog "LD_PRELOAD=/usr/$(get_libdir)/libv4l/v4l1compat.so myapp" + fi + elog "To add automatic pixel format conversion to a v4l2 application, use" + if use multilib && has_multilib_profile; then + elog "one of the following:" + for ABI in $(get_install_abis); do + elog "LD_PRELOAD=/usr/$(get_libdir)/libv4l/v4l2convert.so myapp" + done + else + elog "LD_PRELOAD=/usr/$(get_libdir)/libv4l/v4l2convert.so myapp" + fi + elog +} diff --git a/media-libs/libv4l/libv4l-0.5.8.ebuild b/media-libs/libv4l/libv4l-0.5.8.ebuild new file mode 100644 index 0000000..03363c6 --- /dev/null +++ b/media-libs/libv4l/libv4l-0.5.8.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/libv4l/libv4l-0.5.8.ebuild,v 1.1 2009/01/19 09:22:51 aballier Exp $ + +inherit multilib toolchain-funcs + +DESCRIPTION="V4L userspace libraries" +HOMEPAGE="http://people.atrpms.net/~hdegoede/ + http://hansdegoede.livejournal.com/3636.html" +SRC_URI="http://people.atrpms.net/~hdegoede/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +src_compile() { + tc-export CC + emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" CFLAGS="${CFLAGS}" \ + || die "emake failed" +} + +src_install() { + emake PREFIX="/usr" LIBDIR="/usr/$(get_libdir)" \ + DESTDIR="${D}" install || die "emake install failed" + dodoc ChangeLog README* TODO +} + +pkg_postinst() { + elog + elog "libv4l includes wrapper libraries for compatibility and pixel format" + elog "conversion, which are especially useful for users of the gspca usb" + elog "webcam driver in kernel 2.6.27 and higher." + elog + elog "To add v4l2 compatibility to a v4l application 'myapp', launch it via" + elog "LD_PRELOAD=/usr/$(get_libdir)/libv4l/v4l1compat.so myapp" + elog "To add automatic pixel format conversion to a v4l2 application, use" + elog "LD_PRELOAD=/usr/$(get_libdir)/libv4l/v4l2convert.so myapp" + elog +} |