pkgsrc-Changes archive

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

CVS commit: pkgsrc/multimedia/x265/patches



Module Name:    pkgsrc
Committed By:   pho
Date:           Mon Aug 25 18:14:40 UTC 2025

Modified Files:
        pkgsrc/multimedia/x265/patches: patch-CMakeLists.txt

Log Message:
multimedia/x265: Fix build on Darwin

This was a fallout of cmake 4 migration. The cmake policy CMP0025 has been switched to "NEW", which means cmake now reports Apple's clang as "AppleClang" as opposed to just "Clang", but 
CMakeLists.txt didn't know this compiler.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt

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

Modified files:

Index: pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt
diff -u pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt:1.6 pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt:1.7
--- pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt:1.6     Mon Aug 11 08:33:14 2025
+++ pkgsrc/multimedia/x265/patches/patch-CMakeLists.txt Mon Aug 25 18:14:39 2025
@@ -1,4 +1,4 @@
-$NetBSD: patch-CMakeLists.txt,v 1.6 2025/08/11 08:33:14 wiz Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.7 2025/08/25 18:14:39 pho Exp $
 
 Do not insist on old cmake policies (allows build with cmake 4).
 
@@ -29,6 +29,15 @@ Solaris ld: Passing "-Wa,--noexecstack" 
  
  project (x265)
  cmake_minimum_required (VERSION 2.8.8) # OBJECT libraries require 2.8.8
+@@ -168,7 +162,7 @@ if(APPLE)
+   add_definitions(-DMACOS=1)
+ endif()
+ 
+-if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
++if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang|AppleClang")
+     set(CLANG 1)
+ endif()
+ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
 @@ -207,6 +201,11 @@ if(HAVE_INT_TYPES_H)
      add_definitions(-DHAVE_INT_TYPES_H=1)
  endif()
@@ -41,6 +50,15 @@ Solaris ld: Passing "-Wa,--noexecstack" 
  if(INTEL_CXX AND UNIX)
      set(GCC 1) # treat icpc roughly like gcc
  elseif(CLANG)
+@@ -614,7 +613,7 @@ endif(ARM64)
+ 
+ option(WARNINGS_AS_ERRORS "Stop compiles on first warning" OFF)
+ if(WARNINGS_AS_ERRORS)
+-    if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
++    if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
+         add_definitions(-Werror)
+         add_definitions(-Wno-unused)
+     elseif(MSVC)
 @@ -658,7 +657,6 @@ if(POWER)
      endif()
  endif()



Home | Main Index | Thread Index | Old Index