summaryrefslogtreecommitdiff
path: root/media-video/sonic-snap
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/sonic-snap')
-rw-r--r--media-video/sonic-snap/Manifest6
-rw-r--r--media-video/sonic-snap/metadata.xml9
-rw-r--r--media-video/sonic-snap/sonic-snap-1.7-r1.ebuild69
-rw-r--r--media-video/sonic-snap/sonic-snap-1.7.ebuild65
4 files changed, 149 insertions, 0 deletions
diff --git a/media-video/sonic-snap/Manifest b/media-video/sonic-snap/Manifest
new file mode 100644
index 000000000000..b36db427f3f8
--- /dev/null
+++ b/media-video/sonic-snap/Manifest
@@ -0,0 +1,6 @@
+DIST sonic-snap-1.7.tar.gz 16760 SHA256 013a1f480d2f205caa2d2ceb8fe82e2af9ed6c86ecca4124760322e4b3dd9e9c SHA512 0c2fe5a7403ac003aad308d064a4d981a25f52e478943125090cb96d337aebe0a9fef160217b4f37cfd1991c0517f5f869f60f4c93a6abe9a127821f7906a664 WHIRLPOOL da2b6dfd37ce5f182619d3f8141cd4d888b26b36ee06b7f7152d3497ab6fd3f54834370cebf58c1422705420bde3d647966ab5860cc542ea52af86060c82e26e
+EBUILD sonic-snap-1.7-r1.ebuild 1720 SHA256 f34c0856bb5ff293140aa91fba3fe766ce22ca54a7b93db70e33cca74cece321 SHA512 b986c0b5656afa101fab3254559c0243a583720884300b7be7896a2acd6d0051afcc5f95445ec97a2d2b79cf8fef76bcdb5f7b5573bf2c90a1d3e62786bfbf39 WHIRLPOOL a77d087bb3e190421e10aa700b418a0c1c1ef95b514540130eca102647a0689b89db90b81386e6b6dafdd3cdf9077fa636a1fe520249048d9053d5facebc3a9f
+EBUILD sonic-snap-1.7.ebuild 1676 SHA256 12073e4b9eb5a35e02311ae64ce6cebdf57735c183bd8372742d0af05058c7f9 SHA512 b18244ba1d135865ba5fe647344b7e4c3322b8d013754b311ffbb71a456b23d199e991c43c7e2fddf00ea68e869a5ab9320d239082e7f515d91609494e8fbcbc WHIRLPOOL 44f9054d515ff6e5a000392aa2d4aab5b08878a18076da53b6f39897597f3a6d3e9fd1b282545d85f20d745a9e0c8616be5c8ff88081ac1a500d7af5d0256a48
+MISC ChangeLog 2435 SHA256 f8bffe051cb24804a8fa7fa0c4f9947a925ed8c2e1d2a58a2b95ec0a7398f975 SHA512 a550260c6b89cfaca37a25d2d6c9ecee2dec766649ff0bac0227a6624466cc8746ba96db27a3d084f7edd0f98233ba64f08b967d8b3dbd351a115f52c471fc0f WHIRLPOOL f20cab7b132daad0346e45248488890c42e0c0bd5eda5192365d39dbd9147511b0bc73f2e6c91164f5b3eb86123e7b93cd9a256b2d0701f829abcb589799af45
+MISC ChangeLog-2015 1906 SHA256 74a30e849010c8470a48f0544c796f581c4ac81b68e23121951b162927ec72aa SHA512 0d822d71cd7c5766f806e2e62ecd684dea947b6680210d85ac1bad05d12c2f0f871c7fbbf79647d4610cdfed37d4196d204947ae957f293b57a398837fc95ad8 WHIRLPOOL 9c3f49f7d724d445d1dbd22081e6c8bdea2424ad958dc4a69393454668be82578085d1a4896aa8aadcd9baaf080a96e7005abd0471e8a2b885fa2ae57a1dc855
+MISC metadata.xml 389 SHA256 fbe72d1958c9dcc707bb038cd7a3c0b4e7ac86e48fe40beecd4ba72ee8813117 SHA512 231e6383dd068d1b4a52f8cee7293a4adb9c7f527f16c1023fb9cb8f8407c758cb694c4166c55b5494eb9ed5fef7a368ed1ccde52210d77cae4cb71901fcbcd8 WHIRLPOOL af352e073d385ea02273113a8ec5dbea84351fb2fd70955285f071f2f7d455d87868b9a2c54aa2d64c3e9df8eb19aebfc66032aed5ec0f58685aaa03f9002899
diff --git a/media-video/sonic-snap/metadata.xml b/media-video/sonic-snap/metadata.xml
new file mode 100644
index 000000000000..ee0dade075ae
--- /dev/null
+++ b/media-video/sonic-snap/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ <name>Gentoo Video project</name>
+</maintainer>
+<longdescription>Minimal webcam app for sn9c10x based camera controllers (mostly USB), with optional MPEG4 support.</longdescription>
+</pkgmetadata>
diff --git a/media-video/sonic-snap/sonic-snap-1.7-r1.ebuild b/media-video/sonic-snap/sonic-snap-1.7-r1.ebuild
new file mode 100644
index 000000000000..753cb9d0be30
--- /dev/null
+++ b/media-video/sonic-snap/sonic-snap-1.7-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils linux-info multilib toolchain-funcs
+
+DESCRIPTION="Webcam app for sn9c10x based camera controllers (with optional MPEG4 support)"
+HOMEPAGE="http://www.stolk.org/sonic-snap/"
+SRC_URI="http://www.stolk.org/${PN}/downloads/${P}.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="mpeg"
+
+DEPEND="
+ x11-libs/fltk:1
+ mpeg? ( >=media-libs/libfame-0.9.1 )
+ sys-libs/zlib
+ x11-libs/libXdmcp
+ x11-libs/libXau
+ x11-libs/libXrender
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXft
+"
+RDEPEND="${DEPEND}"
+
+CONFIG_CHECK="~USB_SN9C102"
+ERROR_USB_SN9C102="Please make sure the SN9C1xx PC Camera Controller driver is \
+enabled, under V4L USB devices, as a module in your kernel."
+
+src_prepare() {
+ # fix bad assumptions
+ sed -i \
+ -e "s|\$(HOME)/include|/usr/include|" \
+ -e "s|\$(HOME)/lib|/usr/$(get_libdir)|" \
+ -e "s|CFLAGS=|CFLAGS= ${CXXFLAGS} |" \
+ -e "s|LFLAGS=|LFLAGS= ${LDFLAGS} |" \
+ -e "s/g++-4.0 -O3/$(tc-getCXX)/" \
+ Makefile || die
+
+ use mpeg || sed -i -e "s?USE_FAME=1?USE_FAME=0?g" Makefile || die
+
+ default
+}
+
+src_compile() {
+ make || die '"make" failed.'
+}
+
+src_install() {
+ dodir /usr/bin
+ make DESTDIR="${D}" install || die '"make install" failed.'
+
+ dodoc ChangeLog README
+ doman debian/sonic-snap.1
+}
+
+pkg_postinst() {
+ elog
+ elog "This driver is V4L v2 only, so V4L v1 apps will not work."
+ elog "Finally, only a few image sensors are supported, eg, PAS106B"
+ elog "so (check dmesg or /var/log/messages for USB device info when"
+ elog "you plug the cam in)."
+ elog
+ elog "Now try sonic-snap-gui /dev/videoX (where X is 0, 1 , etc)."
+ elog
+}
diff --git a/media-video/sonic-snap/sonic-snap-1.7.ebuild b/media-video/sonic-snap/sonic-snap-1.7.ebuild
new file mode 100644
index 000000000000..48a5f4180085
--- /dev/null
+++ b/media-video/sonic-snap/sonic-snap-1.7.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+inherit eutils linux-info multilib toolchain-funcs
+
+DESCRIPTION="Webcam app for sn9c10x based camera controllers (with optional MPEG4 support)"
+HOMEPAGE="http://www.stolk.org/sonic-snap/"
+SRC_URI="http://www.stolk.org/${PN}/downloads/${P}.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="mpeg"
+
+DEPEND="x11-libs/fltk:1
+ mpeg? ( >=media-libs/libfame-0.9.1 )
+ sys-libs/zlib
+ x11-libs/libXdmcp
+ x11-libs/libXau
+ x11-libs/libXrender
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXft"
+
+CONFIG_CHECK="~USB_SN9C102"
+ERROR_USB_SN9C102="Please make sure the SN9C1xx PC Camera Controller driver is \
+enabled, under V4L USB devices, as a module in your kernel."
+
+src_prepare() {
+ # fix bad assumptions
+ sed -i \
+ -e "s|\$(HOME)/include|/usr/include|" \
+ -e "s|\$(HOME)/lib|/usr/$(get_libdir)|" \
+ -e "s|CFLAGS=|CFLAGS= ${CXXFLAGS} |" \
+ -e "s|LFLAGS=|LFLAGS= ${LDFLAGS} |" \
+ -e "s/g++-4.0 -O3/$(tc-getCXX)/" \
+ Makefile
+
+ use mpeg || sed -i -e "s?USE_FAME=1?USE_FAME=0?g" Makefile
+}
+
+src_compile() {
+ make || die '"make" failed.'
+}
+
+src_install() {
+ dodir /usr/bin
+ make DESTDIR="${D}" install || die '"make install" failed.'
+
+ dodoc ChangeLog README
+ doman debian/sonic-snap.1
+}
+
+pkg_postinst() {
+
+ elog
+ elog "This driver is V4L v2 only, so V4L v1 apps will not work."
+ elog "Finally, only a few image sensors are supported, eg, PAS106B"
+ elog "so (check dmesg or /var/log/messages for USB device info when"
+ elog "you plug the cam in)."
+ elog
+ elog "Now try sonic-snap-gui /dev/videoX (where X is 0, 1 , etc)."
+ elog
+}