- Reducing the external dependencies a bit by utilizing FFmpeg instead
of the reference decoders for AAC, AC3 and DTS. - A build fix for LLVM. ok sthen@
This commit is contained in:
parent
7197827415
commit
535928018f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.113 2014/06/02 22:26:10 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.114 2014/07/12 21:55:35 brad Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -9,7 +9,7 @@ CATEGORIES= multimedia
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xine/}
|
||||
EXTRACT_SUFX= .tar.xz
|
||||
|
||||
REVISION= 3
|
||||
REVISION= 4
|
||||
|
||||
SHARED_LIBS= xine 31.0
|
||||
|
||||
@ -21,22 +21,18 @@ MAINTAINER= Brad Smith <brad@comstyle.com>
|
||||
PERMIT_PACKAGE_CDROM= patents
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
WANTLIB= FLAC GL GLU ICE SDL SM X11 Xext Xinerama Xv XvMCW a52 avcodec \
|
||||
avformat avutil bluray c cdio dca dvdnav dvdread expat faad \
|
||||
fontconfig freetype iso9660 jpeg m mad modplug mpcdec mng ogg \
|
||||
postproc pthread pthread-stubs sndio speex theora usbhid vcdinfo \
|
||||
vorbis vpx>=5 wavpack xcb-shape xcb-shm xcb-xv xcb xdg-basedir \
|
||||
xml2 z
|
||||
WANTLIB= FLAC GL GLU ICE SDL SM X11 Xext Xinerama Xv XvMCW avcodec \
|
||||
avformat avutil bluray c cdio dvdnav dvdread expat fontconfig \
|
||||
freetype iso9660 jpeg m mad modplug mpcdec mng ogg postproc \
|
||||
pthread pthread-stubs sndio speex theora usbhid vcdinfo vorbis \
|
||||
vpx>=5 wavpack xcb-shape xcb-shm xcb-xv xcb xdg-basedir xml2 z
|
||||
|
||||
XINEAPI_REV= 2.4
|
||||
SUBST_VARS+= XINEAPI_REV
|
||||
|
||||
MODULES= devel/gettext
|
||||
LIB_DEPENDS= audio/faad \
|
||||
audio/flac \
|
||||
audio/liba52 \
|
||||
LIB_DEPENDS= audio/flac \
|
||||
audio/libcdio \
|
||||
audio/libdca \
|
||||
audio/libmad \
|
||||
audio/libmodplug \
|
||||
audio/libogg \
|
||||
@ -66,7 +62,10 @@ USE_LIBTOOL= gnu
|
||||
USE_GROFF= Yes
|
||||
CONFIGURE_STYLE= autoconf
|
||||
AUTOCONF_VERSION= 2.69
|
||||
CONFIGURE_ARGS+=--disable-aalib \
|
||||
CONFIGURE_ARGS+=--disable-a52dec \
|
||||
--disable-aalib \
|
||||
--disable-dts \
|
||||
--disable-faad \
|
||||
--disable-gdkpixbuf \
|
||||
--disable-gnomevfs \
|
||||
--disable-optimizations \
|
||||
|
@ -0,0 +1,26 @@
|
||||
$OpenBSD: patch-src_combined_ffmpeg_ff_audio_decoder_c,v 1.8 2014/07/12 21:55:35 brad Exp $
|
||||
|
||||
Enable parser for AC3, DTS, AAC.
|
||||
|
||||
--- src/combined/ffmpeg/ff_audio_decoder.c.orig Wed Feb 26 10:49:10 2014
|
||||
+++ src/combined/ffmpeg/ff_audio_decoder.c Thu Jun 12 05:12:13 2014
|
||||
@@ -196,14 +196,17 @@ static void ff_audio_init_codec(ff_audio_decoder_t *th
|
||||
this->context->codec_type = this->codec->type;
|
||||
this->context->codec_tag = _x_stream_info_get(this->stream, XINE_STREAM_INFO_AUDIO_FOURCC);
|
||||
|
||||
- /* Use parser for EAC3, AAC LATM and MPEG.
|
||||
+ /* Use parser for AC3, EAC3, DTS, AAC, AAC LATM and MPEG.
|
||||
* Fixes:
|
||||
* - DVB streams where multiple AAC LATM frames are packed to single PES
|
||||
* - DVB streams where MPEG audio frames do not follow PES packet boundaries
|
||||
*/
|
||||
#if AVPARSE > 1
|
||||
- if (codec_type == BUF_AUDIO_AAC_LATM ||
|
||||
+ if (codec_type == BUF_AUDIO_AAC ||
|
||||
+ codec_type == BUF_AUDIO_AAC_LATM ||
|
||||
+ codec_type == BUF_AUDIO_A52 ||
|
||||
codec_type == BUF_AUDIO_EAC3 ||
|
||||
+ codec_type == BUF_AUDIO_DTS ||
|
||||
codec_type == BUF_AUDIO_MPEG) {
|
||||
|
||||
xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG,
|
@ -1,14 +1,24 @@
|
||||
$OpenBSD: patch-src_combined_ffmpeg_xine_audio_list,v 1.1 2014/05/21 23:41:03 brad Exp $
|
||||
$OpenBSD: patch-src_combined_ffmpeg_xine_audio_list,v 1.2 2014/07/12 21:55:35 brad Exp $
|
||||
|
||||
Enable Opus decoder.
|
||||
Enable Opus, AC3 and DTS decoder.
|
||||
|
||||
--- src/combined/ffmpeg/xine_audio.list.orig Wed May 21 09:37:06 2014
|
||||
+++ src/combined/ffmpeg/xine_audio.list Wed May 21 09:37:32 2014
|
||||
@@ -46,6 +46,7 @@ AAC AAC MPEG4
|
||||
--- src/combined/ffmpeg/xine_audio.list.orig Wed Feb 26 10:49:10 2014
|
||||
+++ src/combined/ffmpeg/xine_audio.list Fri Jun 6 19:54:13 2014
|
||||
@@ -41,14 +41,16 @@ FLVADPCM ADPCM_SWF Flash ADPCM
|
||||
WAVPACK WAVPACK WavPack
|
||||
AMR_NB AMR_NB AMR narrow band
|
||||
AMR_WB AMR_WB AMR wide band
|
||||
+A52 AC3 AC-3
|
||||
EAC3 EAC3 E-AC-3
|
||||
AAC AAC MPEG4
|
||||
AAC_LATM AAC_LATM AAC LATM
|
||||
ADPCM_G726 ADPCM_G726 ADPCM G726
|
||||
QCLP QCELP QualComm Purevoice
|
||||
+OPUS OPUS Opus Audio
|
||||
+DTS DTS DTS
|
||||
|
||||
# disabled codecs (ref. configure.ac)
|
||||
! AC3
|
||||
-! AC3
|
||||
! ADPCM_ADX
|
||||
! ADPCM_G726
|
||||
! DSICINAUDIO
|
||||
|
23
multimedia/xine-lib/patches/patch-src_post_goom_mmx_h
Normal file
23
multimedia/xine-lib/patches/patch-src_post_goom_mmx_h
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-src_post_goom_mmx_h,v 1.1 2014/07/12 21:55:35 brad Exp $
|
||||
|
||||
Fix build with clang.
|
||||
|
||||
--- src/post/goom/mmx.h.orig Fri Jun 6 00:08:16 2014
|
||||
+++ src/post/goom/mmx.h Fri Jun 6 00:08:39 2014
|
||||
@@ -724,14 +724,12 @@ void zoom_filter_xmmx (int prevX, int prevY, Pixel *ex
|
||||
#define emms() \
|
||||
{ \
|
||||
printf("emms()\n"); \
|
||||
- __asm__ __volatile__ ("emms" \
|
||||
- "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)"); \
|
||||
+ __asm__ __volatile__ ("emms");
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
-#define emms() __asm__ __volatile__ ("emms"::: \
|
||||
- "st(1)","st(2)","st(3)","st(4)","st(5)","st(6)","st(7)")
|
||||
+#define emms() __asm__ __volatile__ ("emms")
|
||||
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.20 2014/05/21 23:41:03 brad Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.21 2014/07/12 21:55:35 brad Exp $
|
||||
@conflict xine-lib-arts-*
|
||||
@conflict xine-lib-esd-*
|
||||
@conflict xine-lib-jack-*
|
||||
@ -70,11 +70,8 @@ lib/xine/plugins/${XINEAPI_REV}/post/xineplug_post_visualizations.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_ao_out_file.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_ao_out_none.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_ao_out_sndio.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_decode_a52.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_decode_bitplane.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_decode_dts.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_decode_dvaudio.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_decode_faad.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_decode_ff.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_decode_gsm610.so
|
||||
lib/xine/plugins/${XINEAPI_REV}/xineplug_decode_libjpeg.so
|
||||
|
Loading…
Reference in New Issue
Block a user