aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2013-04-26 03:44:59 +0800
committernox <nox@FreeBSD.org>2013-04-26 03:44:59 +0800
commit0d8f9106fe0f962591517932cf5d3a128548ac26 (patch)
tree1622ed8d7a04921501ea23953542ec1bb641a442 /multimedia
parent7424ce8f133aa8be79f834eb7745add6819988ac (diff)
downloadfreebsd-ports-gnome-0d8f9106fe0f962591517932cf5d3a128548ac26.tar.gz
freebsd-ports-gnome-0d8f9106fe0f962591517932cf5d3a128548ac26.tar.zst
freebsd-ports-gnome-0d8f9106fe0f962591517932cf5d3a128548ac26.zip
- Update to 2.0.6 .
- Add SIDPLAY knob (C64 sid demux support)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/vlc/Makefile18
-rw-r--r--multimedia/vlc/distinfo4
-rw-r--r--multimedia/vlc/files/patch-clang107
3 files changed, 16 insertions, 113 deletions
diff --git a/multimedia/vlc/Makefile b/multimedia/vlc/Makefile
index e3557764c87f..e677a7585ef8 100644
--- a/multimedia/vlc/Makefile
+++ b/multimedia/vlc/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= vlc
-DISTVERSION= 2.0.5
-PORTREVISION= 3
+DISTVERSION= 2.0.6
PORTEPOCH= 3
CATEGORIES= multimedia audio ipv6 net www
MASTER_SITES= http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/p/-pre/}/ \
@@ -30,7 +29,7 @@ OPTIONS_DEFINE= A52 AALIB ASS AVAHI CACA DBUS DIRAC DOCS DTS DVDREAD \
SAMBA SCHROED SDL SHOUTCAST SKINS STREAM SPEEX SQLITE SVG \
TAGLIB THEORA TWOLAME UPNP V4L VAAPI VCD VORBIS \
X11 X264 XCB XOSD XVIDEO ZVBI SERVER_ONLY DEBUG \
- NO_DVD LIBBLURAY SAMPLERATE
+ NO_DVD LIBBLURAY SAMPLERATE SIDPLAY
OPTIONS_DEFAULT=A52 AVAHI DBUS DTS DVDREAD DVDNAV FAAD FLAC GLX GNUTLS \
HTTPD LUA MAD MATROSKA MPEG2 OGG OPUS PNG QT4 REALAUDIO \
SDL SKINS STREAM SPEEX TAGLIB THEORA TWOLAME V4L \
@@ -49,6 +48,7 @@ REALAUDIO_DESC= Real Audio(R) support
RUNROOT_DESC= Enable running as root
SAMBA_DESC= SAMBA Access module
SCHROED_DESC= Schroedinger decoder
+SIDPLAY_DESC= C64 sid demux support
SKINS_DESC= winamp skins interface
STREAM_DESC= stream output
TAGLIB_DESC= ID3 tag and Ogg comment support
@@ -66,6 +66,7 @@ USE_GMAKE= yes
USE_ICONV= yes
USE_PERL5_BUILD=yes
USE_GL=yes
+USE_CSTD= gnu99
MAKE_JOBS_SAFE= yes
WANT_GNOME= yes
@@ -493,6 +494,14 @@ CONFIGURE_ARGS+=--enable-schroedinger
CONFIGURE_ARGS+=--disable-schroedinger
.endif
+.if ${PORT_OPTIONS:MSIDPLAY}
+LIB_DEPENDS+= sidplay2:${PORTSDIR}/audio/libsidplay2
+LDFLAGS+= -L${LOCALBASE}/lib/sidplay/builders
+CONFIGURE_ARGS+=--enable-sid
+.else
+CONFIGURE_ARGS+=--disable-sid
+.endif
+
.if ${PORT_OPTIONS:MSDL} && ${PORT_OPTIONS:MXCB}
WANT_SDL= yes
USE_SDL= image
@@ -715,6 +724,7 @@ RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/bitstream-vera/Vera.ttf:${PORTSDIR}/x11
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
-e '\|LIBS|s|-lrt||' \
+ -e '/PKG_CONFIG.*lib.*</s|libavcodec <|libavcodec${FFMPEG_SUFFIX} <|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf|${WITH_VLC_DEFAULT_FONT}|' \
${WRKSRC}/modules/text_renderer/freetype.c
@@ -793,7 +803,7 @@ pre-install:
.if ${PORT_OPTIONS:MNLS}
cd ${FAKEDIR}/share/locale && ${FIND} -s * -type f -o -type l | \
${SED} -e 's|^|share/locale/|' >> ${PLIST}
-.for locale in ach cgg bn_IN ckb co ff fur gd ia kk km kmr lg my oc ps tet tl zu
+.for locale in ach an cgg bn_IN ckb co ff fur gd ia kk km kmr lg my oc ps tet tl zu
${ECHO_CMD} "@dirrmtry share/locale/${locale}/LC_MESSAGES" >> ${PLIST}
${ECHO_CMD} "@dirrmtry share/locale/${locale}" >> ${PLIST}
.endfor
diff --git a/multimedia/vlc/distinfo b/multimedia/vlc/distinfo
index 296dc94858c6..2d66cc7d9c07 100644
--- a/multimedia/vlc/distinfo
+++ b/multimedia/vlc/distinfo
@@ -1,2 +1,2 @@
-SHA256 (vlc-2.0.5.tar.xz) = dff9eb00861bcd9f8446ff5cedbd3c5fd2bed460e6bfa84bd9e01f750ed96b6e
-SIZE (vlc-2.0.5.tar.xz) = 18369292
+SHA256 (vlc-2.0.6.tar.xz) = 31cc98035e2ce36c71a8f105aa5a87e3d8b5e206a0b3f7208c5ced407cbe1963
+SIZE (vlc-2.0.6.tar.xz) = 18619836
diff --git a/multimedia/vlc/files/patch-clang b/multimedia/vlc/files/patch-clang
index 37e72ce85a19..f38022faeb83 100644
--- a/multimedia/vlc/files/patch-clang
+++ b/multimedia/vlc/files/patch-clang
@@ -1,110 +1,3 @@
-From d3685de9011e0484a0e6f11266ae0f0378aad5e6 Mon Sep 17 00:00:00 2001
-From: Brad Smith <brad@comstyle.com>
-Date: Mon, 14 Jan 2013 14:44:59 +0100
-Subject: [PATCH] Fix building with Clang/LLVM
-MIME-Version: 1.0
-Content-Type: text/plain; charset=utf8
-Content-Transfer-Encoding: 8bit
-
-The following diff provides some fixes for VLC to allow building
-with LLVM.
-
-Signed-off-by: Rafael Carre <funman@videolan.org>
----
- include/vlc_common.h | 4 ++--
- include/vlc_cpu.h | 4 ++--
- modules/video_filter/deinterlace/yadif.h | 6 +++---
- 3 files changed, 7 insertions(+), 7 deletions(-)
-
-diff --git include/vlc_common.h include/vlc_common.h
-index 015a4ba..8e87a96 100644
---- include/vlc_common.h
-+++ include/vlc_common.h
-@@ -661,7 +661,7 @@ static inline uint16_t bswap16 (uint16_t x)
- VLC_USED
- static inline uint32_t bswap32 (uint32_t x)
- {
--#if VLC_GCC_VERSION(4,3)
-+#if VLC_GCC_VERSION(4,3) || defined(__clang__)
- return __builtin_bswap32 (x);
- #else
- return ((x & 0x000000FF) << 24)
-@@ -675,7 +675,7 @@ static inline uint32_t bswap32 (uint32_t x)
- VLC_USED
- static inline uint64_t bswap64 (uint64_t x)
- {
--#if VLC_GCC_VERSION(4,3)
-+#if VLC_GCC_VERSION(4,3) || defined(__clang__)
- return __builtin_bswap64 (x);
- #elif !defined (__cplusplus)
- return ((x & 0x00000000000000FF) << 56)
-diff --git include/vlc_cpu.h include/vlc_cpu.h
-index 36f8da5..6c82004 100644
---- include/vlc_cpu.h
-+++ include/vlc_cpu.h
-@@ -40,7 +40,7 @@
-
- # if defined (__MMX__)
- # define VLC_MMX
--# elif VLC_GCC_VERSION(4, 4)
-+# elif VLC_GCC_VERSION(4, 4) || defined(__clang__)
- # define VLC_MMX __attribute__ ((__target__ ("mmx")))
- # else
- # define VLC_MMX VLC_MMX_is_not_implemented_on_this_compiler
-@@ -48,7 +48,7 @@
-
- # if defined (__SSE__)
- # define VLC_SSE
--# elif VLC_GCC_VERSION(4, 4)
-+# elif VLC_GCC_VERSION(4, 4) || defined(__clang__)
- # define VLC_SSE __attribute__ ((__target__ ("sse")))
- # else
- # define VLC_SSE VLC_SSE_is_not_implemented_on_this_compiler
-diff --git modules/video_filter/deinterlace/yadif.h modules/video_filter/deinterlace/yadif.h
-index a2fccac..233504e 100644
---- modules/video_filter/deinterlace/yadif.h
-+++ modules/video_filter/deinterlace/yadif.h
-@@ -39,7 +39,7 @@ DECLARE_ASM_CONST(16, const xmm_reg, pw_1) = {0x0001000100010001ULL, 0x000100010
-
-
- #ifdef CAN_COMPILE_SSSE3
--#if defined(__SSE__) || VLC_GCC_VERSION(4, 4)
-+#if defined(__SSE__) || VLC_GCC_VERSION(4, 4) || defined(__clang__)
- // ================ SSSE3 =================
- #define HAVE_YADIF_SSSE3
- #define COMPILE_TEMPLATE_SSE 1
-@@ -55,7 +55,7 @@ DECLARE_ASM_CONST(16, const xmm_reg, pw_1) = {0x0001000100010001ULL, 0x000100010
- #endif
-
- #ifdef CAN_COMPILE_SSE2
--#if defined(__SSE__) || VLC_GCC_VERSION(4, 4)
-+#if defined(__SSE__) || VLC_GCC_VERSION(4, 4) || defined(__clang__)
- // ================= SSE2 =================
- #define HAVE_YADIF_SSE2
- #define COMPILE_TEMPLATE_SSE 1
-@@ -69,7 +69,7 @@ DECLARE_ASM_CONST(16, const xmm_reg, pw_1) = {0x0001000100010001ULL, 0x000100010
- #endif
-
- #ifdef CAN_COMPILE_MMX
--#if defined(__MMX__) || VLC_GCC_VERSION(4, 4)
-+#if defined(__MMX__) || VLC_GCC_VERSION(4, 4) || defined(__clang__)
- // ================ MMX =================
- #define HAVE_YADIF_MMX
- #define VLC_TARGET VLC_MMX
---
-1.7.10.4
-
-From: Reinhard Tartler
-Subject: Fixes mkv playback with gcc-4.4 as found in debian/squeeze
-
-This effectively reverts this upstream commit:
-http://git.videolan.org/?p=vlc/vlc-2.0.git;a=commitdiff;h=59491dcedffbf97612d2c572943b56ee4289dd07
-
-Suggested by:
-http://forum.videolan.org/viewtopic.php?f=13&t=98175&p=327945&hilit=KaxSegment#p327945
-
-Thanks to Artyom Kazak <artyom.kazak@gmail.com> for pointing this out
-
Index: modules/demux/mkv/mkv.hpp
===================================================================
--- modules/demux/mkv/mkv.hpp 2012-08-10 13:14:35.284287024 +0200