[vlc-commits] contribs: add libdvbpsi

Rémi Denis-Courmont git at videolan.org
Wed Jun 29 18:14:01 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 29 12:10:45 2011 +0300| [1d14535e831200fab8cbc1d783b94079f10772d1] | committer: Rémi Denis-Courmont

contribs: add libdvbpsi

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d14535e831200fab8cbc1d783b94079f10772d1
---

 contrib/src/dvbpsi/SHA512SUMS              |    1 +
 contrib/src/dvbpsi/libdvbpsi-example.patch |   12 ++++++++++++
 contrib/src/dvbpsi/rules.mak               |   22 ++++++++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/contrib/src/dvbpsi/SHA512SUMS b/contrib/src/dvbpsi/SHA512SUMS
new file mode 100644
index 0000000..63d02c0
--- /dev/null
+++ b/contrib/src/dvbpsi/SHA512SUMS
@@ -0,0 +1 @@
+c04f38631a3b9d5ff394afd51bf3370c46a8ffb31b37184784cf45c7f3dfa128a2bb8f114480068c16d03e8cd685739e5ab87eeb5c08c56b80f1483021b2c2d5  libdvbpsi-0.2.0.tar.bz2
diff --git a/contrib/src/dvbpsi/libdvbpsi-example.patch b/contrib/src/dvbpsi/libdvbpsi-example.patch
new file mode 100644
index 0000000..1b884d0
--- /dev/null
+++ b/contrib/src/dvbpsi/libdvbpsi-example.patch
@@ -0,0 +1,12 @@
+--- libdvbpsi/examples/decode_mpeg.c	2010-02-12 11:17:47.000000000 +0100
++++ libdvbpsi.new/examples/decode_mpeg.c	2011-04-29 02:21:40.758841339 +0200
+@@ -529,8 +529,8 @@
+ 
+     int i_fd = -1;
+     int i_mtu = 1316; /* (7 * 188) = 1316 < 1500 network MTU */
+-#ifdef HAVE_SYS_SOCKET_H
+     int i_report = REPORT_UDP; /* REPORT_PCR REPORT_UDP */
++#ifdef HAVE_SYS_SOCKET_H
+     int i_port = 0;
+     char *ipaddress = NULL;
+ #endif
diff --git a/contrib/src/dvbpsi/rules.mak b/contrib/src/dvbpsi/rules.mak
new file mode 100644
index 0000000..0463ef4
--- /dev/null
+++ b/contrib/src/dvbpsi/rules.mak
@@ -0,0 +1,22 @@
+# dvbpsi
+
+DVBPSI_VERSION := 0.2.0
+DVBPSI_URL := $(VIDEOLAN)/libdvbpsi/$(DVBPSI_VERSION)/libdvbpsi-$(DVBPSI_VERSION).tar.bz2
+
+PKGS += dvbpsi
+
+$(TARBALLS)/libdvbpsi-$(DVBPSI_VERSION).tar.bz2:
+	$(call download,$(DVBPSI_URL))
+
+.sum-dvbpsi: libdvbpsi-$(DVBPSI_VERSION).tar.bz2
+
+libdvbpsi: libdvbpsi-$(DVBPSI_VERSION).tar.bz2 .sum-dvbpsi
+	$(UNPACK)
+	(cd $@-$(DVBPSI_VERSION) && patch -p1) < $(SRC)/dvbpsi/libdvbpsi-example.patch
+	mv $@-$(DVBPSI_VERSION) $@
+	touch $@
+
+.dvbpsi: libdvbpsi
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --enable-release
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list