diff options
Diffstat (limited to 'contrib/xvidcore')
-rw-r--r-- | contrib/xvidcore/A00-nasm.patch | 13 | ||||
-rw-r--r-- | contrib/xvidcore/A01-fdct.patch | 8 | ||||
-rw-r--r-- | contrib/xvidcore/P00-darwin.patch | 56 | ||||
-rw-r--r-- | contrib/xvidcore/P01-cygwin.patch | 25 | ||||
-rw-r--r-- | contrib/xvidcore/module.defs | 10 |
5 files changed, 39 insertions, 73 deletions
diff --git a/contrib/xvidcore/A00-nasm.patch b/contrib/xvidcore/A00-nasm.patch deleted file mode 100644 index 44242ace4..000000000 --- a/contrib/xvidcore/A00-nasm.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -ruN xvidcore-orig/build/generic/configure xvidcore/build/generic/configure ---- xvidcore-orig/build/generic/configure 2006-11-01 03:39:36.000000000 -0700 -+++ xvidcore/build/generic/configure 2008-01-30 20:19:48.000000000 -0700 -@@ -4016,7 +4016,7 @@ - if test "$ac_nasm" = "yes" ; then - echo "$as_me:$LINENO: checking for nasm patch version" >&5 - echo $ECHO_N "checking for nasm patch version... $ECHO_C" >&6 -- nasm_patch=`$nasm_prog -r | cut -d '.' -f 3 | cut -d ' ' -f 1` -+ nasm_patch=`($nasm_prog -r || $nasm_prog -v) | cut -d '.' -f 3 | cut -d ' ' -f 1` - if test -z $nasm_patch ; then -- nasm_patch=-1 -+ nasm_patch=45 - fi diff --git a/contrib/xvidcore/A01-fdct.patch b/contrib/xvidcore/A01-fdct.patch deleted file mode 100644 index 1fc90b689..000000000 --- a/contrib/xvidcore/A01-fdct.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm.orig 2008-02-22 10:28:13.000000000 -0800 -+++ xvidcore/src/dct/x86_asm/fdct_sse2_skal.asm 2008-02-22 11:08:52.000000000 -0800 -@@ -620,3 +620,5 @@ - ret - .endfunc - -+ALIGN 16 -+ times 8 dw 0 diff --git a/contrib/xvidcore/P00-darwin.patch b/contrib/xvidcore/P00-darwin.patch index 51cb94c6d..12bc8dac0 100644 --- a/contrib/xvidcore/P00-darwin.patch +++ b/contrib/xvidcore/P00-darwin.patch @@ -1,31 +1,31 @@ -diff -ru xvidcore-1.1.0/build/generic/configure xvidcore-1.1.0-patched/build/generic/configure ---- xvidcore-1.1.0/build/generic/configure 2005-12-30 15:45:30.000000000 +0100 -+++ xvidcore-1.1.0-patched/build/generic/configure 2006-01-16 22:06:10.000000000 +0100 -@@ -4052,6 +4071,12 @@ - PREFIX="-DPREFIX" +diff -Naur xvidcore-20090311.orig/build/generic/configure.in xvidcore-20090311/build/generic/configure.in +--- xvidcore-20090311.orig/build/generic/configure.in 2008-12-05 05:18:52.000000000 -0500 ++++ xvidcore-20090311/build/generic/configure.in 2009-04-14 11:30:04.000000000 -0400 +@@ -427,8 +427,13 @@ MARK_FUNCS="" ;; -+ *darwin*) -+ echo "$as_me:$LINENO: result: macho" >&5 -+echo "${ECHO_T}macho" >&6 -+ NASM_FORMAT="macho" -+ PREFIX="-DPREFIX" -+ MARK_FUNCS="" - esac - - AS="$chosen_asm_prog" -diff -ru xvidcore-1.1.0/build/generic/configure.in xvidcore-1.1.0-patched/build/generic/configure.in ---- xvidcore-1.1.0/build/generic/configure.in 2005-12-30 15:45:30.000000000 +0100 -+++ xvidcore-1.1.0-patched/build/generic/configure.in 2006-01-16 22:06:04.000000000 +0100 -@@ -397,6 +397,11 @@ - PREFIX="-DPREFIX" - MARK_FUNCS="" + *darwin*) +- AC_MSG_RESULT([macho]) +- NASM_FORMAT="macho" ++ if test "$ARCHITECTURE" = "X86_64" ; then ++ AC_MSG_RESULT([macho64]) ++ NASM_FORMAT="macho64" ++ else ++ AC_MSG_RESULT([macho]) ++ NASM_FORMAT="macho" ++ fi + PREFIX="-DPREFIX" + MARK_FUNCS="" ;; -+ *darwin*) -+ AC_MSG_RESULT([macho]) -+ NASM_FORMAT="macho" -+ PREFIX="-DPREFIX" -+ MARK_FUNCS="" - esac - - AS="$chosen_asm_prog" +diff -Naur xvidcore-20090311.orig/src/nasm.inc xvidcore-20090311/src/nasm.inc +--- xvidcore-20090311.orig/src/nasm.inc 2008-12-05 05:15:02.000000000 -0500 ++++ xvidcore-20090311/src/nasm.inc 2009-04-14 12:13:37.000000000 -0400 +@@ -177,6 +177,8 @@ + %macro TEXT 0 + %ifidn __OUTPUT_FORMAT__,macho + SECTION .text align=SECTION_ALIGN ++%elifidn __OUTPUT_FORMAT__,macho64 ++ SECTION .text align=SECTION_ALIGN + %else + SECTION .rotext align=SECTION_ALIGN + %endif diff --git a/contrib/xvidcore/P01-cygwin.patch b/contrib/xvidcore/P01-cygwin.patch index 7b60510d0..20afce260 100644 --- a/contrib/xvidcore/P01-cygwin.patch +++ b/contrib/xvidcore/P01-cygwin.patch @@ -1,24 +1,7 @@ -diff -Naur xvidcore/build/generic/configure xvidcore-patched/build/generic/configure ---- xvidcore/build/generic/configure 2005-12-30 09:45:30.000000000 -0500 -+++ xvidcore-patched/build/generic/configure 2007-01-01 18:43:27.953125000 -0500 -@@ -3844,10 +3844,9 @@ - [cC][yY][gG][wW][iI][nN]*|mingw32*|mks*) - echo "$as_me:$LINENO: result: ok" >&5 - echo "${ECHO_T}ok" >&6 -- STATIC_LIB="xvidcore.\$(STATIC_EXTENSION)" -- SHARED_LIB="xvidcore.\$(SHARED_EXTENSION)" -- SPECIFIC_LDFLAGS="-mno-cygwin -shared -Wl,--dll,--out-implib,\[email protected] libxvidcore.def" -- SPECIFIC_CFLAGS="-mno-cygwin" -+ STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)" -+ SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION)" -+ SPECIFIC_LDFLAGS="-shared -Wl,--dll,--out-implib,\[email protected] libxvidcore.def" - ;; - darwin*|raphsody*) - STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)" -diff -Naur xvidcore/build/generic/configure.in xvidcore-patched/build/generic/configure.in ---- xvidcore/build/generic/configure.in 2005-12-30 09:45:30.000000000 -0500 -+++ xvidcore-patched/build/generic/configure.in 2007-01-01 18:43:11.453125000 -0500 -@@ -281,10 +281,9 @@ +diff -Naur xvidcore-20090311.orig/build/generic/configure.in xvidcore-20090311/build/generic/configure.in +--- xvidcore-20090311.orig/build/generic/configure.in 2008-12-05 05:18:52.000000000 -0500 ++++ xvidcore-20090311/build/generic/configure.in 2009-04-14 13:18:23.034051500 -0400 +@@ -282,10 +282,9 @@ ;; [[cC]][[yY]][[gG]][[wW]][[iI]][[nN]]*|mingw32*|mks*) AC_MSG_RESULT([ok]) diff --git a/contrib/xvidcore/module.defs b/contrib/xvidcore/module.defs index dee8b3e45..5a76e0911 100644 --- a/contrib/xvidcore/module.defs +++ b/contrib/xvidcore/module.defs @@ -1,15 +1,19 @@ $(eval $(call import.MODULE.defs,XVIDCORE,xvidcore)) $(eval $(call import.CONTRIB.defs,XVIDCORE)) -XVIDCORE.FETCH.url = http://download.m0k.org/handbrake/contrib/xvidcore-1.1.3.tar.gz -XVIDCORE.EXTRACT.tarbase = xvidcore +XVIDCORE.FETCH.url = http://download.m0k.org/handbrake/contrib/xvidcore-20090311.tar.gz +XVIDCORE.CONFIGURE.static = +XVIDCORE.CONFIGURE.shared = +XVIDCORE.CONFIGURE.deps = XVIDCORE.CONFIGURE.dir = $(XVIDCORE.EXTRACT.dir/)build/generic/ +XVIDCORE.CONFIGURE.bootstrap = ./bootstrap.sh; XVIDCORE.BUILD.dir = $(XVIDCORE.EXTRACT.dir/)build/generic/ +XVIDCORE.BUILD.extra = STATIC_LIB=libxvidcore.a XVIDCORE.BUILD.ntargets = libxvidcore.a -XVIDCORE.CLEAN.dir = $(XVIDCORE.EXTRACT.dir/)build/generic/ +XVIDCORE.CLEAN.dir = $(XVIDCORE.EXTRACT.dir/)build/generic/ define XVIDCORE.INSTALL $(CP.exe) $(XVIDCORE.EXTRACT.dir/)build/generic/=build/libxvidcore.a $(CONTRIB.build/)lib/ |