summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-12 15:17:25 +0100
committerErich Eckner <git@eckner.net>2018-01-12 15:17:25 +0100
commitedb499b997bd71efade8d290b2c2a20b21666a0c (patch)
treec66d6a78afeddd7a0341e809fc4643bbbd742e2d
parent3c5a084106fc86598eedc69608f83590979e8bf4 (diff)
downloadpackages-edb499b997bd71efade8d290b2c2a20b21666a0c.tar.xz
extra/vlc: patches are not yet applied upstream - only in [staging]
-rw-r--r--extra/vlc/PKGBUILD18
-rw-r--r--extra/vlc/vlc-2.2.8-cpp11.patch11
-rw-r--r--extra/vlc/vlc-2.2.8-libupnp.patch16
3 files changed, 45 insertions, 0 deletions
diff --git a/extra/vlc/PKGBUILD b/extra/vlc/PKGBUILD
new file mode 100644
index 00000000..77eb6d88
--- /dev/null
+++ b/extra/vlc/PKGBUILD
@@ -0,0 +1,18 @@
+# gcc 7.2.1 enforces that some header files are actually compiled with -std=c++11,
+# the libupnp skim for older versions in vlc collides with the one supplied
+# by the library
+
+source+=('vlc-2.2.8-cpp11.patch'
+ 'vlc-2.2.8-libupnp.patch')
+sha512sums+=('0e186d64ffd0455e6ad1558ce509ce264eb03e2a0c7c2d7ef65e6aded4104a050d19c8f699c97cf31095198090f4e95bea4b4df1ae3a9075dc10e41e942c8993'
+ '5736e5fc5d33c7b6c5c5664d26efb3b65b2a14202fe7c3892711c0bad02fd823c92724cb42e6efecf38a0cc446280097b92d910fc84d45b49c2a87c183d64f5e')
+
+eval "$(
+ declare -f prepare | \
+ sed '
+ /^}$/ i \
+ patch -Np1 < "${srcdir}/vlc-2.2.8-cpp11.patch" \
+ ./bootstrap \
+ patch -Np1 < "${srcdir}/vlc-2.2.8-libupnp.patch"
+ '
+)"
diff --git a/extra/vlc/vlc-2.2.8-cpp11.patch b/extra/vlc/vlc-2.2.8-cpp11.patch
new file mode 100644
index 00000000..67d04fba
--- /dev/null
+++ b/extra/vlc/vlc-2.2.8-cpp11.patch
@@ -0,0 +1,11 @@
+diff -rauN vlc-2.2.8/configure.ac vlc-2.2.8-cpp11-patch/configure.ac
+--- vlc-2.2.8/configure.ac 2017-11-21 19:35:05.000000000 +0100
++++ vlc-2.2.8-cpp11-patch/configure.ac 2018-01-12 11:03:24.403333329 +0100
+@@ -66,6 +66,7 @@
+ AC_DEFINE([WIN32_LEAN_AND_MEAN],, [Define to limit the scope of <windows.h>.])
+
+ AM_PROG_CC_C_O
++CXXFLAGS="$CXXFLAGS -std=c++11"
+ AC_PROG_CXX
+ AC_PROG_CPP
+ AC_PROG_OBJC
diff --git a/extra/vlc/vlc-2.2.8-libupnp.patch b/extra/vlc/vlc-2.2.8-libupnp.patch
new file mode 100644
index 00000000..34a59551
--- /dev/null
+++ b/extra/vlc/vlc-2.2.8-libupnp.patch
@@ -0,0 +1,16 @@
+diff -rauN vlc-2.2.8/modules/services_discovery/upnp.cpp vlc-2.2.8-libupnp-patch/modules/services_discovery/upnp.cpp
+--- vlc-2.2.8/modules/services_discovery/upnp.cpp 2017-09-07 12:26:08.000000000 +0200
++++ vlc-2.2.8-libupnp-patch/modules/services_discovery/upnp.cpp 2018-01-12 11:06:51.349999981 +0100
+@@ -50,6 +50,12 @@
+ typedef Upnp_Event UpnpEvent;
+ typedef Upnp_Event_Subscribe UpnpEventSubscribe;
+
++#undef UpnpDiscovery_get_Location_cstr
++#undef UpnpDiscovery_get_DeviceID_cstr
++#undef UpnpActionComplete_get_ActionResult
++#undef UpnpEvent_get_SID_cstr
++#undef UpnpEventSubscribe_get_SID_cstr
++
+ static const char* UpnpDiscovery_get_Location_cstr( const UpnpDiscovery* p_discovery )
+ {
+ return p_discovery->Location;