[media-video/webcamstudio-module] version bump (hopeless?)

This commit is contained in:
Fabio Erculiani
2012-10-13 19:08:19 +02:00
parent 756d10637a
commit ca5682bc7f
2 changed files with 75 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
EBUILD webcamstudio-module-104_p370.ebuild 1747 RMD160 f75b3202af1c040f498ad5a7202bad196a12c031 SHA1 38017a56bc3ac2dbfbdaad1d323dd4c8d4b0d9f5 SHA256 fd877e50bba6dc38fc1e340a6e070688c1775f8b231523cca21a716c79cd0b41
DIST webcamstudio-module-104_p416.tar.bz2 14598 SHA256 3f8d1ac65a029f32ebc4dbd4c17ebf39e8e8f7e5c6d698bee5336b7d47f8024f SHA512 7457c86ef805457f66126b0fb5e723ec53ebfbe35655a53afd83f759b7f98062d49052da3c7d1d34787a45794b032683906c7153fab7ef9c5255f3319cecd12d WHIRLPOOL 6814f9cc386fedd8d13d6500b8758fd7422252658b177abc08fc16f2bb335c2f8adf6ca62e4b3592c2205d7a0c9cdafa1a2c8cfcdc33b1eb73dc87cc51f75107
@@ -0,0 +1,74 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils linux-mod toolchain-funcs
DESCRIPTION="Kernel module and helper library for WebcamStudio."
HOMEPAGE="http://www.ws4gl.org/"
# The tarball prepared using the SVN r416 at http://webcamstudio.googlecode.com/svn/trunk/trunk/vloopback
SRC_URI="http://gentoo.plexyplanet.org/distfiles/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="virtual/linux-sources"
RDEPEND=""
MODULE_NAMES="webcamstudio(misc:${S})"
CONFIG_CHECK="VIDEO_DEV"
pkg_setup() {
linux-mod_pkg_setup
rm -f Makefile
BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S} KERNEL_DIR=${KV_DIR}"
BUILD_TARGETS="modules"
MODULESD_WEBCAMSTUDIO_ENABLED="yes"
}
src_compile() {
# We use manual compile of the lib so be compliant to Gentoo flags
einfo "Compiling helper library..."
$(tc-getCC) \
${CPPFLAGS} ${CFLAGS} \
-fPIC \
-c -o libwebcamstudio.o libwebcamstudio.c
$(tc-getCC) \
${CPPFLAGS} ${CFLAGS} ${LDFLAGS} \
-fPIC \
-shared -Wl,-soname,libwebcamstudio.so \
-o libwebcamstudio.so.1.0.1 \
libwebcamstudio.o
ln -s libwebcamstudio.so.1.0.1 libwebcamstudio.so
linux-mod_src_compile
}
src_install() {
einfo "Installing helper library..."
dolib libwebcamstudio.so libwebcamstudio.so.1.0.1
linux-mod_src_install
}
pkg_postinst() {
linux-mod_pkg_postinst
elog "To use WebcamStudio you need to have the \"webcamstudio\" module"
elog "loaded first."
elog ""
elog "If you want to do it automatically, please add \"webcamstudio\" to:"
if has_version sys-apps/openrc; then
elog "/etc/conf.d/modules"
else
elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}"
fi
elog ""
}