aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-11-22 22:19:46 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-11-22 22:19:46 +0000
commit348d185b7d81a95787913982d58e1eaad94ab90d (patch)
tree9bb3fb261b34aaa1151568a9a00f10d907693821 /multimedia
parentd3e01bc865b5a5105f5f07dc5c5dfd3e263095f4 (diff)
downloadports-348d185b7d81a95787913982d58e1eaad94ab90d.tar.gz
ports-348d185b7d81a95787913982d58e1eaad94ab90d.zip
Notes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/bsdav/Makefile27
-rw-r--r--multimedia/bsdav/files/patch-btv26
-rw-r--r--multimedia/bsdav/pkg-plist6
3 files changed, 49 insertions, 10 deletions
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 <itetcu@people.tecnik93.com>
#
# $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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>
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