Add xavs package (version 0.1.55) (#3104)
This commit is contained in:
33
mingw-w64-xavs/0001-xavs-0.1.55-fix-dynamic-build.patch
Normal file
33
mingw-w64-xavs/0001-xavs-0.1.55-fix-dynamic-build.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
--- xavs-0.1.55/configure 2017-11-01 07:06:44.216163200 -0400
|
||||
+++ xavs-0.1.55/configure 2017-11-01 07:08:12.358962400 -0400
|
||||
@@ -155,6 +155,7 @@
|
||||
host="${host#*-}"
|
||||
host_vendor="${host%%-*}"
|
||||
host_os="${host#*-}"
|
||||
+host_ver="${host_os#*-}"
|
||||
|
||||
case $host_os in
|
||||
beos*)
|
||||
@@ -404,8 +405,7 @@
|
||||
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
|
||||
--- xavs-0.1.55/Makefile 2017-11-01 07:09:46.732294400 -0400
|
||||
+++ xavs-0.1.55/Makefile 2017-11-01 07:09:50.859793100 -0400
|
||||
@@ -69,8 +69,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
|
||||
21
mingw-w64-xavs/0002-xavs-0.1.55-fix-asm.patch
Normal file
21
mingw-w64-xavs/0002-xavs-0.1.55-fix-asm.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
--- xavs-0.1.55/common/i386/cpu-a.asm 2017-11-01 07:10:57.363170400 -0400
|
||||
+++ xavs-0.1.55/common/i386/cpu-a.asm 2017-11-01 07:11:00.016877500 -0400
|
||||
@@ -37,7 +37,6 @@
|
||||
|
||||
cglobal xavs_cpu_cpuid_test
|
||||
cglobal xavs_cpu_cpuid
|
||||
-cglobal xavs_emms
|
||||
|
||||
ALIGN 16
|
||||
;-----------------------------------------------------------------------------
|
||||
--- xavs-0.1.55/common/i386/deblock_inter.asm 2017-11-01 21:31:38.326451200 -0400
|
||||
+++ xavs-0.1.55/common/i386/deblock_inter.asm 2017-11-01 21:31:49.060857100 -0400
|
||||
@@ -9,8 +9,6 @@
|
||||
|
||||
|
||||
SECTION .text
|
||||
-cglobal xavs_deblock_v_chroma_mmxext
|
||||
-cglobal xavs_deblock_h_chroma_mmxext
|
||||
|
||||
|
||||
; out: %4 = |%1-%2|>%3
|
||||
47
mingw-w64-xavs/PKGBUILD
Normal file
47
mingw-w64-xavs/PKGBUILD
Normal file
@@ -0,0 +1,47 @@
|
||||
# Maintainer: Andrew Sun <adsun701@gmail.com>
|
||||
|
||||
_realname=xavs
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=0.1.55
|
||||
pkgrel=1
|
||||
pkgdesc="XAVS is to implement high quality encoder and decoder of the Audio Video Standard of China (AVS). (mingw-w64)"
|
||||
arch=('any')
|
||||
url="http://xavs.sourceforge.net/"
|
||||
license=("GPL")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config" "${MINGW_PACKAGE_PREFIX}-yasm")
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
|
||||
source=("https://github.com/OpenMandrivaAssociation/xavs/raw/master/xavs-${pkgver}.tar.xz"
|
||||
"0001-xavs-0.1.55-fix-dynamic-build.patch"
|
||||
"0002-xavs-0.1.55-fix-asm.patch")
|
||||
sha256sums=("178bf04ffc5edd9acfa8188acbeeab16e24e4e43f4465729e8619f844e5901f2"
|
||||
"0a6bdb653db4c63ab1c60ee5fd7303215523e6e06f62998c7a06520798be92c4"
|
||||
"1559e0dfb21ee6f67dbd996ae0bb0c67987706db3144199202890de37cb7d8b4")
|
||||
|
||||
prepare(){
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
patch -Np1 -i "${srcdir}/0001-xavs-0.1.55-fix-dynamic-build.patch"
|
||||
patch -Np1 -i "${srcdir}/0002-xavs-0.1.55-fix-asm.patch"
|
||||
sed -i -e 's|$(CC) -o $@ $(OBJCLI) $(LDFLAGS) -L. -lxavs|$(CC) -o $@ $(OBJCLI) -L. -lxavs $(LDFLAGS)|' Makefile
|
||||
sed -i -e 's|xavs$(EXE): $(OBJCLI) $(SONAME)|xavs$(EXE): $(OBJCLI) $(SONAME) libxavs.a|' Makefile
|
||||
}
|
||||
|
||||
build() {
|
||||
[[ -d "build-${MINGW_CHOST}" ]] && rm -rf "build-${MINGW_CHOST}"
|
||||
mkdir -p "${srcdir}/build-${MINGW_CHOST}"
|
||||
cd "${srcdir}/build-${MINGW_CHOST}"
|
||||
cp -r "${srcdir}/${_realname}-${pkgver}" "${srcdir}/build-${MINGW_CHOST}/${_realname}-${pkgver}"
|
||||
cd "${_realname}-${pkgver}"
|
||||
./configure \
|
||||
--prefix=${MINGW_PREFIX} \
|
||||
--host=${MINGW_CHOST} \
|
||||
--disable-asm \
|
||||
--enable-shared
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build-${MINGW_CHOST}/${_realname}-${pkgver}"
|
||||
make DESTDIR=${pkgdir} install
|
||||
}
|
||||
Reference in New Issue
Block a user