pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38574: multimedia/vlc DTS audio codec support



>Number:         38574
>Category:       pkg
>Synopsis:       multimedia/vlc DTS audio codec support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat May 03 23:05:01 +0000 2008
>Originator:     Sergey Svishchev
>Release:        4.0
>Organization:
>Environment:
>Description:
At the moment, DTS support is explicitly disabled; this patch adds option 
'dts'.  It depends on libdca 0.0.5, see PR/38167.
>How-To-Repeat:

>Fix:
Index: multimedia/vlc/Makefile
===================================================================
RCS file: /vol/2/cvsup/pkgsrc/multimedia/vlc/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- multimedia/vlc/Makefile     20 Apr 2008 15:31:02 -0000      1.52
+++ multimedia/vlc/Makefile     3 May 2008 22:14:00 -0000
@@ -3,6 +3,7 @@
 
 DISTNAME=              vlc-${VLC_VER}
 VLC_VER=               0.8.6f
+PKGREVISION=           1
 CATEGORIES=            multimedia
 MASTER_SITES=          
http://download.videolan.org/pub/videolan/vlc/${VLC_VER}/
 EXTRACT_SUFX=          .tar.bz2
@@ -37,7 +38,6 @@
 CONFIGURE_ARGS+=       --with-ffmpeg-zlib
 CONFIGURE_ARGS+=       --disable-smb
 CONFIGURE_ARGS+=       --disable-mpc
-CONFIGURE_ARGS+=       --disable-dts
 CONFIGURE_ARGS+=       --enable-cddax
 CONFIGURE_ARGS+=       --enable-dvdread
 CONFIGURE_ARGS+=       --enable-flac
@@ -82,6 +82,12 @@
 SUBST_FILES.fnt=       modules/misc/freetype.c
 SUBST_MESSAGE.fnt=     Fixing hardcoded paths.
 
+SUBST_CLASSES+=         dts
+SUBST_STAGE.fnt=       post-patch
+SUBST_SED.fnt=         -e "s,dts_free,dca_free,"
+SUBST_FILES.fnt=       configure
+SUBST_MESSAGE.fnt=     Fixing libdca check.
+
 PLIST_VARS+=           cdda vcd
 .if ${OPSYS} != "NetBSD"
 PLIST.cdda=            yes
Index: multimedia/vlc/PLIST
===================================================================
RCS file: /vol/2/cvsup/pkgsrc/multimedia/vlc/PLIST,v
retrieving revision 1.12
diff -u -r1.12 PLIST
--- multimedia/vlc/PLIST        12 Apr 2008 22:43:08 -0000      1.12
+++ multimedia/vlc/PLIST        3 May 2008 11:36:36 -0000
@@ -137,6 +137,7 @@
 lib/vlc/demux/libxa_plugin.so
 ${PLIST.skins}lib/vlc/gui/libskins2_plugin.so
 ${PLIST.wxwidgets}lib/vlc/gui/libwxwidgets_plugin.so
+${PLIST.dts}lib/vlc/libdtstofloat32.a
 lib/vlc/libffmpeg.a
 lib/vlc/libi420_rgb_mmx.a
 lib/vlc/libi420_ymga_mmx.a
Index: multimedia/vlc/options.mk
===================================================================
RCS file: /vol/2/cvsup/pkgsrc/multimedia/vlc/options.mk,v
retrieving revision 1.6
diff -u -r1.6 options.mk
--- multimedia/vlc/options.mk   12 Apr 2008 22:43:08 -0000      1.6
+++ multimedia/vlc/options.mk   3 May 2008 11:37:16 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.6 2008/04/12 22:43:08 jlam Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.vlc
-PKG_SUPPORTED_OPTIONS=         skins wxwidgets faad arts
+PKG_SUPPORTED_OPTIONS=         skins wxwidgets faad arts dts
 PKG_SUGGESTED_OPTIONS=         wxwidgets faad
 
 .include "../../mk/bsd.options.mk"
@@ -38,3 +38,12 @@
 .else
 CONFIGURE_ARGS+=       --disable-arts
 .endif
+
+.if !empty(PKG_OPTIONS:Mdts)
+CONFIGURE_ARGS+=       --enable-dts
+PLIST_VARS+=           dts
+PLIST.dts=             yes
+.include "../../audio/libdca/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-dts
+.endif



Home | Main Index | Thread Index | Old Index