diff options
author | clement <clement@FreeBSD.org> | 2004-03-22 21:00:51 +0000 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2004-03-22 21:00:51 +0000 |
commit | 83e79ebb482b1a4ede96ec3a43934beacf724c49 (patch) | |
tree | 78c7f261c0f3c7c2e86c585d440f985c4dcc56dd /multimedia/camserv | |
parent | d4ee42bf5715999000e7eb66a0befe69f32fd626 (diff) | |
download | FreeBSD-ports-83e79ebb482b1a4ede96ec3a43934beacf724c49.zip FreeBSD-ports-83e79ebb482b1a4ede96ec3a43934beacf724c49.tar.gz |
- Update to 0.5.1
- Pass maintainership to submitter
- Compile on all architectures, camserv can be used as relay station
- Package the bttv-module only when ioctl_bt848.h is present
- Catch up with new location of ioctl_bt848.h on -CURRENT
PR: 64482
Submitted by: Ulrich Spoerlein <q@uni.de>
Diffstat (limited to 'multimedia/camserv')
-rw-r--r-- | multimedia/camserv/Makefile | 44 | ||||
-rw-r--r-- | multimedia/camserv/distinfo | 4 | ||||
-rw-r--r-- | multimedia/camserv/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | multimedia/camserv/files/patch-ab | 10 | ||||
-rw-r--r-- | multimedia/camserv/files/patch-ac | 13 | ||||
-rw-r--r-- | multimedia/camserv/files/patch-ad | 25 | ||||
-rw-r--r-- | multimedia/camserv/files/patch-camserv.cfg | 17 | ||||
-rw-r--r-- | multimedia/camserv/files/patch-configure | 11 | ||||
-rw-r--r-- | multimedia/camserv/files/patch-configure.in | 27 | ||||
-rw-r--r-- | multimedia/camserv/pkg-plist | 13 |
10 files changed, 93 insertions, 82 deletions
diff --git a/multimedia/camserv/Makefile b/multimedia/camserv/Makefile index 8fa9e39..a9a3db2 100644 --- a/multimedia/camserv/Makefile +++ b/multimedia/camserv/Makefile @@ -6,26 +6,46 @@ # PORTNAME= camserv -PORTVERSION= 0.5.0 -PORTREVISION= 1 +PORTVERSION= 0.5.1 PORTEPOCH= 1 CATEGORIES= multimedia -MASTER_SITES= http://cserv.sourceforge.net/old/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= cserv -MAINTAINER= ports@FreeBSD.org +MAINTAINER= q@uni.de COMMENT= Camserv is a free program to do streaming video via the web LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ Imlib2.2:${PORTSDIR}/graphics/imlib2 \ - gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf + gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf \ + freetype.9:${PORTSDIR}/print/freetype2 \ + ltdl.4:${PORTSDIR}/devel/libltdl USE_X_LIB= yes GNU_CONFIGURE= yes +USE_REINPLACE= yes +USE_AUTOCONF_VER=253 +#CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \ -I${X11BASE}/include/gtk12 -I${X11BASE}/include/gdk-pixbuf-1.0 \ -I${LOCALBASE}/include/glib12" \ LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_ARGS+=--enable-static=no + +.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) @@ -33,16 +53,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/javascript.txt ${DOCSDIR} .endif -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 502104 -BROKEN= "Does not compile" -.endif - -.if ${OSVERSION} < 500000 -ONLY_FOR_ARCHS= i386 -.else -ONLY_FOR_ARCHS= alpha i386 ia64 -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/multimedia/camserv/distinfo b/multimedia/camserv/distinfo index 3ab4558..5079a62 100644 --- a/multimedia/camserv/distinfo +++ b/multimedia/camserv/distinfo @@ -1,2 +1,2 @@ -MD5 (camserv-0.5.0.tar.gz) = d578b54a011e8a4067573afc926ea033 -SIZE (camserv-0.5.0.tar.gz) = 462974 +MD5 (camserv-0.5.1.tar.gz) = ad6a1c9a5b522a4ee2189c66d7fbda72 +SIZE (camserv-0.5.1.tar.gz) = 487645 diff --git a/multimedia/camserv/files/patch-Makefile.in b/multimedia/camserv/files/patch-Makefile.in deleted file mode 100644 index 68f5f89..0000000 --- a/multimedia/camserv/files/patch-Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- camserv/Makefile.in.orig Sat Feb 7 00:23:59 2004 -+++ camserv/Makefile.in Sat Feb 7 00:24:04 2004 -@@ -85,7 +85,7 @@ - datadir = @datadir@/camserv - - CPPFLAGS = -DDATDIR=\"${datadir}\" --LDFLAGS = -export-dynamic -+LDFLAGS = -export-dynamic @LDFLAGS@ - - bin_PROGRAMS = camserv - camserv_LDADD = $(LIBLTDL) $(top_srcdir)/common/libcommon.a diff --git a/multimedia/camserv/files/patch-ab b/multimedia/camserv/files/patch-ab index 8aa3fc2..55890dc 100644 --- a/multimedia/camserv/files/patch-ab +++ b/multimedia/camserv/files/patch-ab @@ -8,3 +8,13 @@ #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-ac b/multimedia/camserv/files/patch-ac deleted file mode 100644 index 541624d..0000000 --- a/multimedia/camserv/files/patch-ac +++ /dev/null @@ -1,13 +0,0 @@ ---- camserv/video_fbsd_bttv.c.orig Fri Mar 5 19:22:31 2004 -+++ camserv/video_fbsd_bttv.c Fri Mar 5 19:41:16 2004 -@@ -644,8 +644,8 @@ - if( !fbttv_dev->autobright || --fbttv_dev->autoleft > 0 ) - return 0; - -- totmean = calculate_pic_mean( width, height, picbuf, 1, 0, 0, -- width, height ); -+ totmean = camserv_get_pic_mean( width, height, picbuf, 1, 0, 0, -+ 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 index f54eee8..56d8922 100644 --- a/multimedia/camserv/files/patch-ad +++ b/multimedia/camserv/files/patch-ad @@ -1,12 +1,29 @@ ---- Makefile.in.orig Fri Mar 5 19:11:47 2004 -+++ Makefile.in Fri Mar 5 19:12:04 2004 -@@ -96,3 +96,3 @@ +--- 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 -@@ -402,3 +402,3 @@ + 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 index c2bb422..11a6c62 100644 --- a/multimedia/camserv/files/patch-camserv.cfg +++ b/multimedia/camserv/files/patch-camserv.cfg @@ -2,7 +2,7 @@ +++ camserv.cfg.in Sat Feb 7 00:40:42 2004 @@ -2,42 +2,10 @@ [video_basic] - path CAMSERV_MODDIR/libvideo_basic.so + 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 @@ -20,7 +20,7 @@ -# the value of each component. - -[video_v4l_bttv] --path CAMSERV_MODDIR/libvideo_v4l.so +-path CAMSERV_MODDIR/libvideo_v4l.so.0 -device_path /dev/video0 -port 0 -mode 3 @@ -44,15 +44,6 @@ # Channel Sets: # nabscst 1 # cableirc 2 -@@ -49,7 +17,7 @@ - # australia 8 - - [video_fbsd_bttv] --path CAMSERV_MODDIR/libvideo_fbsd_bttv.so.0.0 -+path CAMSERV_MODDIR/libvideo_fbsd_bttv.so - port 1 - width 320 - height 240 @@ -57,20 +25,8 @@ #brightness 0 #chroma 180 @@ -61,7 +52,7 @@ -channel 60 - -[video_v4l_qcam] --path CAMSERV_MODDIR/libvideo_v4l.so +-path CAMSERV_MODDIR/libvideo_v4l.so.0 -device_path /dev/video1 -port 0 -color 30000 @@ -75,4 +66,4 @@ +channel 3 [jpg_filter] - path CAMSERV_MODDIR/libjpg_filter.so + path CAMSERV_MODDIR/libjpg_filter.so.0 diff --git a/multimedia/camserv/files/patch-configure b/multimedia/camserv/files/patch-configure deleted file mode 100644 index 54650f9..0000000 --- a/multimedia/camserv/files/patch-configure +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.orig Sat Feb 7 00:01:51 2004 -+++ configure Sat Feb 7 00:17:32 2004 -@@ -5465,7 +5465,7 @@ - if test "$GDKPIXBUF_CONFIG"x != "x"; then - GDKPIXBUF_VERSION=`$GDKPIXBUF_CONFIG --version` - case "$GDKPIXBUF_VERSION" in -- 0.11.*) have_gdkpixbuf=yes -+ 0.22.*) have_gdkpixbuf=yes - GDKPIXBUF_CFLAGS=`$GDKPIXBUF_CONFIG --cflags` - GDKPIXBUF_LIBS=`$GDKPIXBUF_CONFIG --libs` - ac_safe=`echo "gdk-pixbuf/gdk-pixbuf.h" | sed 'y%./+-%__p_%'` diff --git a/multimedia/camserv/files/patch-configure.in b/multimedia/camserv/files/patch-configure.in new file mode 100644 index 0000000..295cd02 --- /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-plist b/multimedia/camserv/pkg-plist index 0026adf..e46d5e6 100644 --- a/multimedia/camserv/pkg-plist +++ b/multimedia/camserv/pkg-plist @@ -1,33 +1,26 @@ 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 -lib/camserv/libvideo_fbsd_bttv.a -lib/camserv/libvideo_fbsd_bttv.la -lib/camserv/libvideo_fbsd_bttv.so -lib/camserv/libvideo_fbsd_bttv.so.0 +%%BKTR%%lib/camserv/libvideo_fbsd_bttv.la +%%BKTR%%lib/camserv/libvideo_fbsd_bttv.so +%%BKTR%%lib/camserv/libvideo_fbsd_bttv.so.0 share/camserv/camserv.cfg.dist share/camserv/defpage.html %%PORTDOCS%%%%DOCSDIR%%/README |