forked from pool/xine-lib
Accepting request 416413 from multimedia:xine
Fix Leap:42.2 build and allow build with ffmpeg OBS-URL: https://build.opensuse.org/request/show/416413 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xine-lib?expand=0&rev=64
This commit is contained in:
commit
551eecde5a
@ -55,10 +55,10 @@ pushd $tmp/$tarbase >/dev/null || exit 1
|
|||||||
#
|
#
|
||||||
# Cripple source
|
# Cripple source
|
||||||
#
|
#
|
||||||
|
# combined/ffmpeg
|
||||||
echo 1>&2 "Crippling..."
|
echo 1>&2 "Crippling..."
|
||||||
|
|
||||||
c_subdirs="dxr3 liba52 libdts libfaad libffmpeg libmad libmpeg2 libspucc libspudec libspudvb libw32dll input/vcd combined/ffmpeg"
|
c_subdirs="dxr3 liba52 libdts libfaad libffmpeg libmad libmpeg2 libspucc libspudec libspudvb libw32dll input/vcd"
|
||||||
c_demuxers="xineplug_dmx_asf.la asfheader.h asfheader.c demux_asf.c xineplug_dmx_mpeg.la demux_mpeg.c xineplug_dmx_mpeg_block.la demux_mpeg_block.c xineplug_dmx_mpeg_ts.la demux_ts.c xineplug_dmx_mpeg_elem.la demux_elem.c xineplug_dmx_mpeg_pes.la demux_mpeg_pes.c xineplug_dmx_yuv4mpeg2.la demux_yuv4mpeg2.c"
|
c_demuxers="xineplug_dmx_asf.la asfheader.h asfheader.c demux_asf.c xineplug_dmx_mpeg.la demux_mpeg.c xineplug_dmx_mpeg_block.la demux_mpeg_block.c xineplug_dmx_mpeg_ts.la demux_ts.c xineplug_dmx_mpeg_elem.la demux_elem.c xineplug_dmx_mpeg_pes.la demux_mpeg_pes.c xineplug_dmx_yuv4mpeg2.la demux_yuv4mpeg2.c"
|
||||||
c_input="xineplug_inp_mms.la input_mms.c mms.c mmsh.c ../demuxers/asfheader.c mms.h mmsh.h xineplug_inp_vcdo.la input_vcd.c vcd"
|
c_input="xineplug_inp_mms.la input_mms.c mms.c mmsh.c ../demuxers/asfheader.c mms.h mmsh.h xineplug_inp_vcdo.la input_vcd.c vcd"
|
||||||
c_libxineadec="xineplug_decode_gsm610.la xineplug_decode_nsf.la gsm610.c nsf.c gsm610 nosefart"
|
c_libxineadec="xineplug_decode_gsm610.la xineplug_decode_nsf.la gsm610.c nsf.c gsm610 nosefart"
|
||||||
@ -73,8 +73,8 @@ do_nukeentry src/input/Makefile.am "$c_input"
|
|||||||
do_remove src/input "$c_input"
|
do_remove src/input "$c_input"
|
||||||
do_nukeentry src/audio_dec/Makefile.am "$c_audiodec"
|
do_nukeentry src/audio_dec/Makefile.am "$c_audiodec"
|
||||||
do_remove src/audio_dec "$c_audiodec"
|
do_remove src/audio_dec "$c_audiodec"
|
||||||
do_nukeentry src/combined/Makefile.am "ffmpeg"
|
#do_nukeentry src/combined/Makefile.am "ffmpeg"
|
||||||
do_remove src/combined "ffmpeg"
|
#do_remove src/combined "ffmpeg"
|
||||||
do_nukeentry src/post/planar/Makefile.am "pp\.c \S*/libpostproc/libpostprocess\.la"
|
do_nukeentry src/post/planar/Makefile.am "pp\.c \S*/libpostproc/libpostprocess\.la"
|
||||||
do_nukeline src/post/planar/planar.c "pp_init_plugin pp_special_info"
|
do_nukeline src/post/planar/planar.c "pp_init_plugin pp_special_info"
|
||||||
do_remove src/post/planar "pp.c"
|
do_remove src/post/planar "pp.c"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:eac3308b13f68bfdadcf85af5e104450b84fb346d5af95e29fa35c8339ff422e
|
oid sha256:49e856b05f76d9f09bdb8434a59b197046d64cd4ce168079211946ff657d282a
|
||||||
size 4749220
|
size 4883872
|
||||||
|
44
xine-lib-crippled-ffmpeg3.0.patch
Normal file
44
xine-lib-crippled-ffmpeg3.0.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
Index: src/combined/ffmpeg/ff_audio_decoder.c
|
||||||
|
===================================================================
|
||||||
|
--- src/combined/ffmpeg/ff_audio_decoder.c.orig
|
||||||
|
+++ src/combined/ffmpeg/ff_audio_decoder.c
|
||||||
|
@@ -590,7 +590,7 @@ static int ff_audio_decode (ff_audio_dec
|
||||||
|
int got_frame;
|
||||||
|
float gain = this->class->gain;
|
||||||
|
if (!this->av_frame)
|
||||||
|
- this->av_frame = avcodec_alloc_frame ();
|
||||||
|
+ this->av_frame = av_frame_alloc ();
|
||||||
|
|
||||||
|
consumed = avcodec_decode_audio4 (this->context, this->av_frame, &got_frame, &avpkt);
|
||||||
|
if ((consumed >= 0) && got_frame) {
|
||||||
|
@@ -1071,7 +1071,7 @@ static void ff_audio_reset (audio_decode
|
||||||
|
/* try to reset the wma decoder */
|
||||||
|
if( this->decoder_ok ) {
|
||||||
|
#if AVAUDIO > 3
|
||||||
|
- avcodec_free_frame (&this->av_frame);
|
||||||
|
+ av_frame_free (&this->av_frame);
|
||||||
|
#endif
|
||||||
|
pthread_mutex_lock (&ffmpeg_lock);
|
||||||
|
avcodec_close (this->context);
|
||||||
|
@@ -1105,7 +1105,7 @@ static void ff_audio_dispose (audio_deco
|
||||||
|
|
||||||
|
if( this->context && this->decoder_ok ) {
|
||||||
|
#if AVAUDIO > 3
|
||||||
|
- avcodec_free_frame (&this->av_frame);
|
||||||
|
+ av_frame_free (&this->av_frame);
|
||||||
|
#endif
|
||||||
|
pthread_mutex_lock (&ffmpeg_lock);
|
||||||
|
avcodec_close (this->context);
|
||||||
|
Index: src/combined/ffmpeg/ff_video_decoder.c
|
||||||
|
===================================================================
|
||||||
|
--- src/combined/ffmpeg/ff_video_decoder.c.orig
|
||||||
|
+++ src/combined/ffmpeg/ff_video_decoder.c
|
||||||
|
@@ -2523,7 +2523,7 @@ static video_decoder_t *ff_video_open_pl
|
||||||
|
this->stream = stream;
|
||||||
|
this->class = (ff_video_class_t *) class_gen;
|
||||||
|
|
||||||
|
- this->av_frame = avcodec_alloc_frame();
|
||||||
|
+ this->av_frame = av_frame_alloc();
|
||||||
|
this->context = avcodec_alloc_context();
|
||||||
|
this->context->opaque = this;
|
||||||
|
#if AVPALETTE == 1
|
@ -1,7 +1,8 @@
|
|||||||
diff -uNr xine-lib-1.2.1.orig/m4/decoders.m4 xine-lib-1.2.1/m4/decoders.m4
|
Index: m4/decoders.m4
|
||||||
--- xine-lib-1.2.1.orig/m4/decoders.m4 2012-02-04 01:41:43.000000000 +0100
|
===================================================================
|
||||||
+++ xine-lib-1.2.1/m4/decoders.m4 2012-05-21 22:46:39.470861703 +0200
|
--- m4/decoders.m4.orig
|
||||||
@@ -85,9 +85,7 @@
|
+++ m4/decoders.m4
|
||||||
|
@@ -85,9 +85,7 @@ AC_DEFUN([XINE_DECODER_PLUGINS], [
|
||||||
AM_CONDITIONAL([WITH_EXTERNAL_FAAD], [test x"$have_external_faad" = x"yes"])
|
AM_CONDITIONAL([WITH_EXTERNAL_FAAD], [test x"$have_external_faad" = x"yes"])
|
||||||
|
|
||||||
dnl ffmpeg external version required
|
dnl ffmpeg external version required
|
||||||
@ -11,10 +12,11 @@ diff -uNr xine-lib-1.2.1.orig/m4/decoders.m4 xine-lib-1.2.1/m4/decoders.m4
|
|||||||
AC_DEFINE([HAVE_FFMPEG], 1, [Define this if you have ffmpeg library])
|
AC_DEFINE([HAVE_FFMPEG], 1, [Define this if you have ffmpeg library])
|
||||||
|
|
||||||
dnl Check presence of ffmpeg/avutil.h to see if it's old or new
|
dnl Check presence of ffmpeg/avutil.h to see if it's old or new
|
||||||
diff -uNr xine-lib-1.2.1.orig/src/audio_dec/Makefile.am xine-lib-1.2.1/src/audio_dec/Makefile.am
|
Index: src/audio_dec/Makefile.am
|
||||||
--- xine-lib-1.2.1.orig/src/audio_dec/Makefile.am 2012-02-04 01:41:43.000000000 +0100
|
===================================================================
|
||||||
+++ xine-lib-1.2.1/src/audio_dec/Makefile.am 2012-05-22 20:37:48.863941984 +0200
|
--- src/audio_dec/Makefile.am.orig
|
||||||
@@ -49,7 +49,6 @@
|
+++ src/audio_dec/Makefile.am
|
||||||
|
@@ -49,7 +49,6 @@ $(top_builddir)/contrib/gsm610/libgsm610
|
||||||
xineplug_LTLIBRARIES = \
|
xineplug_LTLIBRARIES = \
|
||||||
xineplug_decode_gsm610.la \
|
xineplug_decode_gsm610.la \
|
||||||
xineplug_decode_lpcm.la \
|
xineplug_decode_lpcm.la \
|
||||||
@ -22,7 +24,7 @@ diff -uNr xine-lib-1.2.1.orig/src/audio_dec/Makefile.am xine-lib-1.2.1/src/audio
|
|||||||
$(musepack_module) \
|
$(musepack_module) \
|
||||||
$(dts_module) \
|
$(dts_module) \
|
||||||
$(mad_module) \
|
$(mad_module) \
|
||||||
@@ -87,7 +86,3 @@
|
@@ -87,7 +86,3 @@ xineplug_decode_faad_la_SOURCES = xine_f
|
||||||
xineplug_decode_faad_la_DEPENDENCIES = $(FAAD_DEPS)
|
xineplug_decode_faad_la_DEPENDENCIES = $(FAAD_DEPS)
|
||||||
xineplug_decode_faad_la_LIBADD = $(XINE_LIB) $(LTLIBINTL) $(FAAD_LIBS) -lm
|
xineplug_decode_faad_la_LIBADD = $(XINE_LIB) $(LTLIBINTL) $(FAAD_LIBS) -lm
|
||||||
xineplug_decode_faad_la_CFLAGS = $(FAAD_CFLAGS)
|
xineplug_decode_faad_la_CFLAGS = $(FAAD_CFLAGS)
|
||||||
@ -30,3 +32,26 @@ diff -uNr xine-lib-1.2.1.orig/src/audio_dec/Makefile.am xine-lib-1.2.1/src/audio
|
|||||||
-xineplug_decode_dvaudio_la_SOURCES = ff_dvaudio_decoder.c
|
-xineplug_decode_dvaudio_la_SOURCES = ff_dvaudio_decoder.c
|
||||||
-xineplug_decode_dvaudio_la_LIBADD = $(XINE_LIB) $(LTLIBINTL)
|
-xineplug_decode_dvaudio_la_LIBADD = $(XINE_LIB) $(LTLIBINTL)
|
||||||
-xineplug_decode_dvaudio_la_CPPFLAGS = $(AM_CPPFLAGS) $(FFMPEG_CFLAGS)
|
-xineplug_decode_dvaudio_la_CPPFLAGS = $(AM_CPPFLAGS) $(FFMPEG_CFLAGS)
|
||||||
|
Index: src/combined/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- src/combined/Makefile.am.orig
|
||||||
|
+++ src/combined/Makefile.am
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
include $(top_srcdir)/misc/Makefile.quiet
|
||||||
|
-SUBDIRS = ffmpeg
|
||||||
|
+#SUBDIRS = ffmpeg
|
||||||
|
|
||||||
|
include $(top_builddir)/misc/Makefile.plugins
|
||||||
|
include $(top_srcdir)/misc/Makefile.common
|
||||||
|
Index: configure.ac
|
||||||
|
===================================================================
|
||||||
|
--- configure.ac.orig
|
||||||
|
+++ configure.ac
|
||||||
|
@@ -1285,7 +1285,6 @@ src/Makefile
|
||||||
|
src/audio_out/Makefile
|
||||||
|
src/audio_dec/Makefile
|
||||||
|
src/combined/Makefile
|
||||||
|
-src/combined/ffmpeg/Makefile
|
||||||
|
src/demuxers/Makefile
|
||||||
|
|
||||||
|
src/input/Makefile
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 1 12:58:27 UTC 2016 - davejplater@gmail.com
|
||||||
|
|
||||||
|
- Fixed build in Leap:42.2 by building with gcc5.
|
||||||
|
- Removed conditinals for old openSUSE versions from spec file.
|
||||||
|
- Modified pre checkin script to enable build with the ffmpeg libs
|
||||||
|
that are in the distribution.
|
||||||
|
- Added xine-lib-crippled-ffmpeg3.0.patch to enable leap and above
|
||||||
|
to build with ffmpeg3.
|
||||||
|
- Removed unused build flags.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jul 24 15:48:08 UTC 2016 - olaf@aepfle.de
|
Sun Jul 24 15:48:08 UTC 2016 - olaf@aepfle.de
|
||||||
|
|
||||||
|
125
xine-lib.spec
125
xine-lib.spec
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: xine-lib
|
Name: xine-lib
|
||||||
# %bcond_with = default off
|
# %%bcond_with = default off
|
||||||
# %bcond_without = default on
|
# %%bcond_without = default on
|
||||||
#
|
#
|
||||||
# --with distributable -> don't build libxine2-codecs
|
# --with distributable -> don't build libxine2-codecs
|
||||||
# --without distributable -> build libxine2-codecs
|
# --without distributable -> build libxine2-codecs
|
||||||
@ -27,6 +27,20 @@ Name: xine-lib
|
|||||||
%bcond_without distributable
|
%bcond_without distributable
|
||||||
%bcond_with onlynondistributable
|
%bcond_with onlynondistributable
|
||||||
%bcond_without pulseaudio
|
%bcond_without pulseaudio
|
||||||
|
%if 0%{?suse_version} == 1315
|
||||||
|
%bcond_without gcc5
|
||||||
|
%else
|
||||||
|
%bcond_with gcc5
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version} > 1320 || 0%{?is_opensuse} == 1
|
||||||
|
%bcond_without ffmpeg
|
||||||
|
%else
|
||||||
|
%if %{with distributable}
|
||||||
|
%bcond_with ffmpeg
|
||||||
|
%else
|
||||||
|
%bcond_without ffmpeg
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
%bcond_with sdl
|
%bcond_with sdl
|
||||||
%bcond_with aalib
|
%bcond_with aalib
|
||||||
%bcond_with esd
|
%bcond_with esd
|
||||||
@ -35,6 +49,9 @@ Name: xine-lib
|
|||||||
%bcond_with directfb
|
%bcond_with directfb
|
||||||
%bcond_without modplug
|
%bcond_without modplug
|
||||||
#
|
#
|
||||||
|
%if %{with gcc5}
|
||||||
|
BuildRequires: gcc5
|
||||||
|
%endif
|
||||||
BuildRequires: ImageMagick-devel
|
BuildRequires: ImageMagick-devel
|
||||||
BuildRequires: Mesa-devel
|
BuildRequires: Mesa-devel
|
||||||
BuildRequires: alsa-devel
|
BuildRequires: alsa-devel
|
||||||
@ -52,37 +69,30 @@ BuildRequires: libmpcdec-devel
|
|||||||
BuildRequires: libsmbclient-devel
|
BuildRequires: libsmbclient-devel
|
||||||
BuildRequires: libtheora-devel
|
BuildRequires: libtheora-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
BuildRequires: libv4l-devel >= 0.8.4
|
||||||
BuildRequires: libvorbis-devel
|
BuildRequires: libvorbis-devel
|
||||||
|
BuildRequires: lirc-devel
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: speex-devel
|
BuildRequires: speex-devel
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: vcdimager-devel
|
BuildRequires: vcdimager-devel
|
||||||
BuildRequires: xorg-x11-devel
|
BuildRequires: xorg-x11-devel
|
||||||
%if 0%{suse_version} >= 1210
|
%if %{with ffmpeg}
|
||||||
BuildRequires: libv4l-devel >= 0.8.4
|
BuildRequires: pkgconfig(libavcodec)
|
||||||
|
BuildRequires: pkgconfig(libavformat)
|
||||||
|
BuildRequires: pkgconfig(libavutil)
|
||||||
|
BuildRequires: pkgconfig(libbluray) >= 0.2.1
|
||||||
|
BuildRequires: pkgconfig(libpostproc)
|
||||||
%else
|
%else
|
||||||
%if 0%{suse_version} >= 1110
|
BuildRequires: libavutil-devel
|
||||||
BuildRequires: libv4l-devel
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%if 0%{suse_version} >= 1030
|
|
||||||
BuildRequires: lirc-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: lirc
|
|
||||||
%endif
|
%endif
|
||||||
%if !%{with distributable}
|
%if !%{with distributable}
|
||||||
BuildRequires: libfaad-devel
|
BuildRequires: libfaad-devel
|
||||||
BuildRequires: pkgconfig(libavcodec)
|
|
||||||
BuildRequires: pkgconfig(libavutil)
|
|
||||||
BuildRequires: pkgconfig(libbluray) >= 0.2.1
|
|
||||||
BuildRequires: pkgconfig(libdts)
|
BuildRequires: pkgconfig(libdts)
|
||||||
BuildRequires: pkgconfig(libpostproc)
|
|
||||||
BuildRequires: pkgconfig(libva)
|
BuildRequires: pkgconfig(libva)
|
||||||
BuildRequires: pkgconfig(libva-glx)
|
BuildRequires: pkgconfig(libva-glx)
|
||||||
BuildRequires: pkgconfig(mad)
|
BuildRequires: pkgconfig(mad)
|
||||||
BuildRequires: pkgconfig(vdpau)
|
BuildRequires: pkgconfig(vdpau)
|
||||||
%else
|
|
||||||
BuildRequires: libavutil-devel
|
|
||||||
%endif
|
%endif
|
||||||
%if %{with pulseaudio}
|
%if %{with pulseaudio}
|
||||||
BuildRequires: libpulse-devel
|
BuildRequires: libpulse-devel
|
||||||
@ -104,11 +114,7 @@ BuildRequires: gnome-vfs2-devel
|
|||||||
BuildRequires: libjack-devel
|
BuildRequires: libjack-devel
|
||||||
%endif
|
%endif
|
||||||
%if %{with directfb}
|
%if %{with directfb}
|
||||||
%if %suse_version >= 1020
|
|
||||||
BuildRequires: DirectFB-devel
|
BuildRequires: DirectFB-devel
|
||||||
%else
|
|
||||||
BuildRequires: DirectFB
|
|
||||||
%endif
|
|
||||||
%endif
|
%endif
|
||||||
%if %{with modplug}
|
%if %{with modplug}
|
||||||
BuildRequires: libmodplug-devel
|
BuildRequires: libmodplug-devel
|
||||||
@ -132,11 +138,13 @@ Source99: precheckin_cripple_tarball.sh
|
|||||||
|
|
||||||
Patch0: xine-lib-libdvdread_udf.diff
|
Patch0: xine-lib-libdvdread_udf.diff
|
||||||
Patch1: xine-lib-v4l-2.6.38.patch
|
Patch1: xine-lib-v4l-2.6.38.patch
|
||||||
|
# PATCH allow ffmpeg in openSUSE versions that have ffmpeg and still use the crippled tar ball to build with ffmpeg3.
|
||||||
|
Patch7: xine-lib-crippled-ffmpeg3.0.patch
|
||||||
Patch2: xine-lib-without-ffmpeg.patch
|
Patch2: xine-lib-without-ffmpeg.patch
|
||||||
|
Patch5: xine-lib-ffmpeg3.0.patch
|
||||||
Patch3: fix-non-x86-build.diff
|
Patch3: fix-non-x86-build.diff
|
||||||
# Add theora FOURCC to libxine I found an avi container that xine wouldn't play.
|
# Add theora FOURCC to libxine I found an avi container that xine wouldn't play.
|
||||||
Patch4: xine-lib-theora.patch
|
Patch4: xine-lib-theora.patch
|
||||||
Patch5: xine-lib-ffmpeg3.0.patch
|
|
||||||
# PATCH-FIX-UPSTREAM xine-lib-link-xcb.patch https://bugs.xine-project.org/show_bug.cgi?id=573 dimstar@opensuse.org -- Look for xcb, not xcb-shape
|
# PATCH-FIX-UPSTREAM xine-lib-link-xcb.patch https://bugs.xine-project.org/show_bug.cgi?id=573 dimstar@opensuse.org -- Look for xcb, not xcb-shape
|
||||||
Patch6: xine-lib-link-xcb.patch
|
Patch6: xine-lib-link-xcb.patch
|
||||||
|
|
||||||
@ -485,6 +493,7 @@ Autoren:
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
rm -rf contrib
|
||||||
%if %{with distributable} && %{with onlynondistributable}
|
%if %{with distributable} && %{with onlynondistributable}
|
||||||
%error need --without distributable for --with onlynondistributable
|
%error need --without distributable for --with onlynondistributable
|
||||||
%endif
|
%endif
|
||||||
@ -493,6 +502,8 @@ cat <<EOF
|
|||||||
Distributable version: %{with distributable}
|
Distributable version: %{with distributable}
|
||||||
%if !%{with distributable}
|
%if !%{with distributable}
|
||||||
Codecs package only: %{with onlynondistributable}
|
Codecs package only: %{with onlynondistributable}
|
||||||
|
%endif
|
||||||
|
%if %{with ffmpeg}
|
||||||
External ffmpeg: 1
|
External ffmpeg: 1
|
||||||
%endif
|
%endif
|
||||||
Pulseaudio: %{with pulseaudio}
|
Pulseaudio: %{with pulseaudio}
|
||||||
@ -507,46 +518,48 @@ modplug: %{with modplug}
|
|||||||
EOF
|
EOF
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%if 0%{suse_version} >= 1210
|
|
||||||
%patch1
|
%patch1
|
||||||
%endif
|
%if %{with distributable} && %{with ffmpeg}
|
||||||
%if %{with distributable}
|
%patch7
|
||||||
%patch2 -p1
|
|
||||||
%else
|
%else
|
||||||
%patch5 -p0
|
%if !%{with ffmpeg}
|
||||||
|
%patch2
|
||||||
|
rm -rf src/combined/ffmpeg configure
|
||||||
|
%else
|
||||||
|
%patch5
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%ifnarch %ix86 x86_64
|
%ifnarch %ix86 x86_64
|
||||||
%patch3
|
%patch3
|
||||||
%endif
|
%endif
|
||||||
%patch4
|
%patch4
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
|
|
||||||
rm -f m4/libtool15.m4
|
rm -f m4/libtool15.m4
|
||||||
sed -i -e 's|/tmp/vdr-xine|/var/lib/vdr-xine|g' src/vdr/input_vdr.c
|
sed -i -e 's|/tmp/vdr-xine|/var/lib/vdr-xine|g' src/vdr/input_vdr.c
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fno-force-addr `pkg-config --cflags smbclient`"
|
export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fno-force-addr `pkg-config --cflags smbclient`"
|
||||||
export CCASFLAGS=-Wa,--noexecstack
|
export CCASFLAGS=-Wa,--noexecstack
|
||||||
%if 0%{suse_version} < 1011
|
# Leap:42.2 won't build with gcc48
|
||||||
|
%if %{with gcc5}
|
||||||
|
export CC="gcc-5"
|
||||||
|
export CPP="cpp-5"
|
||||||
|
%endif
|
||||||
echo 'AC_DEFUN([AC_REQUIRE_AUX_FILE])dnl' >> acinclude.m4
|
echo 'AC_DEFUN([AC_REQUIRE_AUX_FILE])dnl' >> acinclude.m4
|
||||||
%endif
|
# # hack for sles10
|
||||||
%if 0%{?suse_version} < 1020
|
## rm m4/gettext.m4 m4/intl.m4
|
||||||
# hack for sles10
|
## sed -i -e '/AM_GNU_GETTEXT_VERSION/s/0\.16\.1/0.14/' configure.ac
|
||||||
rm m4/gettext.m4 m4/intl.m4
|
|
||||||
sed -i -e '/AM_GNU_GETTEXT_VERSION/s/0\.16\.1/0.14/' configure.ac
|
|
||||||
%endif
|
|
||||||
if [ ! -f configure ]; then
|
if [ ! -f configure ]; then
|
||||||
NO_CONFIGURE=1 ./autogen.sh
|
NO_CONFIGURE=1 ./autogen.sh
|
||||||
fi
|
fi
|
||||||
AUTOPOINT=true autoreconf -fi
|
AUTOPOINT=true autoreconf -fi
|
||||||
./configure --prefix=/usr \
|
%configure --prefix=/usr \
|
||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
%if 0%{suse_version} > 1010
|
--disable-rpath \
|
||||||
--docdir=%{_defaultdocdir}/xine \
|
--docdir=%{_defaultdocdir}/xine \
|
||||||
%else
|
|
||||||
docdir=%{_defaultdocdir}/xine \
|
|
||||||
%endif
|
|
||||||
--enable-fpic \
|
|
||||||
--enable-antialiasing \
|
--enable-antialiasing \
|
||||||
--with-libflac \
|
--with-libflac \
|
||||||
--with-freetype \
|
--with-freetype \
|
||||||
@ -556,11 +569,9 @@ AUTOPOINT=true autoreconf -fi
|
|||||||
%if !%{with sdl}
|
%if !%{with sdl}
|
||||||
--without-sdl \
|
--without-sdl \
|
||||||
%endif
|
%endif
|
||||||
%if !%{with distributable}
|
%if %{with distributable}
|
||||||
--with-external-ffmpeg \
|
|
||||||
--enable-bluray \
|
|
||||||
%else
|
|
||||||
--disable-faad \
|
--disable-faad \
|
||||||
|
--disable-mad \
|
||||||
--disable-a52dec \
|
--disable-a52dec \
|
||||||
--disable-vdpau \
|
--disable-vdpau \
|
||||||
--disable-dxr3 \
|
--disable-dxr3 \
|
||||||
@ -568,23 +579,16 @@ AUTOPOINT=true autoreconf -fi
|
|||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
--with-w32-path=/usr/lib/win32 \
|
--with-w32-path=/usr/lib/win32 \
|
||||||
%endif
|
%endif
|
||||||
--with-install-plugins-helper=${_prefix}/lib/opensuse-codecs-installer
|
--with-pic
|
||||||
%if 0%{?suse_version} < 1110
|
# --with-install-plugins-helper=${_prefix}/lib/opensuse-codecs-installer
|
||||||
# wtf libtool shit. $echo is unset. I guess there is a way to fix
|
echo $CFLAGS
|
||||||
# this properly, please tell me!
|
make %{?jobs:-j%{jobs}} V=1
|
||||||
echo=echo \
|
|
||||||
%endif
|
|
||||||
make %{?jobs:-j%{jobs}}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?suse_version} < 1110
|
|
||||||
# same libtool problem here
|
|
||||||
echo=echo \
|
|
||||||
%endif
|
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
LIB="%{buildroot}%{_libdir}/xine/plugins/%{abiversion}"
|
LIB="%{buildroot}%{_libdir}/xine/plugins/%{abiversion}"
|
||||||
# install documentation
|
# install documentation
|
||||||
#install -m 0644 %{SOURCE1} COPYING AUTHORS %{buildroot}%{_defaultdocdir}/xine/
|
#install -m 0644 %%{SOURCE1} COPYING AUTHORS %%{buildroot}%%{_defaultdocdir}/xine/
|
||||||
# remove usless READMEs
|
# remove usless READMEs
|
||||||
rm %{buildroot}%{_defaultdocdir}/xine/README.{irix,solaris,WIN32}
|
rm %{buildroot}%{_defaultdocdir}/xine/README.{irix,solaris,WIN32}
|
||||||
# remove .la files, they are evil
|
# remove .la files, they are evil
|
||||||
@ -607,10 +611,8 @@ xineplug_vo_out_opengl
|
|||||||
xineplug_vo_out_opengl2
|
xineplug_vo_out_opengl2
|
||||||
xineplug_vo_out_xshm
|
xineplug_vo_out_xshm
|
||||||
xineplug_vo_out_xv
|
xineplug_vo_out_xv
|
||||||
%if 0%{suse_version} > 1020
|
|
||||||
xineplug_vo_out_xcbshm
|
xineplug_vo_out_xcbshm
|
||||||
xineplug_vo_out_xcbxv
|
xineplug_vo_out_xcbxv
|
||||||
%endif
|
|
||||||
xineplug_vo_out_raw
|
xineplug_vo_out_raw
|
||||||
%if !%{with distributable}
|
%if !%{with distributable}
|
||||||
xineplug_vo_out_vdpau
|
xineplug_vo_out_vdpau
|
||||||
@ -813,7 +815,7 @@ rm -rf %{buildroot}
|
|||||||
%dir /usr/share/xine-lib
|
%dir /usr/share/xine-lib
|
||||||
%{_libdir}/libxine.so.*
|
%{_libdir}/libxine.so.*
|
||||||
%doc %{_mandir}/man1/xine-list-*.gz
|
%doc %{_mandir}/man1/xine-list-*.gz
|
||||||
#%doc %{_mandir}/man5/xine.*
|
#%%doc %%{_mandir}/man5/xine.*
|
||||||
%{_defaultdocdir}/xine
|
%{_defaultdocdir}/xine
|
||||||
%dir %{_libdir}/xine/plugins/%{abiversion}/post
|
%dir %{_libdir}/xine/plugins/%{abiversion}/post
|
||||||
%{_libdir}/xine/plugins/%{abiversion}/mime.types
|
%{_libdir}/xine/plugins/%{abiversion}/mime.types
|
||||||
@ -877,7 +879,8 @@ rm -rf %{buildroot}
|
|||||||
/usr/share/aclocal/xine.m4
|
/usr/share/aclocal/xine.m4
|
||||||
/usr/include/xine
|
/usr/include/xine
|
||||||
/usr/include/xine.h
|
/usr/include/xine.h
|
||||||
%endif # onlynondistributable
|
%endif
|
||||||
|
# onlynondistributable
|
||||||
|
|
||||||
%if !%{with distributable}
|
%if !%{with distributable}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user