diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2011-07-13 23:42:16 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2011-07-13 23:42:16 +0000 |
commit | 0c948350add123ff22ce49259b591d85b87247c7 (patch) | |
tree | ebe5224fac7fde083748303c88c843e3bd3b1ce9 /multimedia/dvb-apps/patches | |
parent | db0b7a3e0fd10c093a16001603459fd918eefbe9 (diff) | |
download | pkgsrc-0c948350add123ff22ce49259b591d85b87247c7.tar.gz |
Initial import of dvb-apps.
Digital Video Broadcasting (DVB) utilities for the initial setup, testing,
and operation of a DVB device
Diffstat (limited to 'multimedia/dvb-apps/patches')
8 files changed, 152 insertions, 0 deletions
diff --git a/multimedia/dvb-apps/patches/patch-util_scan_diseqc.c b/multimedia/dvb-apps/patches/patch-util_scan_diseqc.c new file mode 100644 index 00000000000..762392a9470 --- /dev/null +++ b/multimedia/dvb-apps/patches/patch-util_scan_diseqc.c @@ -0,0 +1,13 @@ +$NetBSD: patch-util_scan_diseqc.c,v 1.1.1.1 2011/07/13 23:42:16 jmcneill Exp $ + +--- util/scan/diseqc.c.orig 2011-06-28 05:50:24.000000000 +0000 ++++ util/scan/diseqc.c +@@ -1,4 +1,8 @@ ++#ifdef __NetBSD__ ++#include <dev/dtv/dtvio.h> ++#else + #include <linux/dvb/frontend.h> ++#endif + #include <sys/ioctl.h> + #include <time.h> + diff --git a/multimedia/dvb-apps/patches/patch-util_scan_diseqc.h b/multimedia/dvb-apps/patches/patch-util_scan_diseqc.h new file mode 100644 index 00000000000..d3c7711c640 --- /dev/null +++ b/multimedia/dvb-apps/patches/patch-util_scan_diseqc.h @@ -0,0 +1,16 @@ +$NetBSD: patch-util_scan_diseqc.h,v 1.1.1.1 2011/07/13 23:42:16 jmcneill Exp $ + +--- util/scan/diseqc.h.orig 2011-06-28 05:50:24.000000000 +0000 ++++ util/scan/diseqc.h +@@ -2,7 +2,11 @@ + #define __DISEQC_H__ + + #include <stdint.h> ++#ifdef __NetBSD__ ++#include <dev/dtv/dtvio.h> ++#else + #include <linux/dvb/frontend.h> ++#endif + + + struct diseqc_cmd { diff --git a/multimedia/dvb-apps/patches/patch-util_scan_dump-vdr.c b/multimedia/dvb-apps/patches/patch-util_scan_dump-vdr.c new file mode 100644 index 00000000000..3d65e5259be --- /dev/null +++ b/multimedia/dvb-apps/patches/patch-util_scan_dump-vdr.c @@ -0,0 +1,15 @@ +$NetBSD: patch-util_scan_dump-vdr.c,v 1.1.1.1 2011/07/13 23:42:16 jmcneill Exp $ + +--- util/scan/dump-vdr.c.orig 2011-06-28 05:50:24.000000000 +0000 ++++ util/scan/dump-vdr.c +@@ -1,6 +1,10 @@ + #include <stdio.h> + #include "dump-vdr.h" ++#ifdef __NetBSD__ ++#include <dev/dtv/dtvio.h> ++#else + #include <linux/dvb/frontend.h> ++#endif + + + static const char *inv_name [] = { diff --git a/multimedia/dvb-apps/patches/patch-util_scan_dump-vdr.h b/multimedia/dvb-apps/patches/patch-util_scan_dump-vdr.h new file mode 100644 index 00000000000..71ac3a6c642 --- /dev/null +++ b/multimedia/dvb-apps/patches/patch-util_scan_dump-vdr.h @@ -0,0 +1,16 @@ +$NetBSD: patch-util_scan_dump-vdr.h,v 1.1.1.1 2011/07/13 23:42:16 jmcneill Exp $ + +--- util/scan/dump-vdr.h.orig 2011-06-28 05:50:24.000000000 +0000 ++++ util/scan/dump-vdr.h +@@ -2,7 +2,11 @@ + #define __DUMP_VDR_H__ + + #include <stdint.h> ++#ifdef __NetBSD__ ++#include <dev/dtv/dtvio.h> ++#else + #include <linux/dvb/frontend.h> ++#endif + + extern + void vdr_dump_dvb_parameters (FILE *f, fe_type_t type, diff --git a/multimedia/dvb-apps/patches/patch-util_scan_dump-zap.c b/multimedia/dvb-apps/patches/patch-util_scan_dump-zap.c new file mode 100644 index 00000000000..82811abe48b --- /dev/null +++ b/multimedia/dvb-apps/patches/patch-util_scan_dump-zap.c @@ -0,0 +1,14 @@ +$NetBSD: patch-util_scan_dump-zap.c,v 1.1.1.1 2011/07/13 23:42:16 jmcneill Exp $ + +--- util/scan/dump-zap.c.orig 2011-06-28 05:50:24.000000000 +0000 ++++ util/scan/dump-zap.c +@@ -1,5 +1,9 @@ + #include <stdio.h> ++#ifdef __NetBSD__ ++#include <dev/dtv/dtvio.h> ++#else + #include <linux/dvb/frontend.h> ++#endif + #include "dump-zap.h" + + static const char *inv_name [] = { diff --git a/multimedia/dvb-apps/patches/patch-util_scan_dump-zap.h b/multimedia/dvb-apps/patches/patch-util_scan_dump-zap.h new file mode 100644 index 00000000000..6392e409f21 --- /dev/null +++ b/multimedia/dvb-apps/patches/patch-util_scan_dump-zap.h @@ -0,0 +1,16 @@ +$NetBSD: patch-util_scan_dump-zap.h,v 1.1.1.1 2011/07/13 23:42:16 jmcneill Exp $ + +--- util/scan/dump-zap.h.orig 2011-06-28 05:50:24.000000000 +0000 ++++ util/scan/dump-zap.h +@@ -2,7 +2,11 @@ + #define __DUMP_ZAP_H__ + + #include <stdint.h> ++#ifdef __NetBSD__ ++#include <dev/dtv/dtvio.h> ++#else + #include <linux/dvb/frontend.h> ++#endif + + extern void zap_dump_dvb_parameters (FILE *f, fe_type_t type, + struct dvb_frontend_parameters *t, char polarity, int sat); diff --git a/multimedia/dvb-apps/patches/patch-util_scan_lnb.c b/multimedia/dvb-apps/patches/patch-util_scan_lnb.c new file mode 100644 index 00000000000..661a833d61e --- /dev/null +++ b/multimedia/dvb-apps/patches/patch-util_scan_lnb.c @@ -0,0 +1,16 @@ +$NetBSD: patch-util_scan_lnb.c,v 1.1.1.1 2011/07/13 23:42:16 jmcneill Exp $ + +--- util/scan/lnb.c.orig 2011-06-28 05:50:24.000000000 +0000 ++++ util/scan/lnb.c +@@ -1,7 +1,11 @@ + #include <stdlib.h> + #include <string.h> + #include <ctype.h> ++#ifdef __linux__ + #include <linux/types.h> ++#else ++#include <sys/types.h> ++#endif + #include "lnb.h" + + static char *univ_desc[] = { diff --git a/multimedia/dvb-apps/patches/patch-util_scan_scan.c b/multimedia/dvb-apps/patches/patch-util_scan_scan.c new file mode 100644 index 00000000000..736e560f729 --- /dev/null +++ b/multimedia/dvb-apps/patches/patch-util_scan_scan.c @@ -0,0 +1,46 @@ +$NetBSD: patch-util_scan_scan.c,v 1.1.1.1 2011/07/13 23:42:16 jmcneill Exp $ + +--- util/scan/scan.c.orig 2011-06-28 05:50:24.000000000 +0000 ++++ util/scan/scan.c +@@ -36,8 +36,12 @@ + #include <iconv.h> + #include <langinfo.h> + ++#ifdef __NetBSD__ ++#include <dev/dtv/dtvio.h> ++#else + #include <linux/dvb/frontend.h> + #include <linux/dvb/dmx.h> ++#endif + + #include "list.h" + #include "diseqc.h" +@@ -71,7 +75,11 @@ static int unique_anon_services; + + char *default_charset = "ISO-6937"; + char *output_charset; ++#ifdef __NetBSD__ ++#define CS_OPTIONS "" ++#else + #define CS_OPTIONS "//TRANSLIT" ++#endif + + static enum fe_spectral_inversion spectral_inversion = INVERSION_AUTO; + +@@ -1455,7 +1463,7 @@ static void parse_psip_vct (const unsign + if (s->service_name) + free(s->service_name); + +- s->service_name = malloc(7*sizeof(unsigned char)); ++ s->service_name = malloc(8*sizeof(unsigned char)); + /* TODO find a better solution to convert UTF-16 */ + s->service_name[0] = ch.short_name0; + s->service_name[1] = ch.short_name1; +@@ -1464,6 +1472,7 @@ static void parse_psip_vct (const unsign + s->service_name[4] = ch.short_name4; + s->service_name[5] = ch.short_name5; + s->service_name[6] = ch.short_name6; ++ s->service_name[7] = '\0'; + + parse_psip_descriptors(s,&b[32],ch.descriptors_length); + |