git: 0f05236e04f5 - main - graphics/openjph: Update to 0.8.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 18 Apr 2022 00:00:40 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0f05236e04f5784e5a9730015dd47c89f8e11dff

commit 0f05236e04f5784e5a9730015dd47c89f8e11dff
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-17 23:42:29 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-17 23:58:02 +0000

    graphics/openjph: Update to 0.8.3
    
    - Add missing USE_LDCONFIG
    
    Changes:        https://github.com/aous72/OpenJPH/releases
---
 graphics/openjph/Makefile                   |  3 ++-
 graphics/openjph/distinfo                   |  6 +++---
 graphics/openjph/files/patch-CMakeLists.txt | 32 +++++++++++------------------
 graphics/openjph/pkg-plist                  |  1 +
 4 files changed, 18 insertions(+), 24 deletions(-)

diff --git a/graphics/openjph/Makefile b/graphics/openjph/Makefile
index 3a17900ac20c..7796575242e4 100644
--- a/graphics/openjph/Makefile
+++ b/graphics/openjph/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	openjph
-PORTVERSION=	0.8.2
+PORTVERSION=	0.8.3
 CATEGORIES=	graphics
 
 MAINTAINER=	sunpoet@FreeBSD.org
@@ -16,6 +16,7 @@ NOT_FOR_ARCHS_REASON=	is currently 64-bit only
 USES=		cmake compiler:c++11-lang # pathfix
 
 CMAKE_ON=	BUILD_SHARED_LIBS
+USE_LDCONFIG=	yes
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
diff --git a/graphics/openjph/distinfo b/graphics/openjph/distinfo
index 78be841983c0..cffd6c0cf450 100644
--- a/graphics/openjph/distinfo
+++ b/graphics/openjph/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1646057880
-SHA256 (aous72-OpenJPH-0.8.2_GH0.tar.gz) = 60bbeac63fa0468304d645494bc72ff6c52529920fe8108184dbda59c177412e
-SIZE (aous72-OpenJPH-0.8.2_GH0.tar.gz) = 265469
+TIMESTAMP = 1650228680
+SHA256 (aous72-OpenJPH-0.8.3_GH0.tar.gz) = fb08d929600557fb299ac3be206f651e34e80ff3b8085666c794cd046a06d81d
+SIZE (aous72-OpenJPH-0.8.3_GH0.tar.gz) = 339637
diff --git a/graphics/openjph/files/patch-CMakeLists.txt b/graphics/openjph/files/patch-CMakeLists.txt
index 4ccceedaf3b4..ff8d726878cd 100644
--- a/graphics/openjph/files/patch-CMakeLists.txt
+++ b/graphics/openjph/files/patch-CMakeLists.txt
@@ -1,4 +1,4 @@
---- CMakeLists.txt.orig	2022-01-03 05:55:29 UTC
+--- CMakeLists.txt.orig	2022-04-07 02:26:42 UTC
 +++ CMakeLists.txt
 @@ -54,9 +54,6 @@ if (OJPH_CODE_COVERAGE AND NOT MSVC)
  	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
@@ -19,29 +19,21 @@
  )
  
  if (OJPH_DISABLE_INTEL_SIMD)
-@@ -116,13 +113,13 @@ target_include_directories(openjph PUBLIC src/core/com
- 
- set_target_properties(openjph
-   PROPERTIES
--    OUTPUT_NAME "openjph.${OPENJPH_VERSION_MAJOR}.${OPENJPH_VERSION_MINOR}.${OPENJPH_VERSION_PATCH}"
-+    OUTPUT_NAME "openjph"
- )
- 
--if (OPENJPH_VERSION AND CMAKE_SYSTEM_NAME MATCHES "Linux")
-+if (OPENJPH_VERSION AND CMAKE_SYSTEM_NAME MATCHES "FreeBSD|Linux")
-   set_target_properties(openjph
-     PROPERTIES
--      SOVERSION "${OPENJPH_VERSION_MAJOR}.${OPENJPH_VERSION_MINOR}")
-+      SOVERSION "${OPENJPH_VERSION_MAJOR}.${OPENJPH_VERSION_MINOR}.${OPENJPH_VERSION_PATCH}")
- endif()
- 
- if (MSVC)
-@@ -165,8 +162,8 @@ INSTALL (DIRECTORY src/core/common/
+@@ -124,7 +121,7 @@ if (OPENJPH_VERSION)
+   else()
+     set_target_properties(openjph
+       PROPERTIES
+-        SOVERSION "${OPENJPH_VERSION_MAJOR}.${OPENJPH_VERSION_MINOR}"
++        SOVERSION "${OPENJPH_VERSION_MAJOR}"
+         VERSION "${OPENJPH_VERSION}")
+   endif()
+ else()
+@@ -172,8 +169,8 @@ INSTALL (DIRECTORY src/core/common/
    FILES_MATCHING
    PATTERN "*.h")
  
 -INSTALL(FILES "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${PROJECT_NAME}.pc"
--        DESTINATION lib/pkgconfig)
+-        DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
 +INSTALL(FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc"
 +        DESTINATION libdata/pkgconfig)
  
diff --git a/graphics/openjph/pkg-plist b/graphics/openjph/pkg-plist
index f7899e850117..aff0e55bfd5c 100644
--- a/graphics/openjph/pkg-plist
+++ b/graphics/openjph/pkg-plist
@@ -11,5 +11,6 @@ include/openjph/ojph_message.h
 include/openjph/ojph_params.h
 include/openjph/ojph_version.h
 lib/libopenjph.so
+lib/libopenjph.so.0
 lib/libopenjph.so.%%PORTVERSION%%
 libdata/pkgconfig/openjph.pc