From 597ac5d0c7e986f9d7701930b28956184701ba63 Mon Sep 17 00:00:00 2001 From: nox Date: Sun, 23 May 2010 18:59:54 +0000 Subject: [From the README:] this is a small channel scan tool for vdr which generates ATSC, DVB-C, DVB-S/S2 and DVB-T channels.conf files. It's 50% "scan" from linuxtv-dvb-apps-1.1.0, the differences are: - no initial tuning data needed, because scanning without this data is exactly what a scan tool like this should do - it detects automatically which DVB/ATSC card to use. WWW: http://wirbel.htpc-forum.de/w_scan/index_en.html --- multimedia/w_scan/Makefile | 36 +++++++++++++++++++++++++++++++ multimedia/w_scan/distinfo | 3 +++ multimedia/w_scan/files/patch-Makefile.in | 11 ++++++++++ multimedia/w_scan/files/patch-scan.c | 11 ++++++++++ multimedia/w_scan/files/types.sed | 5 +++++ multimedia/w_scan/pkg-descr | 11 ++++++++++ 6 files changed, 77 insertions(+) create mode 100644 multimedia/w_scan/Makefile create mode 100644 multimedia/w_scan/distinfo create mode 100644 multimedia/w_scan/files/patch-Makefile.in create mode 100644 multimedia/w_scan/files/patch-scan.c create mode 100644 multimedia/w_scan/files/types.sed create mode 100644 multimedia/w_scan/pkg-descr (limited to 'multimedia/w_scan') diff --git a/multimedia/w_scan/Makefile b/multimedia/w_scan/Makefile new file mode 100644 index 000000000000..496705a199ce --- /dev/null +++ b/multimedia/w_scan/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: w_scan +# Date created: Wed Apr 14 18:11:42 CEST 2010 +# Whom: Juergen Lock +# +# $FreeBSD$ +# + +PORTNAME= w_scan +PORTVERSION= 20100316 +CATEGORIES= multimedia +MASTER_SITES= http://wirbel.htpc-forum.de/w_scan/ + +MAINTAINER= nox@FreeBSD.org +COMMENT= Perform frequency scans for DVB and ATSC transmissions + +BUILD_DEPENDS= ${LOCALBASE}/include/linux/dvb/frontend.h:${PORTSDIR}/multimedia/v4l_compat + +USE_BZIP2= yes +GNU_CONFIGURE= yes +PATCH_STRIP= -p1 +CFLAGS+= -I"${LOCALBASE}/include" +PORTDOCS= COPYING ChangeLog README +PLIST_FILES= bin/${PORTNAME} +MAN1= w_scan.1 +MAKE_JOBS_SAFE= yes + +post-patch: + ${REINPLACE_CMD} -f ${FILESDIR}/types.sed ${WRKSRC}/configure ${WRKSRC}/*.c ${WRKSRC}/*.h + +.if !defined(NOPORTDOCS) +post-install: + ${MKDIR} ${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) +.endif + +.include diff --git a/multimedia/w_scan/distinfo b/multimedia/w_scan/distinfo new file mode 100644 index 000000000000..90c400e4abb4 --- /dev/null +++ b/multimedia/w_scan/distinfo @@ -0,0 +1,3 @@ +MD5 (w_scan-20100316.tar.bz2) = 82b87d182156e838830878643ecfc171 +SHA256 (w_scan-20100316.tar.bz2) = 843123a81c81a25481f2c0c235ea98f0caaa53a130dd51c3f501816d69e549ad +SIZE (w_scan-20100316.tar.bz2) = 438008 diff --git a/multimedia/w_scan/files/patch-Makefile.in b/multimedia/w_scan/files/patch-Makefile.in new file mode 100644 index 000000000000..e1510d492f13 --- /dev/null +++ b/multimedia/w_scan/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -208,7 +208,7 @@ __VERSION = $(shell date +%Y%m%d) + __OLDVER = $(shell cat configure.in | grep AC_INIT | sed -e "s|\[|\\\[|g" -e "s|\]|\\\]|g") + AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip + w_scan_SOURCES = atsc_psip_section.c atsc_psip_section.h config.h countries.c countries.h descriptors.c descriptors.h diseqc.c diseqc.h dump-dvbscan.c dump-dvbscan.h dump-kaffeine.c dump-kaffeine.h dump-vdr.c dump-vdr.h dump-xine.c dump-xine.h dvbscan.c dvbscan.h extended_frontend.h list.h lnb.c lnb.h parse-dvbscan.c parse-dvbscan.h satellites.c satellites.h scan.c scan.h section.c section.h version.h +-bin_SCRIPTS = w_scan_start.sh ++#bin_SCRIPTS = w_scan_start.sh + dist_man_MANS = doc/w_scan.1 + EXTRA_DIST = doc pci.classes pci.ids usb.classes usb.ids w_scan w_scan_start.sh + all: config.h diff --git a/multimedia/w_scan/files/patch-scan.c b/multimedia/w_scan/files/patch-scan.c new file mode 100644 index 000000000000..cff67e163c74 --- /dev/null +++ b/multimedia/w_scan/files/patch-scan.c @@ -0,0 +1,11 @@ +--- a/scan.c ++++ b/scan.c +@@ -1640,6 +1640,8 @@ static int set_frontend(int frontend_fd, + case 0x0302: + verbose("%s: using DVB API 3.2\n", __FUNCTION__); + copy_fe_params_new_to_old(&p, &t->param); ++ if (t->type == FE_QPSK) ++ p.frequency = intermediate_freq; + if (ioctl(frontend_fd, FE_SET_FRONTEND, &p) == -1) { + errorn("Setting frontend parameters failed (API v3.2)\n"); + return -1; diff --git a/multimedia/w_scan/files/types.sed b/multimedia/w_scan/files/types.sed new file mode 100644 index 000000000000..cd15e62621c0 --- /dev/null +++ b/multimedia/w_scan/files/types.sed @@ -0,0 +1,5 @@ +/^#include /i\ +#include +s/^#include /#include / +s/__u8/uint8_t/ +s/__u32/uint32_t/ diff --git a/multimedia/w_scan/pkg-descr b/multimedia/w_scan/pkg-descr new file mode 100644 index 000000000000..c8a2bfdab755 --- /dev/null +++ b/multimedia/w_scan/pkg-descr @@ -0,0 +1,11 @@ +[From the README:] + +this is a small channel scan tool for vdr which generates ATSC, DVB-C, +DVB-S/S2 and DVB-T channels.conf files. +It's 50% "scan" from linuxtv-dvb-apps-1.1.0, the differences are: + +- no initial tuning data needed, because scanning without this data is exactly + what a scan tool like this should do +- it detects automatically which DVB/ATSC card to use. + +WWW: http://wirbel.htpc-forum.de/w_scan/index_en.html -- cgit