SHA256
1
0
forked from pool/vlc

Accepting request 186597 from home:k0da:ppc

- Enable altivec for powerpc64 (ppc64_altivec)
  (backport cce2cdb0dd246fa9669378f5a3b967464c88bf20) 

- Package altivec plugins on powerpc

OBS-URL: https://build.opensuse.org/request/show/186597
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/vlc?expand=0&rev=32
This commit is contained in:
Dominique Leuenberger 2013-08-13 18:53:35 +00:00 committed by Git OBS Bridge
parent f4c376fafd
commit 548872ce39
3 changed files with 32 additions and 0 deletions

11
ppc64_altivec.patch Normal file
View File

@ -0,0 +1,11 @@
--- a/configure.ac
+++ b/configure.ac
@@ -1371,7 +1371,7 @@ AM_CONDITIONAL(HAVE_NEON, [test "${ac_cv_arm_neon}" = "yes"])
AC_ARG_ENABLE(altivec,
[AS_HELP_STRING([--disable-altivec],
[disable AltiVec optimizations (default auto)])],, [
- AS_IF([test "${host_cpu}" = "powerpc"],
+ AS_CASE(["${host_cpu}"], [powerpc*],
[enable_altivec=yes], [enable_altivec=no])
])
have_altivec="no"

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Aug 9 14:20:19 UTC 2013 - dvaleev@suse.com
- Enable altivec for powerpc64 (ppc64_altivec)
(backport cce2cdb0dd246fa9669378f5a3b967464c88bf20)
-------------------------------------------------------------------
Fri Aug 9 11:30:54 UTC 2013 - dvaleev@suse.com
- Package altivec plugins on powerpc
-------------------------------------------------------------------
Sat Aug 3 13:09:04 UTC 2013 - dimstar@opensuse.org

View File

@ -38,6 +38,7 @@ Patch1: fix_font_path.patch
Patch3: 0001-no-return-in-non-void.patch
# PATCH-FIX-UPSTREAM vlc-avcodec-encoder-single-threaded.patch dimstar@opensuse.org -- Disable avcodec encoder multithreading for now, taken from git.
Patch4: vlc-avcodec-encoder-single-threaded.patch
Patch5: ppc64_altivec.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: aalib-devel
BuildRequires: alsa-devel
@ -254,6 +255,7 @@ date
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
rm -rf contrib
echo '********* ENDED PREP PHASE *********'
date
@ -270,6 +272,7 @@ export CXXFLAGS="%{optflags} -L%{_libdir}/live"
%endif
#./bootstrap
autoreconf -fi
%configure \
--disable-dependency-tracking \
--enable-aa \
@ -437,6 +440,9 @@ rm -rf "$RPM_BUILD_ROOT"
%ifarch %{ix86} x86_64
%dir %{_libdir}/vlc/plugins/3dnow
%endif
%ifarch ppc ppc64
%dir %{_libdir}/vlc/plugins/altivec
%endif
%dir %{_libdir}/vlc/plugins/access
%dir %{_libdir}/vlc/plugins/access_output
%dir %{_libdir}/vlc/plugins/audio_filter
@ -523,6 +529,10 @@ rm -rf "$RPM_BUILD_ROOT"
%ifarch %{ix86} x86_64
%{_libdir}/vlc/plugins/3dnow/libmemcpy3dn_plugin.so
%endif
%ifarch ppc ppc64
%{_libdir}/vlc/plugins/altivec/libi420_yuy2_altivec_plugin.so
%{_libdir}/vlc/plugins/altivec/libmemcpyaltivec_plugin.so
%endif
%{_libdir}/vlc/plugins/access/libaccess_alsa_plugin.so
%{_libdir}/vlc/plugins/access/libaccess_attachment_plugin.so
%{_libdir}/vlc/plugins/access/libaccess_bd_plugin.so