pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/libaom libaom: Fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/554a7e6f1ab9
branches:  trunk
changeset: 314287:554a7e6f1ab9
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Oct 23 17:30:21 2018 +0000

description:
libaom: Fix build on SunOS.

diffstat:

 multimedia/libaom/distinfo                                       |   5 +-
 multimedia/libaom/patches/patch-build_cmake_aom__configure.cmake |  20 ++++++++-
 multimedia/libaom/patches/patch-build_cmake_exports.cmake        |  15 +++++++
 3 files changed, 35 insertions(+), 5 deletions(-)

diffs (65 lines):

diff -r 1865e162d5da -r 554a7e6f1ab9 multimedia/libaom/distinfo
--- a/multimedia/libaom/distinfo        Tue Oct 23 16:53:37 2018 +0000
+++ b/multimedia/libaom/distinfo        Tue Oct 23 17:30:21 2018 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.2 2018/10/01 03:25:46 ryoon Exp $
+$NetBSD: distinfo,v 1.3 2018/10/23 17:30:21 jperkin Exp $
 
 SHA1 (aom-d14c5bb4f336ef1842046089849dee4a301fbbf0.tar.gz) = deaf4f5420055cba0385a4e7dd91720211b7b97d
 RMD160 (aom-d14c5bb4f336ef1842046089849dee4a301fbbf0.tar.gz) = 3f01d1408b715acb54537ba933bac4e03bc4f157
 SHA512 (aom-d14c5bb4f336ef1842046089849dee4a301fbbf0.tar.gz) = 40e98a50fb470266229a43296d7217edadefd51a5e2faa64094f0dd23523c3f6877586880175731bca1056b26f5f393b95ae214e5c673bad63839859003b615c
 Size (aom-d14c5bb4f336ef1842046089849dee4a301fbbf0.tar.gz) = 2775350 bytes
-SHA1 (patch-build_cmake_aom__configure.cmake) = 618aa2bf047e89fbcf665ff65535d818327bb413
+SHA1 (patch-build_cmake_aom__configure.cmake) = e0dbccb5dd1b6137ff29f915a221fbae1c56b49b
 SHA1 (patch-build_cmake_aom__optimization.cmake) = 56eda2e9e40cd20ce955ca311ded4a11f2ae3d1c
+SHA1 (patch-build_cmake_exports.cmake) = b64a36404b96a8ede42ac7419c28d2075c910395
diff -r 1865e162d5da -r 554a7e6f1ab9 multimedia/libaom/patches/patch-build_cmake_aom__configure.cmake
--- a/multimedia/libaom/patches/patch-build_cmake_aom__configure.cmake  Tue Oct 23 16:53:37 2018 +0000
+++ b/multimedia/libaom/patches/patch-build_cmake_aom__configure.cmake  Tue Oct 23 17:30:21 2018 +0000
@@ -1,10 +1,24 @@
-$NetBSD: patch-build_cmake_aom__configure.cmake,v 1.1 2018/09/30 18:58:16 maya Exp $
+$NetBSD: patch-build_cmake_aom__configure.cmake,v 1.2 2018/10/23 17:30:21 jperkin Exp $
 
 Don't disable fortify just because it's a release build.
+Set CPU correctly on SunOS.
 
---- build/cmake/aom_configure.cmake.orig       2018-09-28 20:57:38.000000000 +0000
+--- build/cmake/aom_configure.cmake.orig       2018-10-01 03:20:05.000000000 +0000
 +++ build/cmake/aom_configure.cmake
-@@ -290,9 +290,6 @@ else()
+@@ -65,7 +65,11 @@ if(NOT AOM_TARGET_CPU)
+     endif()
+   elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i386" OR
+          "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86")
+-    set(AOM_TARGET_CPU "x86")
++    if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
++      set(AOM_TARGET_CPU "x86")
++    elseif(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
++      set(AOM_TARGET_CPU "x86_64")
++    endif()
+   elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "^arm" OR
+          "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "^mips")
+     set(AOM_TARGET_CPU "${CMAKE_SYSTEM_PROCESSOR}")
+@@ -290,9 +294,6 @@ else()
      add_compiler_flag_if_supported("-Werror")
    endif()
  
diff -r 1865e162d5da -r 554a7e6f1ab9 multimedia/libaom/patches/patch-build_cmake_exports.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libaom/patches/patch-build_cmake_exports.cmake Tue Oct 23 17:30:21 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-build_cmake_exports.cmake,v 1.1 2018/10/23 17:30:21 jperkin Exp $
+
+Don't use --version-script on SunOS.
+
+--- build/cmake/exports.cmake.orig     2018-10-01 03:20:05.000000000 +0000
++++ build/cmake/exports.cmake
+@@ -55,7 +55,7 @@ function(setup_exports_target)
+ 
+     # TODO(tomfinegan): Sort out the import lib situation and flags for MSVC.
+ 
+-  else()
++  elseif(NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS")
+     set_property(TARGET aom APPEND_STRING
+                  PROPERTY LINK_FLAGS "-Wl,--version-script,${aom_sym_file}")
+   endif()



Home | Main Index | Thread Index | Old Index