From 87799655d49aca2a1a086d9ad4140254165f2f2e Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Mon, 5 Jul 2010 16:20:55 -0500 Subject: multimedia/xbmc: Fix to work with newer ffmpeg. Signed-off-by: Erik Hanson --- multimedia/xbmc/xbmc.SlackBuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'multimedia/xbmc/xbmc.SlackBuild') diff --git a/multimedia/xbmc/xbmc.SlackBuild b/multimedia/xbmc/xbmc.SlackBuild index a397d8a93d..08a1a7cff2 100644 --- a/multimedia/xbmc/xbmc.SlackBuild +++ b/multimedia/xbmc/xbmc.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=xbmc VERSION=9.11 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -113,13 +113,15 @@ EXTRA_INCLUDES="\ ENABLE_OPTS="\ --enable-external-libogg \ --enable-external-libwavpack" -[ "${EXT_FFMPEG:-no}" == "yes" ] && ENABLE_OPTS="$ENABLE_OPTS --enable-external-ffmpeg" +[ "${EXT_FFMPEG:-no}" == "yes" ] && ENABLE_OPTS="$ENABLE_OPTS --enable-external-ffmpeg" \ + SLKCFLAGS="$SLKCFLAGS -D__STDC_CONSTANT_MACROS" # Workaround for ffmpeg 0.6+ [ "${EXT_A52DEC:-no}" == "yes" ] && ENABLE_OPTS="$ENABLE_OPTS --enable-external-liba52" [ "${EXT_DTS:-no}" == "yes" ] && ENABLE_OPTS="$ENABLE_OPTS --enable-external-libdts" [ "${EXT_MPEG2:-no}" == "yes" ] && ENABLE_OPTS="$ENABLE_OPTS --enable-external-libmpeg2" [ "${EXT_ASS:-no}" == "yes" ] && ENABLE_OPTS="$ENABLE_OPTS --enable-external-libass" [ "${EXT_PYTHON:-no}" == "yes" ] && ENABLE_OPTS="$ENABLE_OPTS --enable-external-python" -[ "${EXT_ALL:-no}" == "yes" ] && ENABLE_OPTS="--enable-external-libraries" +[ "${EXT_ALL:-no}" == "yes" ] && ENABLE_OPTS="--enable-external-libraries" \ + SLKCFLAGS="$SLKCFLAGS -D__STDC_CONSTANT_MACROS" # Workaround for ffmpeg 0.6+ CFLAGS="$SLKCFLAGS $EXTRA_INCLUDES" \ CXXFLAGS="$SLKCFLAGS $EXTRA_INCLUDES" \ -- cgit v1.2.3