summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-01 12:06:57 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-01 12:06:57 +0800
commit35629ffb6cfb8371430eac1f90d201a71b5d7696 (patch)
treead720f4e77b7ff4259b66efc21d9b84aa480d6ee
parent13a3dc06cdbffd173f9873dc48fd686115f6ad17 (diff)
downloadmarcuscom-ports-35629ffb6cfb8371430eac1f90d201a71b5d7696.tar
marcuscom-ports-35629ffb6cfb8371430eac1f90d201a71b5d7696.tar.gz
marcuscom-ports-35629ffb6cfb8371430eac1f90d201a71b5d7696.tar.bz2
marcuscom-ports-35629ffb6cfb8371430eac1f90d201a71b5d7696.tar.lz
marcuscom-ports-35629ffb6cfb8371430eac1f90d201a71b5d7696.tar.xz
marcuscom-ports-35629ffb6cfb8371430eac1f90d201a71b5d7696.tar.zst
marcuscom-ports-35629ffb6cfb8371430eac1f90d201a71b5d7696.zip
X11BASE -> LOCALBASE, gtk12/gdk-pixbuf live in LOCALBASE.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6910 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--multimedia/camserv/Makefile56
-rw-r--r--multimedia/camserv/distinfo3
-rw-r--r--multimedia/camserv/files/patch-ab20
-rw-r--r--multimedia/camserv/files/patch-ad29
-rw-r--r--multimedia/camserv/files/patch-camserv.cfg69
-rw-r--r--multimedia/camserv/files/patch-configure.in27
-rw-r--r--multimedia/camserv/pkg-descr14
-rw-r--r--multimedia/camserv/pkg-plist37
8 files changed, 255 insertions, 0 deletions
diff --git a/multimedia/camserv/Makefile b/multimedia/camserv/Makefile
new file mode 100644
index 000000000..372df28fe
--- /dev/null
+++ b/multimedia/camserv/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: camserv
+# Date created: Sat 22 July 2000
+# Whom: Chuck Hein <chein@freebsd.org> & Jim Overholt <overholt@isdw.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= camserv
+PORTVERSION= 0.5.1
+PORTREVISION= 4
+PORTEPOCH= 1
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= cserv
+
+MAINTAINER= uspoerlein@gmail.com
+COMMENT= Camserv is a free program to do streaming video via the web
+
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ Imlib2.3:${PORTSDIR}/graphics/imlib2 \
+ gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf \
+ freetype.9:${PORTSDIR}/print/freetype2
+
+ONLY_FOR_ARCHS= i386 alpha
+
+USE_XLIB= yes
+USE_AUTOTOOLS= autoconf:259 libtool:15
+
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \
+ -I${LOCALBASE}/include/gtk12 \
+ -I${LOCALBASE}/include/gdk-pixbuf-1.0 \
+ -I${LOCALBASE}/include/glib12" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.if exists(/usr/include/dev/bktr/ioctl_bt848.h)
+post-patch:
+ @${REINPLACE_CMD} -e 's#machine/\(ioctl_bt848.h\)#dev/bktr/\1#' \
+ ${WRKSRC}/camserv/video_fbsd_bttv.c \
+ ${WRKSRC}/configure.in
+.endif
+
+.if exists(/usr/include/machine/ioctl_bt848.h) || \
+ exists(/usr/include/dev/bktr/ioctl_bt848.h)
+PLIST_SUB+= BKTR=""
+.else
+PLIST_SUB+= BKTR="@comment "
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/javascript.txt ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/multimedia/camserv/distinfo b/multimedia/camserv/distinfo
new file mode 100644
index 000000000..a3c3200b5
--- /dev/null
+++ b/multimedia/camserv/distinfo
@@ -0,0 +1,3 @@
+MD5 (camserv-0.5.1.tar.gz) = ad6a1c9a5b522a4ee2189c66d7fbda72
+SHA256 (camserv-0.5.1.tar.gz) = 034c08aac228587a1c46d35e345e1be653f5149bb4648b3e5ef937ccd5e5b24f
+SIZE (camserv-0.5.1.tar.gz) = 487645
diff --git a/multimedia/camserv/files/patch-ab b/multimedia/camserv/files/patch-ab
new file mode 100644
index 000000000..55890dc80
--- /dev/null
+++ b/multimedia/camserv/files/patch-ab
@@ -0,0 +1,20 @@
+--- camserv/video_fbsd_bttv.c.orig Mon May 12 23:13:31 2003
++++ camserv/video_fbsd_bttv.c Mon May 12 23:13:00 2003
+@@ -27,6 +27,7 @@
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <sys/mman.h>
++#include <sys/types.h>
+ #include <machine/ioctl_bt848.h>
+ #include <machine/ioctl_meteor.h>
+ #include <signal.h>
+@@ -644,7 +644,7 @@
+ if( !fbttv_dev->autobright || --fbttv_dev->autoleft > 0 )
+ return 0;
+
+ totmean = camserv_get_pic_mean( width, height, picbuf, 1, 0, 0,
+- width, height );
++ width-1, height-1 );
+ if( totmean < (256 / 2) - 10 || totmean > (256 / 2) + 10 ) {
+ newbright = fbttv_dev->brightness;
+ if( totmean > (256 / 2) + 10 ){
diff --git a/multimedia/camserv/files/patch-ad b/multimedia/camserv/files/patch-ad
new file mode 100644
index 000000000..56d8922a1
--- /dev/null
+++ b/multimedia/camserv/files/patch-ad
@@ -0,0 +1,29 @@
+--- Makefile.in.orig Mon Sep 16 00:28:04 2002
++++ Makefile.in Fri Mar 19 19:35:48 2004
+@@ -99,15 +99,14 @@
+ install_sh = @install_sh@
+ @VALID_VIDEO_TRUE@camserv_subdir = camserv
+
+-SUBDIRS = libltdl \
+- common \
++SUBDIRS = common \
+ ${camserv_subdir} \
+ include \
+ macros \
+ relay
+
+
+-data_DATA = camserv.cfg defpage.html
++data_DATA = camserv.cfg.dist defpage.html
+ EXTRA_DIST = camserv.cfg.in javascript.txt BUGS camserv.spec defpage.html
+ subdir = .
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+@@ -463,7 +462,7 @@
+ uninstall-info-recursive uninstall-recursive
+
+
+-camserv.cfg: camserv.cfg.in
++camserv.cfg.dist: camserv.cfg.in
+ @sed -e s%CAMSERV_MODDIR%$(CAMSERV_MODDIR)%g < camserv.cfg.in > $@
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/multimedia/camserv/files/patch-camserv.cfg b/multimedia/camserv/files/patch-camserv.cfg
new file mode 100644
index 000000000..11a6c62e9
--- /dev/null
+++ b/multimedia/camserv/files/patch-camserv.cfg
@@ -0,0 +1,69 @@
+--- camserv.cfg.in.orig Fri Mar 8 02:33:16 2002
++++ camserv.cfg.in Sat Feb 7 00:40:42 2004
+@@ -2,42 +2,10 @@
+ [video_basic]
+ path CAMSERV_MODDIR/libvideo_basic.so.0
+
+-# video_v4l_bttv: Example of a common BTTV module for video4linux.
+-# port 0 == TV, port 1 = Composite 1, port 2 = Composite 2
+-# frequency == is the channel frequency for the TV
+-# autobright == 0 turns off autobrightness adjusting, otherwise it adjusts
+-# the brightness of the picture every 'autobright' frames.
+-# brightmean == The mean pixel value that is the 'goal' of the autobright.
+-# (0->255)
+-# brightx1->y2 == (x1,y1) top left coords, and (x2,y2) bottom right coords
+-# of a rectangle of which to take the average pixel value.
+-# this is then used in calculating the mean to adjust the
+-# brightness of the image.
+-# mode == the video norm to use: 0 == PAL, 1 == NTSC, 2 == SECAM, 3 == AUTO
+-# color,hue,contrast,brightness,whiteness = 0->60000, representing
+-# the value of each component.
+-
+-[video_v4l_bttv]
+-path CAMSERV_MODDIR/libvideo_v4l.so.0
+-device_path /dev/video0
+-port 0
+-mode 3
+-#frequency 74.43
+-color 30000
+-hue 30000
+-contrast 30000
+-brightness 30000
+-whiteness 30000
+-autobright 1
+-brightmean 128
+-brightx1 0
+-brighty1 320
+-brightx2 0
+-brighty2 240
+-
+ # FreeBSD BTTV driver:
+ # port 0 = Video
+ # 1 = Tuner
++# 2 = S-Video
+ # Channel Sets:
+ # nabscst 1
+ # cableirc 2
+@@ -57,20 +25,8 @@
+ #brightness 0
+ #chroma 180
+ #contrast 1000
+-channelset 2
+-channel 60
+-
+-[video_v4l_qcam]
+-path CAMSERV_MODDIR/libvideo_v4l.so.0
+-device_path /dev/video1
+-port 0
+-color 30000
+-hue 30000
+-contrast 30000
+-brightness 30000
+-whiteness 30000
+-autobright 0
+-
++channelset 1
++channel 3
+
+ [jpg_filter]
+ path CAMSERV_MODDIR/libjpg_filter.so.0
diff --git a/multimedia/camserv/files/patch-configure.in b/multimedia/camserv/files/patch-configure.in
new file mode 100644
index 000000000..295cd02c2
--- /dev/null
+++ b/multimedia/camserv/files/patch-configure.in
@@ -0,0 +1,27 @@
+--- configure.in.orig Sun May 12 20:06:12 2002
++++ configure.in Fri Mar 19 19:26:43 2004
+@@ -12,12 +12,12 @@
+ AM_ACLOCAL_INCLUDE(macros)
+
+ AC_PROG_CC
+-AC_LIBLTDL_CONVENIENCE
++AC_LIBLTDL_INSTALLABLE
+ AC_LIBTOOL_DLOPEN
+-AM_PROG_LIBTOOL
++AC_PROG_LIBTOOL
+ AC_SUBST(LIBLTDL)
++AC_SUBST(INCLTDL)
+
+-AC_CONFIG_SUBDIRS(libltdl)
+
+ AC_CHECK_LIB(m,sqrt)
+ AC_CHECK_LIB(jpeg,jpeg_start_compress)
+@@ -55,7 +55,7 @@
+ if test "$GDKPIXBUF_CONFIG"x != "x"; then
+ GDKPIXBUF_VERSION=`$GDKPIXBUF_CONFIG --version`
+ case "$GDKPIXBUF_VERSION" in
+- 0.14.*) have_gdkpixbuf=yes
++ 0.22.*) have_gdkpixbuf=yes
+ GDKPIXBUF_CFLAGS=`$GDKPIXBUF_CONFIG --cflags`
+ GDKPIXBUF_LIBS=`$GDKPIXBUF_CONFIG --libs`
+ CFLAGS="$CFLAGS $GDKPIXBUF_CFLAGS"
diff --git a/multimedia/camserv/pkg-descr b/multimedia/camserv/pkg-descr
new file mode 100644
index 000000000..19f32395e
--- /dev/null
+++ b/multimedia/camserv/pkg-descr
@@ -0,0 +1,14 @@
+Camserv is a free program to do streaming video through the web
+Streaming video can be sent to both Netscape and Internet Explorer clients.
+However, Internet Explorer under Windows cannot apparently handle
+the multi-part JPEGs, and therefore a special javascript page must be setup.
+One is included in the distribution as an example.
+
+Currently, the only supported BSD device is the bktr driver.
+Both tunable modes and camera inputs are supported.
+
+WWW: http://cserv.sourceforge.net/
+
+--
+chein, overholt
+chein@freebsd.org, overholt@isdw.net
diff --git a/multimedia/camserv/pkg-plist b/multimedia/camserv/pkg-plist
new file mode 100644
index 000000000..89c20b4aa
--- /dev/null
+++ b/multimedia/camserv/pkg-plist
@@ -0,0 +1,37 @@
+bin/camserv
+bin/relay
+lib/camserv/libgdk_pixbuf_filter.a
+lib/camserv/libgdk_pixbuf_filter.la
+lib/camserv/libgdk_pixbuf_filter.so
+lib/camserv/libgdk_pixbuf_filter.so.0
+lib/camserv/libimlib2_filter.a
+lib/camserv/libimlib2_filter.la
+lib/camserv/libimlib2_filter.so
+lib/camserv/libimlib2_filter.so.0
+lib/camserv/libjpg_filter.a
+lib/camserv/libjpg_filter.la
+lib/camserv/libjpg_filter.so
+lib/camserv/libjpg_filter.so.0
+lib/camserv/librand_filter.a
+lib/camserv/librand_filter.la
+lib/camserv/librand_filter.so
+lib/camserv/librand_filter.so.0
+lib/camserv/libtext_filter.a
+lib/camserv/libtext_filter.la
+lib/camserv/libtext_filter.so
+lib/camserv/libtext_filter.so.0
+lib/camserv/libvideo_basic.a
+lib/camserv/libvideo_basic.la
+lib/camserv/libvideo_basic.so
+lib/camserv/libvideo_basic.so.0
+%%BKTR%%lib/camserv/libvideo_fbsd_bttv.a
+%%BKTR%%lib/camserv/libvideo_fbsd_bttv.la
+%%BKTR%%lib/camserv/libvideo_fbsd_bttv.so
+%%BKTR%%lib/camserv/libvideo_fbsd_bttv.so.0
+%%DATADIR%%/camserv.cfg.dist
+%%DATADIR%%/defpage.html
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/javascript.txt
+@dirrm lib/camserv
+@dirrm share/camserv
+%%PORTDOCS%%@dirrm %%DOCSDIR%%