wok rev 4607

Add fswebcam (tiny webcam viewer)
author Rohit Joshi <jozee@slitaz.org>
date Tue Dec 15 16:10:42 2009 +0000 (2009-12-15)
parents 5d2d1d0a819c
children aee982e21a00
files fswebcam/receipt fswebcam/stuff/fswebcam-20070108-gzip.patch fswebcam/stuff/fswebcam.conf
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fswebcam/receipt	Tue Dec 15 16:10:42 2009 +0000
     1.3 @@ -0,0 +1,39 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="fswebcam"
     1.7 +VERSION="20070108"
     1.8 +CATEGORY="misc"
     1.9 +MAINTAINER="jozee@slitaz.org"
    1.10 +SHORT_DESC="Tiny and flexible webcam app"
    1.11 +BUILD_DEPENDS="$DEPENDS libgd-dev"
    1.12 +WEB_SITE="http://www.firestorm.cx/fswebcam/"
    1.13 +DEPENDS="libgd"
    1.14 +CONFIG_FILES="etc/fswebcam.conf"
    1.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 +WGET_URL="$WEB_SITE/files/$TARBALL"
    1.17 +TAGS="webcam"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +
    1.21 +compile_rules() {
    1.22 +  cd $src
    1.23 +   while read file; do
    1.24 +    	[ -f done.$file ] && continue
    1.25 +    	echo "Apply $file..."
    1.26 +    	patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1
    1.27 +	touch done.$file
    1.28 +    done <<EOT
    1.29 +gzip.patch
    1.30 +EOT
    1.31 +  ./configure --prefix=/usr &&
    1.32 +  make &&
    1.33 +  make DESTDIR=$PWD/_pkg install 
    1.34 +}
    1.35 +	
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/etc $fs/usr
    1.40 +	cp -a stuff/fswebcam.conf $fs/etc/fswebcam.conf
    1.41 +	cp -a $_pkg/usr/bin $fs/usr
    1.42 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/fswebcam/stuff/fswebcam-20070108-gzip.patch	Tue Dec 15 16:10:42 2009 +0000
     2.3 @@ -0,0 +1,11 @@
     2.4 +--- fswebcam-20070108/Makefile.in.orig	Sun Dec 10 19:09:15 2006
     2.5 ++++ fswebcam-20070108/Makefile.in	Tue Dec 15 15:14:33 2009
     2.6 +@@ -30,7 +30,7 @@
     2.7 + 	${CC} ${CFLAGS} -c $< -o $@
     2.8 + 
     2.9 + fswebcam.1.gz: fswebcam.1
    2.10 +-	gzip -c --best fswebcam.1 > fswebcam.1.gz
    2.11 ++	gzip -c fswebcam.1 > fswebcam.1.gz
    2.12 + 
    2.13 + clean:
    2.14 + 	rm -f core* *.o fswebcam fswebcam.1.gz
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/fswebcam/stuff/fswebcam.conf	Tue Dec 15 16:10:42 2009 +0000
     3.3 @@ -0,0 +1,35 @@
     3.4 +# Example configuration for fswebcam
     3.5 +# [2006-09-05: phil@firestorm.cx]
     3.6 +
     3.7 +# Be very quiet...
     3.8 +quiet
     3.9 +
    3.10 +# Or be very loud?
    3.11 +#verbose
    3.12 +
    3.13 +# The image source - In this case we are capturing frames from a TV channel
    3.14 +device  "v4l2:/dev/video0"
    3.15 +input 0
    3.16 +#loop 10
    3.17 +skip 2 # Skip the first two frames.
    3.18 +frames 1	# And capture one.
    3.19 +#background
    3.20 +#palette    YUV420P
    3.21 +palette YUYV
    3.22 +#palette MJPEG
    3.23 +frequency  670.90
    3.24 +resolution 640x480
    3.25 +#resolution 768x576
    3.26 +set brightness=60%
    3.27 +set contrast=13%
    3.28 +# Scale the image down to half it's size.
    3.29 +#scale 384x288
    3.30 +top-banner
    3.31 +font "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"
    3.32 +title "My Webcam"
    3.33 +timestamp "%d-%m-%Y %H:%M:%S (%Z)"
    3.34 +jpeg 95
    3.35 +save /home/tux/Images/viewcam.jpg
    3.36 +# Load an overlay image. This is placed above everything, including the banner.
    3.37 +#overlay "/home/user/outline.png"
    3.38 +