From 61285f0b4ce8ecefbe60b3b9a1c97fa77ce0cdc6 Mon Sep 17 00:00:00 2001 From: pav Date: Tue, 22 Nov 2005 22:19:46 +0000 Subject: - Switch from BROKEN to IGNORE - Add OPTIONS for X11 PR: ports/89300 Submitted by: Ion-Mihai "IOnut" Tetcu (maintainer) --- multimedia/bsdav/Makefile | 27 ++++++++++++++++++++------- multimedia/bsdav/files/patch-btv | 26 ++++++++++++++++++++++++++ multimedia/bsdav/pkg-plist | 6 +++--- 3 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 multimedia/bsdav/files/patch-btv (limited to 'multimedia/bsdav') diff --git a/multimedia/bsdav/Makefile b/multimedia/bsdav/Makefile index f33aa7f04529..7c171d995384 100644 --- a/multimedia/bsdav/Makefile +++ b/multimedia/bsdav/Makefile @@ -3,30 +3,43 @@ # Whom: Ion-Mihai "IOnut" Tetcu # # $FreeBSD$ +# $Id: Makefile,v 1.8 2005/11/19 23:21:24 itetcu Rel $ # PORTNAME= bsdav PORTVERSION= 1.3 CATEGORIES= multimedia MASTER_SITES= http://www.jakemsr.com/bsdav/ \ - http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/ + http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/ MAINTAINER= itetcu@people.tecnik93.com COMMENT= BSD native set of programs for audio and video reading and writing -BROKEN= Does not compile +IGNORE= does not work. We need to import bktv patches from OpenBSD to make it work INSTALLS_SHLIB= yes -MAN1= audiorec.1 bktrrec.1 bsdavdemux.1 bsdavrec.1 btv.1 tunerctl.1 avplay.1 \ - bktrplay.1 bsdavplay.1 -MAN5= bsdav.5 +MAN1= audiorec.1 bktrrec.1 bsdavdemux.1 bsdavrec.1 btv.1 tunerctl.1 +MAN5= bsdav.5 +PORTDOCS= README + +OPTIONS= X11 "Build and install player progs (brings X libs)" on + +.include + +.if !defined(WITHOUT_X11) +USE_XLIB= yes +MAN1+= avplay.1 bktrplay.1 bsdavplay.1 +PLIST_SUB+= X11="" +.else +MAKE_ENV+= NO_X11=true +PLIST_SUB+= X11="@comment " +.endif .if !( defined(NO_PORTDOCS) || defined(NOPORTDOCS) ) -PORTDOCS= README post-install: @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif -.include +.include diff --git a/multimedia/bsdav/files/patch-btv b/multimedia/bsdav/files/patch-btv new file mode 100644 index 000000000000..9031927078d1 --- /dev/null +++ b/multimedia/bsdav/files/patch-btv @@ -0,0 +1,26 @@ +--- btv.dist Thu Aug 11 08:37:38 2005 ++++ btv Sat Nov 5 22:44:15 2005 +@@ -20,7 +20,7 @@ + : ${CHANSET=nabcst} + + +-function usage ++usage() + { + echo "Usage: tv [-vm] [-c channel] [-d directory] [-n norm]" + echo " [-r command]" +@@ -34,8 +34,13 @@ + V="" + RET=0 + ++args=`getopt c:d:mn:r:v $*` ++if [ $? -ne 0 ] ++then ++ usage ++fi ++set -- ${args} + +-set -- `getopt c:d:mn:r:v $*` || usage + + for i + do diff --git a/multimedia/bsdav/pkg-plist b/multimedia/bsdav/pkg-plist index e028b510ff4c..be8b883f4cdb 100644 --- a/multimedia/bsdav/pkg-plist +++ b/multimedia/bsdav/pkg-plist @@ -1,9 +1,9 @@ bin/audiorec -bin/avplay -bin/bktrplay +%%X11%%bin/avplay +%%X11%%bin/bktrplay bin/bktrrec bin/bsdavdemux -bin/bsdavplay +%%X11%%bin/bsdavplay bin/bsdavrec bin/btv bin/tunerctl -- cgit