xavs add to repo

This commit is contained in:
idriskalp
2020-01-14 18:45:09 +03:00
parent 49c9dd3c53
commit 6e0bc29259
6 changed files with 192 additions and 0 deletions
@@ -0,0 +1,12 @@
--- xavs-0.1.55/configure~ 2011-11-24 10:42:06.000000000 +0100
+++ xavs-0.1.55/configure 2011-11-24 11:49:04.908528371 +0100
@@ -404,8 +404,7 @@ if [ "$pic" = "yes" ] ; then
fi
if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
- CFLAGS="$CFLAGS -s -fomit-frame-pointer"
- LDFLAGS="$LDFLAGS -s"
+ CFLAGS="$CFLAGS -fomit-frame-pointer"
fi
if [ "$debug" = "yes" ]; then
@@ -0,0 +1,38 @@
From 8300fbf4918bca2af1af2aee6a337815e90b51e1 Mon Sep 17 00:00:00 2001
From: Greg Nietsky <gregory@distrotech.co.za>
Date: Thu, 21 Nov 2013 12:11:32 +0200
Subject: [PATCH] Remove duplicate deffinitions
---
common/i386/cpu-a.asm | 1 -
common/i386/deblock_inter.asm | 2 --
2 files changed, 3 deletions(-)
diff --git a/common/i386/cpu-a.asm b/common/i386/cpu-a.asm
index ad883cf..cf6a4eb 100644
--- a/common/i386/cpu-a.asm
+++ b/common/i386/cpu-a.asm
@@ -37,7 +37,6 @@ SECTION .text
cglobal xavs_cpu_cpuid_test
cglobal xavs_cpu_cpuid
-cglobal xavs_emms
ALIGN 16
;-----------------------------------------------------------------------------
diff --git a/common/i386/deblock_inter.asm b/common/i386/deblock_inter.asm
index d6d7208..84e96f6 100644
--- a/common/i386/deblock_inter.asm
+++ b/common/i386/deblock_inter.asm
@@ -9,8 +9,6 @@ dw_4: times 8 dw 4
SECTION .text
-cglobal xavs_deblock_v_chroma_mmxext
-cglobal xavs_deblock_h_chroma_mmxext
; out: %4 = |%1-%2|>%3
--
2.6.2
@@ -0,0 +1,13 @@
--- xavs/Makefile.orig 2011-07-01 20:23:47.000000000 +0200
+++ xavs/Makefile 2011-07-01 21:16:09.407118004 +0200
@@ -59,8 +59,8 @@
$(SONAME): .depend $(OBJS) $(OBJASM)
$(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SOFLAGS) $(LDFLAGS)
-xavs$(EXE): $(OBJCLI) libxavs.a
- $(CC) -o $@ $+ $(LDFLAGS)
+xavs$(EXE): $(OBJCLI) $(SONAME)
+ $(CC) -o $@ $(OBJCLI) $(LDFLAGS) -L. -lxavs
xavsvfw.dll: libxavs.a $(wildcard vfw/*.c vfw/*.h)
make -C vfw/build/cygwin
@@ -0,0 +1,46 @@
From 358587b8a881bca4d933b7a1dd9471322b9f4bd7 Mon Sep 17 00:00:00 2001
From: Greg Nietsky <gregory@distrotech.co.za>
Date: Thu, 21 Nov 2013 12:05:25 +0200
Subject: [PATCH 1/2] Add support for x32 yasm
---
configure | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 2026833..e7c1ce3 100755
--- a/configure
+++ b/configure
@@ -155,6 +155,7 @@ host_cpu="${host%%-*}"
host="${host#*-}"
host_vendor="${host%%-*}"
host_os="${host#*-}"
+host_ver="${host_os#*-}"
case $host_os in
beos*)
@@ -191,6 +192,9 @@ case $host_os in
SYS="LINUX"
CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
LDFLAGS="$LDFLAGS -lm"
+ if [ "${host_ver}" == "gnux32" ];then
+ ABI="X32";
+ fi;
;;
cygwin*)
SYS="MINGW"
@@ -242,8 +246,10 @@ case $host_cpu in
LDFLAGS="$LDFLAGS -arch x86_64"
elif [ "$SYS" = MINGW ]; then
ASFLAGS="$ASFLAGS -f win32 -m amd64 -DPREFIX"
+ elif [ "$ABI" = X32 ]; then
+ ASFLAGS="$ASFLAGS -f elfx32 -m amd64"
else
- ASFLAGS="$ASFLAGS -f elf -m amd64"
+ ASFLAGS="$ASFLAGS -f elf64 -m amd64"
fi
;;
powerpc|powerpc64)
--
2.6.2