pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/multimedia/libaom



Module Name:    pkgsrc
Committed By:   maya
Date:           Sun Sep 30 18:58:16 UTC 2018

Added Files:
        pkgsrc/multimedia/libaom: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/multimedia/libaom/patches:
            patch-build_cmake_aom__configure.cmake
            patch-build_cmake_aom__optimization.cmake

Log Message:
Add libaom version 1.0.0

AOMedia Video 1 (AV1), is an open, royalty-free video coding format designed
for video transmissions over the Internet.
AV1 is intended to be able to be used together with the audio format Opus in a
future version of the WebM container format for HTML5 web video and WebRTC.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/multimedia/libaom/DESCR \
    pkgsrc/multimedia/libaom/Makefile pkgsrc/multimedia/libaom/PLIST \
    pkgsrc/multimedia/libaom/buildlink3.mk pkgsrc/multimedia/libaom/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/multimedia/libaom/patches/patch-build_cmake_aom__configure.cmake \
    pkgsrc/multimedia/libaom/patches/patch-build_cmake_aom__optimization.cmake

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/multimedia/libaom/DESCR
diff -u /dev/null pkgsrc/multimedia/libaom/DESCR:1.1
--- /dev/null   Sun Sep 30 18:58:16 2018
+++ pkgsrc/multimedia/libaom/DESCR      Sun Sep 30 18:58:16 2018
@@ -0,0 +1,4 @@
+AOMedia Video 1 (AV1), is an open, royalty-free video coding format designed
+for video transmissions over the Internet.
+AV1 is intended to be able to be used together with the audio format Opus in a
+future version of the WebM container format for HTML5 web video and WebRTC.
Index: pkgsrc/multimedia/libaom/Makefile
diff -u /dev/null pkgsrc/multimedia/libaom/Makefile:1.1
--- /dev/null   Sun Sep 30 18:58:16 2018
+++ pkgsrc/multimedia/libaom/Makefile   Sun Sep 30 18:58:16 2018
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2018/09/30 18:58:16 maya Exp $
+
+PKGNAME=       libaom-1.0.0
+DISTNAME=      d14c5bb4f336ef1842046089849dee4a301fbbf0
+CATEGORIES=    multimedia
+MASTER_SITES=  https://aomedia.googlesource.com/aom/+archive/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://aomedia.googlesource.com/aom/+archive/
+COMMENT=       Library for using AV1, video coding format
+LICENSE=       2-clause-bsd
+
+WRKSRC=                ${WRKDIR}
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+USE_TOOLS+=    perl
+
+CONFIGURE_DIRS=        build
+CMAKE_ARG_PATH=        ../
+CMAKE_ARGS+=   -DBUILD_SHARED_LIBS:BOOL='ON'
+CMAKE_ARGS+=   -DCMAKE_COLOR_MAKEFILE:BOOL='ON'
+CMAKE_ARGS+=   -DENABLE_DECODE_PERF_TESTS:BOOL='OFF'
+CMAKE_ARGS+=   -DENABLE_EXAMPLES:BOOL='ON'
+CMAKE_ARGS+=   -DENABLE_DOCS:BOOL='ON'
+CMAKE_ARGS+=   -DENABLE_GOMA:BOOL='OFF'
+CMAKE_ARGS+=   -DENABLE_NASM:BOOL='ON'
+CMAKE_ARGS+=   -DENABLE_TESTS:BOOL='OFF'
+CMAKE_ARGS+=   -DENABLE_TOOLS:BOOL='ON'
+CMAKE_ARGS+=   -DENABLE_WERROR:BOOL='OFF'
+
+BUILD_DEPENDS+=        nasm>=2.13:../../devel/nasm
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/multimedia/libaom/PLIST
diff -u /dev/null pkgsrc/multimedia/libaom/PLIST:1.1
--- /dev/null   Sun Sep 30 18:58:16 2018
+++ pkgsrc/multimedia/libaom/PLIST      Sun Sep 30 18:58:16 2018
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1 2018/09/30 18:58:16 maya Exp $
+bin/aomdec
+bin/aomenc
+include/aom/aom.h
+include/aom/aom_codec.h
+include/aom/aom_decoder.h
+include/aom/aom_encoder.h
+include/aom/aom_frame_buffer.h
+include/aom/aom_image.h
+include/aom/aom_integer.h
+include/aom/aomcx.h
+include/aom/aomdx.h
+lib/libaom.so
+lib/libaom.so.0
+lib/pkgconfig/aom.pc
Index: pkgsrc/multimedia/libaom/buildlink3.mk
diff -u /dev/null pkgsrc/multimedia/libaom/buildlink3.mk:1.1
--- /dev/null   Sun Sep 30 18:58:16 2018
+++ pkgsrc/multimedia/libaom/buildlink3.mk      Sun Sep 30 18:58:16 2018
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/09/30 18:58:16 maya Exp $
+
+BUILDLINK_TREE+=       libaom
+
+.if !defined(LIBAOM_BUILDLINK3_MK)
+LIBAOM_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libaom+= libaom>=1.0.0
+BUILDLINK_PKGSRCDIR.libaom?=   ../../multimedia/libaom
+.endif # LIBAOM_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libaom
Index: pkgsrc/multimedia/libaom/distinfo
diff -u /dev/null pkgsrc/multimedia/libaom/distinfo:1.1
--- /dev/null   Sun Sep 30 18:58:16 2018
+++ pkgsrc/multimedia/libaom/distinfo   Sun Sep 30 18:58:16 2018
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2018/09/30 18:58:16 maya Exp $
+
+SHA1 (d14c5bb4f336ef1842046089849dee4a301fbbf0.tar.gz) = ca5cf0245a551a19840e284b522d2522cce6a008
+RMD160 (d14c5bb4f336ef1842046089849dee4a301fbbf0.tar.gz) = 08b56569ce101c47b67afdfd614ff2bd6318e6b0
+SHA512 (d14c5bb4f336ef1842046089849dee4a301fbbf0.tar.gz) = c0be01d6e20ba507554b845da89d0dade6e05b19a0d7a116d9a8ebf6b9a199534a8b43eaa0a5b9a7f9d838652c7f38d886d9bdff98c22b61c3813cd210a3f7e5
+Size (d14c5bb4f336ef1842046089849dee4a301fbbf0.tar.gz) = 2775438 bytes
+SHA1 (patch-build_cmake_aom__configure.cmake) = 618aa2bf047e89fbcf665ff65535d818327bb413
+SHA1 (patch-build_cmake_aom__optimization.cmake) = 56eda2e9e40cd20ce955ca311ded4a11f2ae3d1c

Index: pkgsrc/multimedia/libaom/patches/patch-build_cmake_aom__configure.cmake
diff -u /dev/null pkgsrc/multimedia/libaom/patches/patch-build_cmake_aom__configure.cmake:1.1
--- /dev/null   Sun Sep 30 18:58:16 2018
+++ pkgsrc/multimedia/libaom/patches/patch-build_cmake_aom__configure.cmake     Sun Sep 30 18:58:16 2018
@@ -0,0 +1,16 @@
+$NetBSD: patch-build_cmake_aom__configure.cmake,v 1.1 2018/09/30 18:58:16 maya Exp $
+
+Don't disable fortify just because it's a release build.
+
+--- build/cmake/aom_configure.cmake.orig       2018-09-28 20:57:38.000000000 +0000
++++ build/cmake/aom_configure.cmake
+@@ -290,9 +290,6 @@ else()
+     add_compiler_flag_if_supported("-Werror")
+   endif()
+ 
+-  if("${CMAKE_BUILD_TYPE}" MATCHES "Rel")
+-    add_compiler_flag_if_supported("-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0")
+-  endif()
+   add_compiler_flag_if_supported("-D_LARGEFILE_SOURCE")
+   add_compiler_flag_if_supported("-D_FILE_OFFSET_BITS=64")
+ endif()
Index: pkgsrc/multimedia/libaom/patches/patch-build_cmake_aom__optimization.cmake
diff -u /dev/null pkgsrc/multimedia/libaom/patches/patch-build_cmake_aom__optimization.cmake:1.1
--- /dev/null   Sun Sep 30 18:58:16 2018
+++ pkgsrc/multimedia/libaom/patches/patch-build_cmake_aom__optimization.cmake  Sun Sep 30 18:58:16 2018
@@ -0,0 +1,51 @@
+$NetBSD: patch-build_cmake_aom__optimization.cmake,v 1.1 2018/09/30 18:58:16 maya Exp $
+
+Assume everyone besides Darwin/Windows uses ELF.
+
+--- build/cmake/aom_optimization.cmake.orig    2018-09-28 20:57:38.000000000 +0000
++++ build/cmake/aom_optimization.cmake
+@@ -83,24 +83,20 @@ function(get_asm_obj_format out_format)
+   if("${AOM_TARGET_CPU}" STREQUAL "x86_64")
+     if("${AOM_TARGET_SYSTEM}" STREQUAL "Darwin")
+       set(objformat "macho64")
+-    elseif("${AOM_TARGET_SYSTEM}" STREQUAL "Linux")
+-      set(objformat "elf64")
+     elseif("${AOM_TARGET_SYSTEM}" STREQUAL "MSYS" OR "${AOM_TARGET_SYSTEM}"
+            STREQUAL "Windows")
+       set(objformat "win64")
+     else()
+-      message(FATAL_ERROR "Unknown obj format: ${AOM_TARGET_SYSTEM}")
++      set(objformat "elf64")
+     endif()
+   elseif("${AOM_TARGET_CPU}" STREQUAL "x86")
+     if("${AOM_TARGET_SYSTEM}" STREQUAL "Darwin")
+       set(objformat "macho32")
+-    elseif("${AOM_TARGET_SYSTEM}" STREQUAL "Linux")
+-      set(objformat "elf32")
+     elseif("${AOM_TARGET_SYSTEM}" STREQUAL "MSYS" OR "${AOM_TARGET_SYSTEM}"
+            STREQUAL "Windows")
+       set(objformat "win32")
+     else()
+-      message(FATAL_ERROR "Unknown obj format: ${AOM_TARGET_SYSTEM}")
++      set(objformat "elf32")
+     endif()
+   else()
+     message(FATAL_ERROR
+@@ -171,7 +167,7 @@ function(test_nasm)
+         message(FATAL_ERROR
+                   "Unsupported nasm: macho32 object format not supported.")
+       endif()
+-    elseif("${AOM_TARGET_SYSTEM}" STREQUAL "Linux")
++    else()
+       if(NOT "${nasm_helptext}" MATCHES "elf32")
+         message(FATAL_ERROR
+                   "Unsupported nasm: elf32 object format not supported.")
+@@ -183,7 +179,7 @@ function(test_nasm)
+         message(FATAL_ERROR
+                   "Unsupported nasm: macho64 object format not supported.")
+       endif()
+-    elseif("${AOM_TARGET_SYSTEM}" STREQUAL "Linux")
++    else()
+       if(NOT "${nasm_helptext}" MATCHES "elf64")
+         message(FATAL_ERROR
+                   "Unsupported nasm: elf64 object format not supported.")



Home | Main Index | Thread Index | Old Index