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
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.system("sed -i -e 's|$(CC) -o $@ $(OBJCLI) $(LDFLAGS) -L. -lxavs|$(CC) -o $@ $(OBJCLI) -L. -lxavs $(LDFLAGS)|' Makefile")
shelltools.system("sed -i -e 's|xavs$(EXE): $(OBJCLI) $(SONAME)|xavs$(EXE): $(OBJCLI) $(SONAME) libxavs.a|' Makefile")
autotools.configure()
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
@@ -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
+60
View File
@@ -0,0 +1,60 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>xavs</Name>
<Homepage>http://xavs.sourceforge.net/</Homepage>
<Packager>
<Name>Mathias Freire</Name>
<Email>mathiasfreire45@gmail.com</Email>
</Packager>
<License>GPL</License>
<IsA>library</IsA>
<Summary>XAVS is to implement high quality encoder and decoder of the Audio Video Standard of China (AVS).</Summary>
<Description>XAVS is to implement high quality encoder and decoder of the Audio Video Standard of China (AVS).</Description>
<Archive sha1sum="e5f71203a632ac2a97f67e86f77b00910853cd60" type="tarxz">https://sourceforge.net/projects/pisilinux/files/source/xavs-0.1.55.tar.xz</Archive>
<Patches>
<Patch level="1">xavs-dynamic-xavs.patch</Patch>
<Patch level="1">xavs-0.1.55-dont-strip-symbols.patch</Patch>
<Patch level="1">xavs-dup-asm.patch</Patch>
<Patch level="1">xavs-x32-yasm.patch</Patch>
</Patches>
</Source>
<Package>
<Name>xavs</Name>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>xavs-devel</Name>
<Summary>Header files for xavs.</Summary>
<RuntimeDependencies>
<Dependency release="current">xavs</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-01-14</Date>
<Version>0.1.55</Version>
<Comment>First release.</Comment>
<Name>Idris Kalp</Name>
<Email>idriskalp@gmail.com</Email>
</Update>
</History>
</PISI>