commit e99614cf7f8f8e460cfd37426a0cb2e6e2e45b9e Author: Tim Biermann <tbier@posteo.de> Date: Sun Oct 30 10:52:23 2022 +0000 libyuv: initial commit, version 1813 diff --git a/libyuv/.footprint b/libyuv/.footprint new file mode 100644 index 000000000..c89224641 --- /dev/null +++ b/libyuv/.footprint @@ -0,0 +1,31 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/yuvconvert +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/libyuv.h +drwxr-xr-x root/root usr/include/libyuv/ +-rw-r--r-- root/root usr/include/libyuv/basic_types.h +-rw-r--r-- root/root usr/include/libyuv/compare.h +-rw-r--r-- root/root usr/include/libyuv/compare_row.h +-rw-r--r-- root/root usr/include/libyuv/convert.h +-rw-r--r-- root/root usr/include/libyuv/convert_argb.h +-rw-r--r-- root/root usr/include/libyuv/convert_from.h +-rw-r--r-- root/root usr/include/libyuv/convert_from_argb.h +-rw-r--r-- root/root usr/include/libyuv/cpu_id.h +-rw-r--r-- root/root usr/include/libyuv/loongson_intrinsics.h +-rw-r--r-- root/root usr/include/libyuv/macros_msa.h +-rw-r--r-- root/root usr/include/libyuv/mjpeg_decoder.h +-rw-r--r-- root/root usr/include/libyuv/planar_functions.h +-rw-r--r-- root/root usr/include/libyuv/rotate.h +-rw-r--r-- root/root usr/include/libyuv/rotate_argb.h +-rw-r--r-- root/root usr/include/libyuv/rotate_row.h +-rw-r--r-- root/root usr/include/libyuv/row.h +-rw-r--r-- root/root usr/include/libyuv/scale.h +-rw-r--r-- root/root usr/include/libyuv/scale_argb.h +-rw-r--r-- root/root usr/include/libyuv/scale_row.h +-rw-r--r-- root/root usr/include/libyuv/scale_uv.h +-rw-r--r-- root/root usr/include/libyuv/version.h +-rw-r--r-- root/root usr/include/libyuv/video_common.h +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libyuv.a +-rwxr-xr-x root/root usr/lib/libyuv.so diff --git a/libyuv/.signature b/libyuv/.signature new file mode 100644 index 000000000..a47f3bfcb --- /dev/null +++ b/libyuv/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3+dblSQuUW3dQ5Aabhe7oV4U1XHkjrz7mGXfoLpzZCl/VuKFMzkAyuVKaXRsf+Iq/pxzVe4aP6DDZM0m52Ir+wM= +SHA256 (Pkgfile) = b3dbf59430985c6fa6a868bd964e3f2e66af0a87b6e8c663b1f5de3c18de1f0f +SHA256 (.footprint) = 1b5bfd909d3025591b37829dd2e9496273da5d2ae0bae8ceb2a41f026b22740c +SHA256 (libyuv-1813.tar.gz) = c7b9425ded1fb7c9bc1d456f41867c305465998b61a44d260326f9fd521e00f8 diff --git a/libyuv/Pkgfile b/libyuv/Pkgfile new file mode 100644 index 000000000..7bf4cb281 --- /dev/null +++ b/libyuv/Pkgfile @@ -0,0 +1,25 @@ +# Description: Library for YUV scaling +# URL: https://chromium.googlesource.com/libyuv/libyuv/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: libjpeg-turbo + +name=libyuv +version=1813 +release=1 +_commit=3aebf69d668177e7ee6dbbe0025e5c3dbb525ff2 +source=(https://chromium.googlesource.com/libyuv/libyuv/+archive/$_commit.tar.gz) +renames=($name-$version.tar.gz) + +build() { + sed -i 's|yuvconvert ${JPEG_LIBRARY}|${ly_lib_shared} ${JPEG_LIBRARY}|' CMakeLists.txt + cmake -S . -B build -G Ninja \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ + -Wno-dev + + cmake --build build + DESTDIR=$PKG cmake --install build +}