From nobody@FreeBSD.org  Sun Dec 25 01:28:52 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 84E6716A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 Dec 2005 01:28:52 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 41F7C43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 Dec 2005 01:28:52 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBP1Sp4n064356
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 Dec 2005 01:28:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBP1Sp2d064355;
	Sun, 25 Dec 2005 01:28:51 GMT
	(envelope-from nobody)
Message-Id: <200512250128.jBP1Sp2d064355@www.freebsd.org>
Date: Sun, 25 Dec 2005 01:28:51 GMT
From: Angel Carpintero <ack@telefonica.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: multimedia/motion
X-Send-Pr-Version: www-2.3

>Number:         90892
>Category:       ports
>Synopsis:       New port: multimedia/motion
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ehaupt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 25 01:30:10 GMT 2005
>Closed-Date:    Sun Dec 25 23:01:21 CET 2005
>Last-Modified:  Sun Dec 25 23:01:21 CET 2005
>Originator:     Angel Carpintero
>Release:        5.4-RELEASE
>Organization:
>Environment:
FreeBSD motion.local.house 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Add multimedia/motion new port.
>How-To-Repeat:
              
>Fix:
Also available : 

http://www.lavrsen.dk/twiki/pub/Motion/FreeBSDPatch/new-motion-port.shar.gz

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       /usr/ports/multimedia/motion/
#       /usr/ports/multimedia/motion/Makefile
#       /usr/ports/multimedia/motion/pkg-descr
#       /usr/ports/multimedia/motion/pkg-plist
#       /usr/ports/multimedia/motion/distinfo
#
echo c - /usr/ports/multimedia/motion/
mkdir -p /usr/ports/multimedia/motion/ > /dev/null 2>&1
echo x - /usr/ports/multimedia/motion/Makefile
sed 's/^X//' >/usr/ports/multimedia/motion/Makefile << 'END-of-/usr/ports/multimedia/motion/Makefile'
X# New ports collection makefile for:  motion
X# Date created:                22 Dec 2005
X# Whom:        Angel Carpintero <ack@telefonica.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      motion
XPORTVERSION=   3.2.4
XPORTREVISION=  1
XCATEGORIES=  multimedia
XMASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=    motion
X
XPATCH_SITES= http://www.lavrsen.dk/twiki/pub/Motion/FreeBSDPatch/
XPATCHFILES= motion-3.2.5-daily.diff.gz motion-3.2.4-port-configure-patch.diff.gz
XPATCH_DIST_STRIP=      -p1
X
XMAINTAINER= ack@telefonica.net
XCOMMENT= Motion detection application
X
XLIB_DEPENDS=   jpeg.9:${PORTSDIR}/graphics/jpeg \
X               avcodec.1:${PORTSDIR}/multimedia/ffmpeg
X
XONLY_FOR_ARCHS= i386 amd64
X
XCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XMAN1=          motion.1
XMANCOMPRESSED= no
X
XUSE_AUTOTOOLS=  autoconf:259
XGNU_CONFIGURE= yes
XUSE_GMAKE=     yes
XUSE_GCC=       3.4+
X
XOPTIONS=BKTR "Support for TV Capture cards" on
X
X.include <bsd.port.pre.mk>
X
X.if !defined(WITH_BKTR)
XCFLAGS+=-DWITHOUT_V4L
X.endif
X
X.if ${OSVERSION} > 500000
XLIB_DEPENDS+=  lthread.[35]:${PORTSDIR}/devel/linuxthreads
X.else
XLIB_DEPENDS+=  lthread.[24]:${PORTSDIR}/devel/linuxthreads
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X       ${MKDIR} ${DOCSDIR}
X       ${INSTALL_MAN} ${WRKSRC}/CHANGELOG ${WRKSRC}/COPYING ${WRKSRC}/CREDITS ${WRKSRC}/INSTALL ${WRKSRC}/README.FreeBSD ${WRKSRC}/README
${WRKSRC}/motion_guide.html ${DOCSDIR}
X       ${MKDIR} ${EXAMPLESDIR}
X       ${INSTALL_MAN} ${WRKSRC}/motion-dist.conf ${WRKSRC}/motion.init-FreeBSD.sh ${WRKSRC}/thread1.conf ${WRKSRC}/thread2.conf ${WRKSRC}/thread3.conf ${WRKSRC}/thread4.conf ${EXAMPLESDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-/usr/ports/multimedia/motion/Makefile
echo x - /usr/ports/multimedia/motion/pkg-descr
sed 's/^X//' >/usr/ports/multimedia/motion/pkg-descr << 'END-of-/usr/ports/multimedia/motion/pkg-descr'
XThis is a port of motion , this version works with network cameras
X and with any capture devices that supports BKTR with composite and
X svideo inputs ( tuner support is not yet implemented ).
X
XWWW: http://motion.sf.net
END-of-/usr/ports/multimedia/motion/pkg-descr
echo x - /usr/ports/multimedia/motion/pkg-plist
sed 's/^X//' >/usr/ports/multimedia/motion/pkg-plist << 'END-of-/usr/ports/multimedia/motion/pkg-plist'
Xbin/motion
Xetc/motion.conf.sample
X%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/CREDITS
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/README.FreeBSD
X%%PORTDOCS%%%%DOCSDIR%%/motion_guide.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%%%EXAMPLESDIR%%/motion-dist.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/motion.init-FreeBSD.sh
X%%PORTDOCS%%%%EXAMPLESDIR%%/thread1.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/thread2.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/thread3.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/thread4.conf
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
END-of-/usr/ports/multimedia/motion/pkg-plist
echo x - /usr/ports/multimedia/motion/distinfo
sed 's/^X//' >/usr/ports/multimedia/motion/distinfo << 'END-of-/usr/ports/multimedia/motion/distinfo'
XMD5 (motion-3.2.4.tar.gz) = ce0a4f5cea6c59ebd7b2d12a5f95b07d
XSIZE (motion-3.2.4.tar.gz) = 360850
XMD5 (motion-3.2.5-daily.diff.gz) = 70573499028138f37254ae507326ab77
XSIZE (motion-3.2.5-daily.diff.gz) = 23328
XMD5 (motion-3.2.4-port-configure-patch.diff.gz) = 2da6c66ac4662081e6bf3dc02366dbe7
XSIZE (motion-3.2.4-port-configure-patch.diff.gz) = 2656
END-of-/usr/ports/multimedia/motion/distinfo
exit
>Release-Note:
>Audit-Trail:
Class-Changed-From-To: maintainer-update->change-request 
Class-Changed-By: edwin 
Class-Changed-When: Sun Dec 25 01:33:48 UTC 2005 
Class-Changed-Why:  
Fix category (new ports should be change-requests) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90892 
Responsible-Changed-From-To: freebsd-ports-bugs->ehaupt 
Responsible-Changed-By: ehaupt 
Responsible-Changed-When: Sun Dec 25 12:55:30 CET 2005 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90892 
State-Changed-From-To: open->closed 
State-Changed-By: ehaupt 
State-Changed-When: Sun Dec 25 22:56:28 CET 2005 
State-Changed-Why:  
New port added with modifications, thanks! 

Changes: 
- Pass ${CC} to MAKE_ENV to respect CC 
- Trim PORTDOCS 
- Added plist-magic to preserve motion.conf if it difers from 
motion.conf.sample 
- Add a note about bktr(4) kernel support if WITH_BKTR is defined 
- Stylistic changes 


http://www.freebsd.org/cgi/query-pr.cgi?pr=90892 
>Unformatted:
