View | Details | Raw Unified | Return to bug 32673
Collapse All | Expand All

(-)xawtv/Makefile (-14 / +22 lines)
Lines 6-14 Link Here
6
#
6
#
7
7
8
PORTNAME=       xawtv
8
PORTNAME=       xawtv
9
PORTVERSION=	3.37
9
PORTVERSION=	3.65
10
CATEGORIES=     graphics
10
CATEGORIES=     graphics
11
MASTER_SITES=   http://www.strusel007.de/linux/xawtv/
11
WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
12
MASTER_SITES=   http://bytesex.org/xawtv/
12
DISTNAME=	${PORTNAME}_${PORTVERSION}
13
DISTNAME=	${PORTNAME}_${PORTVERSION}
13
14
14
MAINTAINER=	greid@ukug.uk.freebsd.org
15
MAINTAINER=	greid@ukug.uk.freebsd.org
Lines 17-43 Link Here
17
		png.5:${PORTSDIR}/graphics/png \
18
		png.5:${PORTSDIR}/graphics/png \
18
		jpeg.9:${PORTSDIR}/graphics/jpeg
19
		jpeg.9:${PORTSDIR}/graphics/jpeg
19
20
20
WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
21
CONFIGURE_ARGS=	--prefix=${PREFIX}
21
22
22
GNU_CONFIGURE=	yes
23
23
24
GNU_CONFIGURE=	yes
25
USE_GMAKE=	yes
24
USE_X_PREFIX=	yes
26
USE_X_PREFIX=	yes
25
27
26
SEDFILES=	. font i2c man src radio contrib/cc webcam oldstuff/vtx \
28
29
FILES_CFLAGS=	. font i2c man src radio webcam oldstuff/vtx \
27
		libng libvbi http
30
		libng libvbi http
31
FILES_X11BASE=	configure Make.config.in
28
32
29
MAN1=		alevtd.1 fbtv.1 propwatch.1 rootv.1 showriff.1 v4l-conf.1 \
30
		v4lctl.1 webcam.1 xawtv-remote.1 xawtv.1
31
33
32
post-configure:
34
MAN1=		alevtd.1 dump-mixers.1 fbtv.1 motv.1 ntsc-cc.1 propwatch.1 record.1 \
33
.for M in ${SEDFILES}
35
		rootv.1 scantv.1 showriff.1 \
34
	@(${SED} -e 's,^CFLAGS=,CFLAGS+=,g' ${WRKSRC}/$M/Makefile | \
36
		streamer.1 subtitles.1 ttv.1 v4lctl.1 \
35
		${SED} -e 's,-O2,,g' > ${WRKSRC}/foo && ${MV} ${WRKSRC}/foo ${WRKSRC}/$M/Makefile)
37
		webcam.1 xawtv-remote.1 xawtv.1
38
MAN5=		xawtvrc.5
39
MAN8=		v4l-conf.8
40
41
post-patch:
42
.for i in ${FILES_X11BASE}
43
	${PERL} -pi -e "s|%%X11BASE%%|${X11BASE}|g" ${WRKSRC}/$i
36
.endfor
44
.endfor
37
45
38
post-install:
46
post-configure:
39
.for F in led-koi8.pcf led-latin1.pcf led-latin2.pcf
47
.for i in ${FILES_CFLAGS}
40
	@gzip ${PREFIX}/lib/X11/fonts/misc/$F
48
	${PERL} -pi -e "s|^CFLAGS=|CFLAGS+=|g" ${WRKSRC}/$i/Makefile
41
.endfor
49
.endfor
42
50
43
.include <bsd.port.mk>
51
.include <bsd.port.mk>
(-)xawtv/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (xawtv_3.37.tar.gz) = a264eddc95fa92b83b14be386abc7be8
1
MD5 (xawtv_3.65.tar.gz) = 6695dc3ef1c6ad4caa4b22b5cc0930ca
(-)xawtv/files/patch-configure (+24 lines)
Line 0 Link Here
1
--- configure.orig	Wed Oct 10 12:31:37 2001
2
+++ configure	Wed Oct 31 21:47:19 2001
3
@@ -2833,19 +2833,13 @@
4
 
5
 echo $ac_n "checking for X11 config directory""... $ac_c" 1>&6
6
 echo "configure:2836: checking for X11 config directory" >&5
7
-x11conf=/usr/X11R6/lib/X11
8
-if test -d /etc/X11; then
9
-	x11conf=/etc/X11
10
-fi
11
+x11conf=%%X11BASE%%/lib/X11
12
 echo "$ac_t""$x11conf" 1>&6
13
 
14
 
15
 echo $ac_n "checking for X11 app-defaults directory""... $ac_c" 1>&6
16
 echo "configure:2845: checking for X11 app-defaults directory" >&5
17
-resdir=/usr/X11R6/lib/X11
18
-if test -d /etc/X11/app-defaults; then
19
-	resdir=/etc/X11
20
-fi
21
+resdir=%%X11BASE%%/lib/X11
22
 echo "$ac_t""$resdir/app-defaults" 1>&6
23
 
24
 
(-)xawtv/files/patch-font::Makefile.in (-7 / +8 lines)
Lines 1-9 Link Here
1
--- font/Makefile.in.orig	Sat Mar  3 22:50:32 2001
1
--- font/Makefile.in.orig	Sun Sep  2 12:01:30 2001
2
+++ font/Makefile.in		Sat Mar  3 22:50:44 2001
2
+++ font/Makefile.in	Sun Sep  2 12:01:45 2001
3
@@ -16,7 +16,6 @@
3
@@ -23,7 +23,6 @@
4
 	done
4
 	done
5
 	if test "$(ROOT)" = ""; then		\
5
 	if test "$(DESTDIR)" = ""; then		\
6
 		(cd $(FONTDIR); mkfontdir);	\
6
 		(cd $(fontdir); mkfontdir);	\
7
-		xset fp rehash;			\
7
-		xset fp rehash || true;		\
8
 		true;				\
9
 	fi
8
 	fi
9
 
10
 
(-)xawtv/files/patch-src::Makefile.in (+19 lines)
Line 0 Link Here
1
--- src/Makefile.in.orig	Mon Oct  8 10:26:40 2001
2
+++ src/Makefile.in	Wed Oct 31 21:07:03 2001
3
@@ -120,12 +120,14 @@
4
 install-dirs:
5
 	$(INSTALL_DIR) $(bindir)
6
 	$(INSTALL_DIR) $(resdir)/app-defaults
7
-	$(INSTALL_DIR) $(resdir)/de/app-defaults
8
+	for lang in $(LANG); do \
9
+	  $(INSTALL_DIR) $(resdir)/$$lang/app-defaults;\
10
+	done
11
 
12
 install-common:
13
 	$(INSTALL_DIR) $(bindir)
14
 	$(INSTALL_DIR) $(resdir)/app-defaults
15
-	$(INSTALL_PROGRAM) $(srcdir)/subtitles $(bindir)
16
+	$(INSTALL_DATA) -m 555 $(srcdir)/subtitles $(bindir)
17
 	$(INSTALL_PROGRAM) -s xawtv-remote $(bindir)
18
 	$(INSTALL_PROGRAM) -s streamer $(bindir)
19
 	$(INSTALL_PROGRAM) -s v4lctl $(bindir)
(-)xawtv/files/patch-src::motif.c (+22 lines)
Line 0 Link Here
1
--- src/motif.c.orig	Mon Sep 17 00:42:53 2001
2
+++ src/motif.c	Mon Sep 17 00:45:40 2001
3
@@ -24,6 +24,19 @@
4
 # include <sys/soundcard.h>
5
 #endif
6
 
7
+#if defined(__FreeBSD__)
8
+typedef struct mixer_info
9
+{
10
+  char id[16];  
11
+  char name[32];
12
+  int  modify_counter;
13
+  int fillers[10];
14
+} mixer_info;
15
+
16
+
17
+# define SOUND_MIXER_INFO                _IOR ('M', 101, mixer_info)
18
+#endif
19
+
20
 #include <X11/Xlib.h>
21
 #include <X11/Intrinsic.h>
22
 #include <Xm/Xm.h>
(-)xawtv/files/patch-src::xt.c (+16 lines)
Line 0 Link Here
1
--- src/xt.c.orig	Mon Sep 17 00:39:58 2001
2
+++ src/xt.c	Mon Sep 17 00:40:07 2001
3
@@ -27,6 +27,13 @@
4
 # include <linux/videodev.h>
5
 #endif
6
 
7
+#if defined(__FreeBSD__)
8
+#define VIDEO_SOUND_MONO        1
9
+#define VIDEO_SOUND_STEREO      2
10
+#define VIDEO_SOUND_LANG1       4
11
+#define VIDEO_SOUND_LANG2       8
12
+#endif
13
+
14
 #include "config.h"
15
 
16
 #include <X11/Xlib.h>
(-)xawtv/pkg-descr (-1 / +1 lines)
Lines 1-7 Link Here
1
This is a _simple_ xaw-based TV Program which uses the bttv driver or
1
This is a _simple_ xaw-based TV Program which uses the bttv driver or
2
video4linux (included in 2.1.x).  Copy Policy is GNU GPL.
2
video4linux (included in 2.1.x).  Copy Policy is GNU GPL.
3
3
4
WWW: http://www.strusel007.de/linux/xawtv/
4
WWW: http://bytesex.org/xawtv/
5
5
6
- George Reid
6
- George Reid
7
greid@ukug.uk.freebsd.org
7
greid@ukug.uk.freebsd.org
(-)xawtv/pkg-plist (-4 / +14 lines)
Lines 1-16 Link Here
1
bin/alevtd
1
bin/alevtd
2
bin/dump-mixers
2
bin/dump-mixers
3
bin/ntsc-cc
3
bin/propwatch
4
bin/propwatch
4
bin/record
5
bin/record
5
bin/rootv
6
bin/rootv
6
bin/scantv
7
bin/scantv
7
bin/showriff
8
bin/showriff
8
bin/streamer
9
bin/streamer
10
bin/subtitles
11
bin/ttv
9
bin/v4lctl
12
bin/v4lctl
10
bin/webcam
13
bin/webcam
11
bin/xawtv
14
bin/xawtv
12
bin/xawtv-remote
15
bin/xawtv-remote
13
lib/X11/app-defaults/Xawtv
16
lib/X11/app-defaults/MoTV
14
lib/X11/fonts/misc/led-koi8.pcf.gz
17
lib/X11/fonts/misc/led-iso8859-1.pcf.gz
15
lib/X11/fonts/misc/led-latin1.pcf.gz
18
lib/X11/fonts/misc/led-iso8859-2.pcf.gz
16
lib/X11/fonts/misc/led-latin2.pcf.gz
19
lib/X11/fonts/misc/led-koi8-r.pcf.gz
20
lib/X11/de/app-defaults/MoTV
21
lib/X11/it/app-defaults/MoTV
22
@dirrm lib/X11/de/app-defaults
23
@dirrm lib/X11/de
24
@dirrm lib/X11/it/app-defaults     
25
@dirrm lib/X11/it
26

Return to bug 32673