# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # orthanc-mysql # orthanc-mysql/files # orthanc-mysql/files/patch-Resources_CMake_MariaDBConfiguration.cmake # orthanc-mysql/distinfo # orthanc-mysql/pkg-descr # orthanc-mysql/Makefile # echo c - orthanc-mysql mkdir -p orthanc-mysql > /dev/null 2>&1 echo c - orthanc-mysql/files mkdir -p orthanc-mysql/files > /dev/null 2>&1 echo x - orthanc-mysql/files/patch-Resources_CMake_MariaDBConfiguration.cmake sed 's/^X//' >orthanc-mysql/files/patch-Resources_CMake_MariaDBConfiguration.cmake << '8431da0578138f649d4951ee7d7ad54a' X--- Resources/CMake/MariaDBConfiguration.cmake.orig 2019-01-23 19:14:24 UTC X+++ Resources/CMake/MariaDBConfiguration.cmake X@@ -148,10 +148,21 @@ else() X message(FATAL_ERROR "Please install the libmysqlclient-dev package") X endif() X X- check_library_exists(mysqlclient mysql_init "" HAVE_MYSQL_CLIENT_LIB) X- if (NOT HAVE_MYSQL_CLIENT_LIB) X+ find_library(MYSQL_CLIENT_LIB NAMES mysqlclient PATHS X+ /usr/lib/mysql X+ /usr/local/lib/mysql X+ ) X+ X+ if (MYSQL_CLIENT_LIB) X+ check_library_exists(${MYSQL_CLIENT_LIB} mysql_init "" HAVE_MYSQL_CLIENT_LIB) X+ if (NOT HAVE_MYSQL_CLIENT_LIB) X+ message(FATAL_ERROR "Unable to use mysql_init from mysqlclient library") X+ endif() X+ get_filename_component(MYSQL_CLIENT_LIB_PATH ${MYSQL_CLIENT_LIB} DIRECTORY) X+ link_directories(${MYSQL_CLIENT_LIB_PATH}) X+ link_libraries(mysqlclient) X+ else() X message(FATAL_ERROR "Unable to find the mysqlclient library") X endif() X X- link_libraries(mysqlclient) X endif() 8431da0578138f649d4951ee7d7ad54a echo x - orthanc-mysql/distinfo sed 's/^X//' >orthanc-mysql/distinfo << '0cb6c736f0050e3f68522a7e450a5140' XTIMESTAMP = 1593008797 XSHA256 (orthanc/OrthancMySQL-2.0.tar.gz) = b44e0b092e5d70c95962383142f93adba64da283e3a3fd140e1a5f0e2464971e XSIZE (orthanc/OrthancMySQL-2.0.tar.gz) = 166832 XSHA256 (orthanc/Orthanc-1.7.1.tar.gz) = b131c12a0b70a531e5fb2a38ffb258cbced2ab304231a52e491de22d69df8ffc XSIZE (orthanc/Orthanc-1.7.1.tar.gz) = 1640397 XSHA256 (orthanc/e2fsprogs-1.44.5.tar.gz) = 2e211fae27ef74d5af4a4e40b10b8df7f87c655933bd171aab4889bfc4e6d1cc XSIZE (orthanc/e2fsprogs-1.44.5.tar.gz) = 7619237 0cb6c736f0050e3f68522a7e450a5140 echo x - orthanc-mysql/pkg-descr sed 's/^X//' >orthanc-mysql/pkg-descr << '794f151f9ed5c68f0df70c9bcbb419ab' XOrthanc can be extended with two plugins that replace the default SQLite Xengine of Orthanc with a MySQL back-end. These plugins are compatible with XMariaDB as well. X XWWW: https://www.orthanc-server.com/static.php?page=mysql 794f151f9ed5c68f0df70c9bcbb419ab echo x - orthanc-mysql/Makefile sed 's/^X//' >orthanc-mysql/Makefile << '51642adb3d5c48bf19f1d9f039cb3c58' X# Created by: maintainer.freebsd@xpoundit.com X# $FreeBSD$ X XPORTNAME= orthanc-mysql XPORTVERSION= 2.0 XPORTREVISION= 3 XCATEGORIES= science XMASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/plugin-mysql/:main \ X http://orthanc-server.com/downloads/get.php?path=/orthanc/:framework \ X http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty XDISTFILES= OrthancMySQL-${PORTVERSION}.tar.gz:main \ X Orthanc-1.7.1.tar.gz:framework \ X e2fsprogs-1.44.5.tar.gz:thirdparty XDIST_SUBDIR= orthanc XEXTRACT_ONLY= OrthancMySQL-${PORTVERSION}.tar.gz X XMAINTAINER= maintainer.freebsd@xpoundit.com XCOMMENT= Orthanc plugin to use MySQL or MariaDB for indexing or storage X XLICENSE= AGPLv3 XLICENSE_FILE= ${WRKSRC}/COPYING X XBUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCDatabasePlugin.h:science/orthanc XLIB_DEPENDS= libgdcmCommon.so:devel/gdcm \ X libboost_filesystem.so:devel/boost-libs \ X libjsoncpp.so:devel/jsoncpp \ X libpugixml.so:textproc/pugixml \ X libgtest.so:devel/googletest X XUSES= cmake mysql:client localbase python:build X XWRKSRC= ${WRKDIR}/OrthancMySQL-${PORTVERSION} XCMAKE_SOURCE_PATH= ${WRKSRC}/MySQL XCMAKE_ARGS= -DUSE_SYSTEM_UUID=OFF \ X -DUSE_SYSTEM_ORTHANC_SDK=OFF \ X -DORTHANC_FRAMEWORK_SOURCE=path \ X -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-1.7.1 \ X -DBUILD_UNIT_TESTS=OFF XCXXFLAGS+= -I${LOCALBASE}/include \ X -DNDEBUG XCFLAGS+= -DORTHANC_ENABLE_LOGGING_PLUGIN \ X -DNDEBUG XUSE_LDCONFIG= yes XPLIST_FILES= share/orthanc/plugins/libOrthancMySQLIndex.so \ X share/orthanc/plugins/libOrthancMySQLIndex.so.${PORTVERSION} \ X share/orthanc/plugins/libOrthancMySQLStorage.so \ X share/orthanc/plugins/libOrthancMySQLStorage.so.${PORTVERSION} X Xpost-extract: X ${MKDIR} ${WRKSRC}/MySQL/ThirdPartyDownloads X ${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads X ${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-1.7.1.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads X ${TAR} -C ${WRKSRC}/MySQL/ThirdPartyDownloads -xf ${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-1.7.1.tar.gz X Xpost-patch: X @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Resources/CMake/*.cmake X X.include 51642adb3d5c48bf19f1d9f039cb3c58 exit