# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # Makefile # distinfo # pkg-descr # files/ # files/patch-Makefile.in # files/patch-scan.c # files/types.sed # echo x - Makefile sed 's/^X//' >Makefile << 'b67911656ef5d18c4ae36cb6741b7965' X# New ports collection makefile for: w_scan X# Date created: Wed Apr 14 18:11:42 CEST 2010 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= w_scan XPORTVERSION= 20100316 XCATEGORIES= multimedia XMASTER_SITES= http://wirbel.htpc-forum.de/w_scan/ X XMAINTAINER= nox@FreeBSD.org XCOMMENT= Perform frequency scans for DVB and ATSC transmissions X XBUILD_DEPENDS= ${LOCALBASE}/include/linux/dvb/frontend.h:${PORTSDIR}/multimedia/v4l_compat X XUSE_BZIP2= yes XGNU_CONFIGURE= yes XPATCH_STRIP= -p1 XCFLAGS+= -I"${LOCALBASE}/include" XPORTDOCS= COPYING ChangeLog README XPLIST_FILES= bin/${PORTNAME} XMAN1= w_scan.1 XMAKE_JOBS_SAFE= yes X Xpost-patch: X ${REINPLACE_CMD} -f ${FILESDIR}/types.sed ${WRKSRC}/configure ${WRKSRC}/*.c ${WRKSRC}/*.h X X.if !defined(NOPORTDOCS) Xpost-install: X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include b67911656ef5d18c4ae36cb6741b7965 echo x - distinfo sed 's/^X//' >distinfo << '57677d168a5ec21bdf22c9501f075a8f' XMD5 (w_scan-20100316.tar.bz2) = 82b87d182156e838830878643ecfc171 XSHA256 (w_scan-20100316.tar.bz2) = 843123a81c81a25481f2c0c235ea98f0caaa53a130dd51c3f501816d69e549ad XSIZE (w_scan-20100316.tar.bz2) = 438008 57677d168a5ec21bdf22c9501f075a8f echo x - pkg-descr sed 's/^X//' >pkg-descr << '7f9555c3c1089940396b503dd37f3979' X[From the README:] X Xthis is a small channel scan tool for vdr which generates ATSC, DVB-C, XDVB-S/S2 and DVB-T channels.conf files. XIt's 50% "scan" from linuxtv-dvb-apps-1.1.0, the differences are: X X- no initial tuning data needed, because scanning without this data is exactly X what a scan tool like this should do X- it detects automatically which DVB/ATSC card to use. X XWWW: http://wirbel.htpc-forum.de/w_scan/index_en.html 7f9555c3c1089940396b503dd37f3979 echo c - files/ mkdir -p files/ > /dev/null 2>&1 echo x - files/patch-Makefile.in sed 's/^X//' >files/patch-Makefile.in << 'ab065d67ce912b03d89e661242d710a0' X--- a/Makefile.in X+++ b/Makefile.in X@@ -208,7 +208,7 @@ __VERSION = $(shell date +%Y%m%d) X __OLDVER = $(shell cat configure.in | grep AC_INIT | sed -e "s|\[|\\\[|g" -e "s|\]|\\\]|g") X AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip X 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 X-bin_SCRIPTS = w_scan_start.sh X+#bin_SCRIPTS = w_scan_start.sh X dist_man_MANS = doc/w_scan.1 X EXTRA_DIST = doc pci.classes pci.ids usb.classes usb.ids w_scan w_scan_start.sh X all: config.h ab065d67ce912b03d89e661242d710a0 echo x - files/patch-scan.c sed 's/^X//' >files/patch-scan.c << 'faa27c79384b58b75eff308235da2769' X--- a/scan.c X+++ b/scan.c X@@ -1640,6 +1640,8 @@ static int set_frontend(int frontend_fd, X case 0x0302: X verbose("%s: using DVB API 3.2\n", __FUNCTION__); X copy_fe_params_new_to_old(&p, &t->param); X+ if (t->type == FE_QPSK) X+ p.frequency = intermediate_freq; X if (ioctl(frontend_fd, FE_SET_FRONTEND, &p) == -1) { X errorn("Setting frontend parameters failed (API v3.2)\n"); X return -1; X@@ -2282,6 +2284,14 @@ int get_api_version(int frontend_fd, str X /* expected to fail with old drivers, X * therefore no warning to user. 20090324 -wk X */ X+#ifdef __FreeBSD__ X+ if (!(FE_GET_PROPERTY & IOC_IN)) { X+ fprintf(stderr, "Warning: cannot use ioctl FE_GET_PROPERTY because its defined wrong in\n" X+ " (needs to be _IOW not _IOR) - assuming DVB API 5.0\n"); X+ flags->api_version = 0x500; X+ return 0; X+ } else X+#endif X if (ioctl(frontend_fd, FE_GET_PROPERTY, &cmdseq)) X return -1; X faa27c79384b58b75eff308235da2769 echo x - files/types.sed sed 's/^X//' >files/types.sed << '73d86fc87bb4b5c8e3c8b183d4fa09c3' X/^#include /i\ X#include Xs/^#include /#include / Xs/__u8/uint8_t/ Xs/__u32/uint32_t/ 73d86fc87bb4b5c8e3c8b183d4fa09c3 exit