aboutsummaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg-devel
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2010-08-01 20:41:26 +0000
committerMartin Matuska <mm@FreeBSD.org>2010-08-01 20:41:26 +0000
commitabff9e46a8087f952ec8edf52db8ec8dcf8c1f02 (patch)
tree0140e276d7f694d5eac61a0b9d40fec1bd428f20 /multimedia/ffmpeg-devel
parent0bb8b24e2a48506282a6cdcb10393cc7e52039b9 (diff)
downloadports-abff9e46a8087f952ec8edf52db8ec8dcf8c1f02.tar.gz
ports-abff9e46a8087f952ec8edf52db8ec8dcf8c1f02.zip
Notes
Diffstat (limited to 'multimedia/ffmpeg-devel')
-rw-r--r--multimedia/ffmpeg-devel/Makefile3
-rw-r--r--multimedia/ffmpeg-devel/files/patch-configure31
-rw-r--r--multimedia/ffmpeg-devel/files/patch-libavcodec-Makefile11
-rw-r--r--multimedia/ffmpeg-devel/files/patch-libavutil-common.h13
4 files changed, 56 insertions, 2 deletions
diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile
index 3101a4975c38..4d71e2209acb 100644
--- a/multimedia/ffmpeg-devel/Makefile
+++ b/multimedia/ffmpeg-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ffmpeg
DISTVERSION= 2010-07-25
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= mm
@@ -304,7 +304,6 @@ post-patch:
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e 's|-ldl||; s|$$(LIBMAJOR)|${SHLIB_VER}|g;' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
- @cd ${WRKSRC}/libavcodec && ${LN} -s x86 i386 && ${LN} -s x86 amd64
.ifdef(WITH_SDL)
@${REINPLACE_CMD} -E \
-e 's|sdl-config|${SDL_CONFIG}|g' \
diff --git a/multimedia/ffmpeg-devel/files/patch-configure b/multimedia/ffmpeg-devel/files/patch-configure
new file mode 100644
index 000000000000..cd1b4c7b66e8
--- /dev/null
+++ b/multimedia/ffmpeg-devel/files/patch-configure
@@ -0,0 +1,31 @@
+--- configure.orig 2010-07-21 20:28:42.000000000 +0200
++++ configure 2010-08-01 21:21:24.326222886 +0200
+@@ -1517,7 +1517,7 @@
+ nm_opts='-g'
+
+ # machine
+-arch_default=$(uname -m)
++arch_default=$(uname -p)
+ cpu="generic"
+
+ # OS
+@@ -2717,8 +2717,8 @@
+ fi
+ fi
+
+-check_header linux/videodev.h
+-check_header linux/videodev2.h
++#check_header linux/videodev.h
++#check_header linux/videodev2.h
+ check_header sys/videoio.h
+
+ check_func_headers "windows.h vfw.h" capCreateCaptureWindow "$vfwcap_indev_extralibs"
+@@ -3020,7 +3020,7 @@
+ SRC_PATH="$source_path"
+ SRC_PATH_BARE=$source_path
+ BUILD_ROOT="$PWD"
+-ARCH=$arch
++FFMPEG_ARCH=$arch
+ CC=$cc
+ AS=$as
+ LD=$ld
diff --git a/multimedia/ffmpeg-devel/files/patch-libavcodec-Makefile b/multimedia/ffmpeg-devel/files/patch-libavcodec-Makefile
new file mode 100644
index 000000000000..8a43557f17f7
--- /dev/null
+++ b/multimedia/ffmpeg-devel/files/patch-libavcodec-Makefile
@@ -0,0 +1,11 @@
+--- libavcodec/Makefile.orig 2010-07-21 14:37:37.000000000 +0200
++++ libavcodec/Makefile 2010-08-01 21:19:55.324513241 +0200
+@@ -615,7 +615,7 @@
+ # well.
+ OBJS-$(!CONFIG_SMALL) += inverse.o
+
+--include $(SUBDIR)$(ARCH)/Makefile
++-include $(SUBDIR)$(FFMPEG_ARCH)/Makefile
+
+ SKIPHEADERS = %_tablegen.h
+ SKIPHEADERS-$(CONFIG_DXVA2) += dxva2.h dxva2_internal.h
diff --git a/multimedia/ffmpeg-devel/files/patch-libavutil-common.h b/multimedia/ffmpeg-devel/files/patch-libavutil-common.h
new file mode 100644
index 000000000000..e4a38622d92e
--- /dev/null
+++ b/multimedia/ffmpeg-devel/files/patch-libavutil-common.h
@@ -0,0 +1,13 @@
+--- libavutil/common.h.orig 2010-07-07 19:27:45.000000000 +0200
++++ libavutil/common.h 2010-08-01 22:27:42.964629491 +0200
+@@ -36,6 +36,10 @@
+ #include <string.h>
+ #include "attributes.h"
+
++#ifndef UINT64_C
++#define UINT64_C(c) (c ## UL)
++#endif
++
+ //rounded division & shift
+ #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
+ /* assume b>0 */