diff --git a/science/orthanc-mysql/Makefile b/science/orthanc-mysql/Makefile index 37620e7c7b54..7365fb5e0cc3 100644 --- a/science/orthanc-mysql/Makefile +++ b/science/orthanc-mysql/Makefile @@ -1,51 +1,52 @@ PORTNAME= orthanc-mysql DISTVERSION= 5.2 +PORTREVISION= 1 CATEGORIES= science MASTER_SITES= https://orthanc.uclouvain.be/downloads/sources/orthanc-mysql/:mysql \ https://orthanc.uclouvain.be/downloads/sources/orthanc/:orthanc \ https://orthanc.uclouvain.be/downloads/third-party-downloads/:thirdparty DISTFILES= OrthancMySQL-${PORTVERSION}.tar.gz:mysql \ Orthanc-${ORTHANC_VER}.tar.gz:orthanc \ e2fsprogs-1.44.5.tar.gz:thirdparty DIST_SUBDIR= orthanc EXTRACT_ONLY= OrthancMySQL-${PORTVERSION}.tar.gz MAINTAINER= jwb@FreeBSD.org COMMENT= Orthanc plugin to use MySQL/MariaDB for indexing or storage WWW= https://www.orthanc-server.com/static.php?page=mysql LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCDatabasePlugin.h:science/orthanc \ googletest>0:devel/googletest LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \ libcurl.so:ftp/curl \ libjsoncpp.so:devel/jsoncpp \ libprotobuf.so:devel/protobuf RUN_DEPENDS= Orthanc:science/orthanc USES= cmake localbase mysql:client python:build ssl USE_LDCONFIG= ${DATADIR}/plugins WRKSRC= ${WRKDIR}/OrthancMySQL-${PORTVERSION} CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-${ORTHANC_VER}/OrthancFramework/Sources \ -DORTHANC_FRAMEWORK_SOURCE=path CMAKE_OFF= DBUILD_UNIT_TESTS USE_SYSTEM_ORTHANC_SDK USE_SYSTEM_UUID CMAKE_SOURCE_PATH= ${WRKSRC}/MySQL CFLAGS+= -DORTHANC_ENABLE_LOGGING_PLUGIN -DNDEBUG CXXFLAGS+= -I${LOCALBASE}/include -DNDEBUG PLIST_SUB= DISTVERSION=${DISTVERSION} -ORTHANC_VER= 1.12.9 +.include "${.CURDIR}/../../science/orthanc/version.mk" post-extract: ${MKDIR} ${WRKSRC}/MySQL/ThirdPartyDownloads ${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads ${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-${ORTHANC_VER}.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads ${TAR} -C ${WRKSRC}/MySQL/ThirdPartyDownloads -xf ${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-${ORTHANC_VER}.tar.gz .include diff --git a/science/orthanc-mysql/distinfo b/science/orthanc-mysql/distinfo index 7b57fb02015e..facf4c2a58d5 100644 --- a/science/orthanc-mysql/distinfo +++ b/science/orthanc-mysql/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1761521650 +TIMESTAMP = 1764253462 SHA256 (orthanc/OrthancMySQL-5.2.tar.gz) = 0d446b53c3fdaa66d9f2365864f1ac54d133fe3760d7d3bb52c850ca67ce9fbb SIZE (orthanc/OrthancMySQL-5.2.tar.gz) = 603876 -SHA256 (orthanc/Orthanc-1.12.9.tar.gz) = 7a7cbc5f3663939fbef31ded021b36fcd52420337911ed43491bb663bcb5a4b2 -SIZE (orthanc/Orthanc-1.12.9.tar.gz) = 2165182 +SHA256 (orthanc/Orthanc-1.12.10.tar.gz) = b5d6934d123182fb2186cd54ef7f203be06b544afb03df67b0c64ad68d6c9286 +SIZE (orthanc/Orthanc-1.12.10.tar.gz) = 2192892 SHA256 (orthanc/e2fsprogs-1.44.5.tar.gz) = 2e211fae27ef74d5af4a4e40b10b8df7f87c655933bd171aab4889bfc4e6d1cc SIZE (orthanc/e2fsprogs-1.44.5.tar.gz) = 7619237 diff --git a/science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake b/science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake index e4826a677166..24de235a27d8 100644 --- a/science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake +++ b/science/orthanc-mysql/files/patch-OrthancFramework_Resources_CMake_ProtobufConfiguration.cmake @@ -1,47 +1,47 @@ ---- MySQL/ThirdPartyDownloads/Orthanc-1.12.9/OrthancFramework/Resources/CMake/ProtobufConfiguration.cmake.orig 2025-08-11 16:02:50 UTC -+++ MySQL/ThirdPartyDownloads/Orthanc-1.12.9/OrthancFramework/Resources/CMake/ProtobufConfiguration.cmake +--- MySQL/ThirdPartyDownloads/Orthanc-1.12.10/OrthancFramework/Resources/CMake/ProtobufConfiguration.cmake.orig 2025-08-11 16:02:50 UTC ++++ MySQL/ThirdPartyDownloads/Orthanc-1.12.10/OrthancFramework/Resources/CMake/ProtobufConfiguration.cmake @@ -60,27 +60,31 @@ else() add_custom_target(ProtobufCompiler) endif() - check_include_file_cxx(google/protobuf/any.h HAVE_PROTOBUF_H) - if (NOT HAVE_PROTOBUF_H) - message(FATAL_ERROR "Please install the libprotobuf-dev package") - endif() + if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") + find_package(Protobuf REQUIRED) + else() + check_include_file_cxx(google/protobuf/any.h HAVE_PROTOBUF_H) + if (NOT HAVE_PROTOBUF_H) + message(FATAL_ERROR "Please install the libprotobuf-dev package") + endif() - set(CMAKE_REQUIRED_LIBRARIES "protobuf") + set(CMAKE_REQUIRED_LIBRARIES "protobuf") - include(CheckCXXSourceCompiles) - check_cxx_source_compiles( - " + include(CheckCXXSourceCompiles) + check_cxx_source_compiles( + " #include int main() { google::protobuf::FieldDescriptor::TypeName(google::protobuf::FieldDescriptor::TYPE_FLOAT); } -" HAVE_PROTOBUF_LIB) - if (NOT HAVE_PROTOBUF_LIB) - message(FATAL_ERROR "Cannot find the protobuf library") - endif() + " HAVE_PROTOBUF_LIB) + if (NOT HAVE_PROTOBUF_LIB) + message(FATAL_ERROR "Cannot find the protobuf library") + endif() - unset(CMAKE_REQUIRED_LIBRARIES) + unset(CMAKE_REQUIRED_LIBRARIES) + endif() link_libraries(protobuf) endif()