pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia revive fxtv, was told it can be used as a c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/988fb834c5d3
branches: trunk
changeset: 377654:988fb834c5d3
user: tnn <tnn%pkgsrc.org@localhost>
date: Sun Apr 24 10:57:28 2022 +0000
description:
revive fxtv, was told it can be used as a composite video viewer
diffstat:
multimedia/Makefile | 3 +-
multimedia/fxtv/DESCR | 4 +
multimedia/fxtv/Makefile | 43 ++++
multimedia/fxtv/PLIST | 13 +
multimedia/fxtv/distinfo | 38 +++
multimedia/fxtv/patches/patch-aa | 118 +++++++++++
multimedia/fxtv/patches/patch-ab | 25 ++
multimedia/fxtv/patches/patch-ac | 16 +
multimedia/fxtv/patches/patch-actions_c | 127 +++++++++++
multimedia/fxtv/patches/patch-ad | 256 ++++++++++++++++++++++++
multimedia/fxtv/patches/patch-ae | 167 +++++++++++++++
multimedia/fxtv/patches/patch-af | 85 +++++++
multimedia/fxtv/patches/patch-ag | 62 +++++
multimedia/fxtv/patches/patch-ah | 14 +
multimedia/fxtv/patches/patch-ai | 60 +++++
multimedia/fxtv/patches/patch-aj | 32 +++
multimedia/fxtv/patches/patch-ak | 24 ++
multimedia/fxtv/patches/patch-al | 170 +++++++++++++++
multimedia/fxtv/patches/patch-am | 15 +
multimedia/fxtv/patches/patch-an | 15 +
multimedia/fxtv/patches/patch-annot_c | 33 +++
multimedia/fxtv/patches/patch-ao | 25 ++
multimedia/fxtv/patches/patch-ap | 45 ++++
multimedia/fxtv/patches/patch-appear_dlg_c | 15 +
multimedia/fxtv/patches/patch-aq | 105 +++++++++
multimedia/fxtv/patches/patch-audiocnvt_c | 15 +
multimedia/fxtv/patches/patch-audsav_dlg_c | 51 ++++
multimedia/fxtv/patches/patch-ba | 64 ++++++
multimedia/fxtv/patches/patch-bb | 14 +
multimedia/fxtv/patches/patch-bc | 87 ++++++++
multimedia/fxtv/patches/patch-bd | 23 ++
multimedia/fxtv/patches/patch-be | 15 +
multimedia/fxtv/patches/patch-bf | 96 +++++++++
multimedia/fxtv/patches/patch-bg | 52 ++++
multimedia/fxtv/patches/patch-ca | 25 ++
multimedia/fxtv/patches/patch-remotetrans_c | 15 +
multimedia/fxtv/patches/patch-tvscreen_c | 116 ++++++++++
multimedia/fxtv/patches/patch-videolib_Makefile | 16 +
38 files changed, 2098 insertions(+), 1 deletions(-)
diffs (truncated from 2261 to 300 lines):
diff -r 20397a86f438 -r 988fb834c5d3 multimedia/Makefile
--- a/multimedia/Makefile Sun Apr 24 09:39:46 2022 +0000
+++ b/multimedia/Makefile Sun Apr 24 10:57:28 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.323 2022/04/24 08:33:04 wiz Exp $
+# $NetBSD: Makefile,v 1.324 2022/04/24 10:57:28 tnn Exp $
#
COMMENT= Multimedia utilities
@@ -40,6 +40,7 @@
SUBDIR+= flashplayer
SUBDIR+= flvstreamer
SUBDIR+= frei0r
+SUBDIR+= fxtv
SUBDIR+= gerbera
SUBDIR+= ggrab
SUBDIR+= gmencoder
diff -r 20397a86f438 -r 988fb834c5d3 multimedia/fxtv/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/fxtv/DESCR Sun Apr 24 10:57:28 2022 +0000
@@ -0,0 +1,4 @@
+To use this application, you need a video capture/tuner card
+that's based on the Brooktree 848 capture chip, such as one of the
+Hauppauge Wincast/TV or Win/TV cards, the STV TV PCI card, or the
+Intel Smart Video Recorder III.
diff -r 20397a86f438 -r 988fb834c5d3 multimedia/fxtv/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/fxtv/Makefile Sun Apr 24 10:57:28 2022 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.39 2022/04/24 10:57:28 tnn Exp $
+
+DISTNAME= fxtv-1.03
+PKGREVISION= 23
+CATEGORIES= multimedia
+MASTER_SITES= ${HOMEPAGE:Q}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://people.freebsd.org/~rhh/fxtv/
+COMMENT= TV display application for Brooktree 848 compatible TV cards
+
+USE_TOOLS+= gmake
+
+INSTALLATION_DIRS= ${PKGMANDIR}/man1
+
+SUBST_CLASSES+= ossaudio
+SUBST_MESSAGE.ossaudio= Fixing path to audio device.
+SUBST_STAGE.ossaudio= pre-configure
+SUBST_FILES.ossaudio= app_rsrc.h Fxtv README
+SUBST_SED.ossaudio= -e 's|/dev/dsp|${DEVOSSAUDIO}|g'
+
+post-extract:
+ ${RM} -f ${WRKSRC}/videolib/videolib.o
+
+pre-configure:
+ set -e; if [ -r /usr/include/machine/mouse.h ] ; then \
+ ${ECHO} '#define HAVE_MOUSE_H 1' > ${WRKSRC}/netbsdconf.h; \
+ else \
+ ${ECHO} '#define HAVE_MOUSE_H 0' > ${WRKSRC}/netbsdconf.h; \
+ fi
+
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../x11/libXaw/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXxf86dga/buildlink3.mk"
+.include "../../x11/libXxf86vm/buildlink3.mk"
+.include "../../x11/xorgproto/buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 20397a86f438 -r 988fb834c5d3 multimedia/fxtv/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/fxtv/PLIST Sun Apr 24 10:57:28 2022 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.5 2022/04/24 10:57:28 tnn Exp $
+bin/fxtv
+lib/X11/app-defaults/Fxtv
+lib/X11/fxtv/README
+lib/X11/fxtv/bitmaps/mini-camera.xpm
+lib/X11/fxtv/bitmaps/mini-down.xbm
+lib/X11/fxtv/bitmaps/mini-resize.xpm
+lib/X11/fxtv/bitmaps/mini-sound.xbm
+lib/X11/fxtv/bitmaps/mini-up.xbm
+lib/X11/fxtv/bitmaps/radio_off.xbm
+lib/X11/fxtv/bitmaps/radio_on.xbm
+lib/X11/fxtv/fxtv_cnvt.sh
+man/man1/fxtv.1
diff -r 20397a86f438 -r 988fb834c5d3 multimedia/fxtv/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/fxtv/distinfo Sun Apr 24 10:57:28 2022 +0000
@@ -0,0 +1,38 @@
+$NetBSD: distinfo,v 1.23 2022/04/24 10:57:28 tnn Exp $
+
+BLAKE2s (fxtv-1.03.tgz) = 1800aa8e7a387ad88f6c902846096aceed7fed0957df191b9bd09c708e197e80
+SHA512 (fxtv-1.03.tgz) = 5aa0372227f7c8d5b7bdf4885fead20ce174fcd1102e77febcd5166ecc1a8123f15c9b23ca536b9486bd281ff1c872c96f32845a188d503564de9aebc0d26016
+Size (fxtv-1.03.tgz) = 198669 bytes
+SHA1 (patch-aa) = cddeabd154563b4ab84f004cd6dedf1665887227
+SHA1 (patch-ab) = 803ef888b8894617b4f3516fc6822784aba314ee
+SHA1 (patch-ac) = 27a825287c17d1cc957fb89ba2f665c01f998c15
+SHA1 (patch-actions_c) = 3b1c75de416c66a9f502d9096a31192363da4ac9
+SHA1 (patch-ad) = 1560755a8e504a80e89d66278517959e7bdea34d
+SHA1 (patch-ae) = 2a05aa4abb593a54aafb7122f76907c12c40e6a5
+SHA1 (patch-af) = 1ada82aa78cf357df1c697a64c4e4f20ebd36859
+SHA1 (patch-ag) = 6833a48904ac01f053d991de0fb96cb65aa33d52
+SHA1 (patch-ah) = eee3ac0314c45f392b3cc64c934d9191a9f172ba
+SHA1 (patch-ai) = 2ee8bdae28f8ad0a9a42c73c6a20a9433e65a2f3
+SHA1 (patch-aj) = fc4d08c6ddbd141227677e68377bb563b6eff2db
+SHA1 (patch-ak) = e57eacc2fe2a0c7e1ab56ae1867ed7275777b2a3
+SHA1 (patch-al) = 08dfc0ad859086ab758df349510fc27cc2c9b971
+SHA1 (patch-am) = 2166c83b8e5ef74c716fc22b70fa9b266968c30c
+SHA1 (patch-an) = 2b09f6e3e1ccd24a68e98881faa57d7b9ecc5e04
+SHA1 (patch-annot_c) = 9caaa139138a6a53edd294cb2a5d3ef47bec45f6
+SHA1 (patch-ao) = bf602e6ac5f4fd213cf135a466fd29a765573ef9
+SHA1 (patch-ap) = 16cfb290089e30e63fde8e5f3a9e6d51efa0a9f0
+SHA1 (patch-appear_dlg_c) = c55bb9882633454e147811381a6cc0e3f3932df4
+SHA1 (patch-aq) = e673486847f35b037870fba089b5d72eac5945f5
+SHA1 (patch-audiocnvt_c) = 1c2748c4d1499fb3083748df017935984d5c710e
+SHA1 (patch-audsav_dlg_c) = aebba653b89e06562e04381fec6c9fac5e122a0e
+SHA1 (patch-ba) = 11ebc91ce21a9132d116dffbefde58ef3f223e46
+SHA1 (patch-bb) = 861d7e52e7a1bbf3433b8b35dc0737e12ca2d82a
+SHA1 (patch-bc) = 97d02b5f725f15a9eb31aff9a93872315247da75
+SHA1 (patch-bd) = c11c09060d3f2b9512682078b035e93195e0e16e
+SHA1 (patch-be) = f93df2ce14cb83641d29031d541b5c822d5d1e63
+SHA1 (patch-bf) = a2c7b93ef9fb5eb28c2ac867d84d9b8e6f06dab8
+SHA1 (patch-bg) = 8078acbccbb34bb30251187f56cb2a28db579bf4
+SHA1 (patch-ca) = f80c76b57cd6b4be91a432d506141896d6630be5
+SHA1 (patch-remotetrans_c) = 87e8cc3ad428c082f89d76c018bcca76298d62cf
+SHA1 (patch-tvscreen_c) = 4e9d49674610e827a42ea02fc350698c435162cf
+SHA1 (patch-videolib_Makefile) = a15a33fb4e756d2b2ddfa2e72835b1ffcbcd8c60
diff -r 20397a86f438 -r 988fb834c5d3 multimedia/fxtv/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/fxtv/patches/patch-aa Sun Apr 24 10:57:28 2022 +0000
@@ -0,0 +1,118 @@
+$NetBSD: patch-aa,v 1.13 2022/04/24 10:57:28 tnn Exp $
+
+Config for pkgsrc.
+
+--- Makefile.orig 2001-02-12 22:08:59.000000000 +0000
++++ Makefile
+@@ -4,13 +4,10 @@
+
+ HAVE_XFREE86 = YES
+
+-ifneq ($(X11PREFIX),) # NetBSD
+-X11BASE ?= $(X11PREFIX)
+-else
+ X11BASE ?= /usr/X11R6
+-endif
++X11BASEINST ?= $(PREFIX)
+
+-X11BASEINST ?= $(X11BASE)
++PREFIX ?= /usr/local
+ LOCALBASE ?= /usr/local
+ DEBUG = NO
+ OS = $(shell uname -s)
+@@ -24,15 +21,6 @@ override LIBDIRS = $(X11BASE)/
+ override SHELL = /bin/sh
+
+ #
+-# NetBSD stuff
+-#
+-ifeq ($(OS),NetBSD)
+- override INC += -I/usr/pkg/include
+- override LIBDIRS += /usr/pkg/lib
+- override LD_INC += -lossaudio -lz
+-endif
+-
+-#
+ # OpenBSD stuff
+ #
+ ifeq ($(OS),OpenBSD)
+@@ -50,19 +38,22 @@ endif
+ ifeq ($(OS),NetBSD)
+ override RPATH_FLAG = -R
+ endif
++ifeq ($(OS),DragonFly)
++ override RPATH_FLAG = -R
++endif
+
+-override LD_INC = $(foreach dir,$(LIBDIRS),-Wl,-L,$(dir))
++override LD_INC = $(foreach dir,$(LIBDIRS),-Wl,-L$(dir))
+ ifneq ($(RPATH_FLAG),)
+- override LD_INC += $(foreach dir,$(LIBDIRS),-Wl,$(RPATH_FLAG),$(dir))
++ override LD_INC += $(foreach dir,$(LIBDIRS),-Wl,$(RPATH_FLAG)$(dir))
+ endif
+
+ #
+ # CFLAGS
+ #
+ ifneq ($(DEBUG),NO)
+- override CFLAGS = -DDEBUG -g
++ override CFLAGS += -DDEBUG -g
+ else
+- override CFLAGS = -DNDEBUG -O2
++ override CFLAGS += -DNDEBUG
+ endif
+ C_WARN_FLAG = -Wall
+ override CFLAGS += $(C_WARN_FLAG) $(INC) $(CF_VERS)
+@@ -72,6 +63,15 @@ endif
+
+ override CFLAGS += $(C_WARN_FLAG) -DX11BASE=\"$(X11BASEINST)\"
+
++#
++# NetBSD stuff
++#
++ifeq ($(OS),NetBSD)
++ override INC += -I$(LOCALBASE)/include
++ override LIBDIRS += $(LOCALBASE)/lib
++ override LD_INC += $(LIBOSSAUDIO) -lz
++endif
++
+ ifeq ($(OS), linux)
+ override CFLAGS = $(CFLAGS) -DOLD_TUNER_IFACE
+ endif
+@@ -79,9 +79,9 @@ endif
+ #
+ # LDFLAGS,LIBS
+ #
+-override LDFLAGS = $(LD_INC)
++override LDFLAGS += $(LD_INC)
+ override VIDEOLIB_LIB = $(VIDEOLIB_DIR)/libvideo.a
+-override LIBS = -ltiff -ljpeg -lXaw3d -lXmu -lXt -lXpm \
++override LIBS = -lpng -ltiff -ljpeg -lXaw -lXmu -lXt -lXpm \
+ -lSM -lICE -lXext -lX11 -lm
+ ifeq ($(HAVE_XFREE86),YES)
+ override LIBS += -lXxf86dga -lXxf86vm
+@@ -116,15 +116,15 @@ $(VIDEOLIB_LIB) :
+ tv.o : tv.c app_rsrc.h
+
+ install : fxtv
+- mkdir -p $(FXTV_LIBDIR)/bitmaps
+- install -c -m 444 -o root $(PIXMAPS) $(FXTV_LIBDIR)/bitmaps
+- install -c -m 444 -o root README $(FXTV_LIBDIR)
+- mkdir -p $(X11BASEINST)/lib/X11/app-defaults
+- install -c -m 444 -o root Fxtv $(X11BASEINST)/lib/X11/app-defaults
+- mkdir -p $(X11BASEINST)/bin
+- install -c -m 444 -o root fxtv.1 $(X11BASEINST)/man/man1/fxtv.1
+- install -c -m 555 -o root fxtv $(X11BASEINST)/bin
+- install -c -m 555 -o root fxtv_cnvt.sh $(FXTV_LIBDIR)
++ mkdir -p ${DESTDIR}$(FXTV_LIBDIR)/bitmaps
++ ${BSD_INSTALL_DATA} $(PIXMAPS) ${DESTDIR}$(FXTV_LIBDIR)/bitmaps
++ ${BSD_INSTALL_DATA} README ${DESTDIR}$(FXTV_LIBDIR)
++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(X11BASEINST)/lib/X11/app-defaults
++ ${BSD_INSTALL_DATA} Fxtv ${DESTDIR}$(X11BASEINST)/lib/X11/app-defaults
++ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}$(X11BASEINST)/bin
++ ${BSD_INSTALL_MAN} fxtv.1 ${DESTDIR}$(X11BASEINST)/$(PKGMANDIR)/man1/fxtv.1
++ ${BSD_INSTALL_PROGRAM} fxtv ${DESTDIR}$(X11BASEINST)/bin
++ ${BSD_INSTALL_SCRIPT} fxtv_cnvt.sh ${DESTDIR}$(FXTV_LIBDIR)
+
+ clean:
+ rm -f *.o fxtv *.core *~
diff -r 20397a86f438 -r 988fb834c5d3 multimedia/fxtv/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/fxtv/patches/patch-ab Sun Apr 24 10:57:28 2022 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.5 2022/04/24 10:57:28 tnn Exp $
+
+Needs sys/ioctl.h.
+Dragonfly support.
+
+--- pixelview_remote.c.orig 2000-05-21 15:10:09.000000000 +0000
++++ pixelview_remote.c
+@@ -32,6 +32,7 @@
+ *
+ */
+
++#include <sys/ioctl.h>
+ #include <string.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+@@ -39,6 +40,9 @@
+ #include <sys/fcntl.h>
+ #ifdef __NetBSD__
+ # include <dev/ic/bt8xx.h>
++#elif defined(__DragonFly__)
++# include <dev/video/meteor/ioctl_meteor.h>
++# include <dev/video/bktr/ioctl_bt848.h>
+ #else
+ # include <machine/ioctl_meteor.h>
+ # include <machine/ioctl_bt848.h>
diff -r 20397a86f438 -r 988fb834c5d3 multimedia/fxtv/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/fxtv/patches/patch-ac Sun Apr 24 10:57:28 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.3 2022/04/24 10:57:28 tnn Exp $
+
+--- tvaudio.c.orig Mon Feb 12 15:56:29 2001
++++ tvaudio.c
+@@ -107,7 +107,11 @@
+ #ifdef SOUND_MIXER_VIDEO
+ else if ( STREQ( buf, "VIDEO" ) ) {
+ Mixer_dev_id = SOUND_MIXER_VIDEO;
++#ifndef SOUND_MASK_VIDEO
++ Mixer_dev_mask = 1 << SOUND_MIXER_VIDEO;
++#else
+ Mixer_dev_mask = SOUND_MASK_VIDEO;
++#endif
+ Mixer_dev_name = "VIDEO";
Home |
Main Index |
Thread Index |
Old Index