From 6e0bc29259482efcaf5b1e778f878f58efb747ee Mon Sep 17 00:00:00 2001 From: idriskalp Date: Tue, 14 Jan 2020 18:45:09 +0300 Subject: [PATCH] xavs add to repo --- multimedia/video/xavs/actions.py | 23 +++++++ .../xavs-0.1.55-dont-strip-symbols.patch | 12 ++++ .../video/xavs/files/xavs-dup-asm.patch | 38 ++++++++++++ .../video/xavs/files/xavs-dynamic-xavs.patch | 13 ++++ .../video/xavs/files/xavs-x32-yasm.patch | 46 ++++++++++++++ multimedia/video/xavs/pspec.xml | 60 +++++++++++++++++++ 6 files changed, 192 insertions(+) create mode 100755 multimedia/video/xavs/actions.py create mode 100644 multimedia/video/xavs/files/xavs-0.1.55-dont-strip-symbols.patch create mode 100644 multimedia/video/xavs/files/xavs-dup-asm.patch create mode 100644 multimedia/video/xavs/files/xavs-dynamic-xavs.patch create mode 100644 multimedia/video/xavs/files/xavs-x32-yasm.patch create mode 100755 multimedia/video/xavs/pspec.xml diff --git a/multimedia/video/xavs/actions.py b/multimedia/video/xavs/actions.py new file mode 100755 index 0000000000..a289ca7120 --- /dev/null +++ b/multimedia/video/xavs/actions.py @@ -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()) + + diff --git a/multimedia/video/xavs/files/xavs-0.1.55-dont-strip-symbols.patch b/multimedia/video/xavs/files/xavs-0.1.55-dont-strip-symbols.patch new file mode 100644 index 0000000000..439a15f2fc --- /dev/null +++ b/multimedia/video/xavs/files/xavs-0.1.55-dont-strip-symbols.patch @@ -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 diff --git a/multimedia/video/xavs/files/xavs-dup-asm.patch b/multimedia/video/xavs/files/xavs-dup-asm.patch new file mode 100644 index 0000000000..9d9db9974a --- /dev/null +++ b/multimedia/video/xavs/files/xavs-dup-asm.patch @@ -0,0 +1,38 @@ +From 8300fbf4918bca2af1af2aee6a337815e90b51e1 Mon Sep 17 00:00:00 2001 +From: Greg Nietsky +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 + diff --git a/multimedia/video/xavs/files/xavs-dynamic-xavs.patch b/multimedia/video/xavs/files/xavs-dynamic-xavs.patch new file mode 100644 index 0000000000..4b17b2cb92 --- /dev/null +++ b/multimedia/video/xavs/files/xavs-dynamic-xavs.patch @@ -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 diff --git a/multimedia/video/xavs/files/xavs-x32-yasm.patch b/multimedia/video/xavs/files/xavs-x32-yasm.patch new file mode 100644 index 0000000000..863a30f3a6 --- /dev/null +++ b/multimedia/video/xavs/files/xavs-x32-yasm.patch @@ -0,0 +1,46 @@ +From 358587b8a881bca4d933b7a1dd9471322b9f4bd7 Mon Sep 17 00:00:00 2001 +From: Greg Nietsky +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 + diff --git a/multimedia/video/xavs/pspec.xml b/multimedia/video/xavs/pspec.xml new file mode 100755 index 0000000000..d0dccb0b08 --- /dev/null +++ b/multimedia/video/xavs/pspec.xml @@ -0,0 +1,60 @@ + + + + + xavs + http://xavs.sourceforge.net/ + + Mathias Freire + mathiasfreire45@gmail.com + + GPL + library + XAVS is to implement high quality encoder and decoder of the Audio Video Standard of China (AVS). + XAVS is to implement high quality encoder and decoder of the Audio Video Standard of China (AVS). + https://sourceforge.net/projects/pisilinux/files/source/xavs-0.1.55.tar.xz + + xavs-dynamic-xavs.patch + xavs-0.1.55-dont-strip-symbols.patch + xavs-dup-asm.patch + xavs-x32-yasm.patch + + + + + xavs + + libgcc + + + /usr/bin + /usr/lib + /usr/share/doc + + + + + xavs-devel + Header files for xavs. + + xavs + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2020-01-14 + 0.1.55 + First release. + Idris Kalp + idriskalp@gmail.com + + + + + +