Skip to content

Commit 5afb588

Browse files
committed
Set compatibility/current-version=13.0.0
1 parent 24bfce2 commit 5afb588

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

recipe/compat.patch

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/sharedlib/CMakeLists.txt b/sharedlib/CMakeLists.txt
2+
index 8d65e58..d9daeb7 100755
3+
--- a/sharedlib/CMakeLists.txt
4+
+++ b/sharedlib/CMakeLists.txt
5+
@@ -40,6 +40,7 @@ add_library(jpeg SHARED ${JPEG_SRCS} ${DEFFILE} $<TARGET_OBJECTS:simd>
6+
7+
set_target_properties(jpeg PROPERTIES SOVERSION ${SO_MAJOR_VERSION}
8+
VERSION ${SO_MAJOR_VERSION}.${SO_AGE}.${SO_MINOR_VERSION})
9+
+set_target_properties(jpeg PROPERTIES MACHO_COMPATIBILITY_VERSION 13.0.0 MACHO_CURRENT_VERSION 13.0.0)
10+
if(APPLE AND (NOT CMAKE_OSX_DEPLOYMENT_TARGET OR
11+
CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER 10.4))
12+
if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG)

recipe/meta.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ package:
77
source:
88
url: https://github.com/libjpeg-turbo/libjpeg-turbo/archive/{{ version }}.tar.gz
99
sha256: 9310613182cb617ce300a4079bc7fa13f2f31a99c12601af47f77657c0dd8537
10-
10+
patches:
11+
# set macos compatibility-version and current-version
12+
- compat.patch
1113
build:
1214
number: 1
1315

0 commit comments

Comments
 (0)