Added
Link Here
|
1 |
# Created by: maintainer.freebsd@xpoundit.com |
2 |
|
3 |
PORTNAME= orthanc-mysql |
4 |
DISTVERSION= 4.0 |
5 |
CATEGORIES= science |
6 |
MASTER_SITES= https://www.orthanc-server.com/downloads/get.php?path=/plugin-mysql/:main \ |
7 |
https://www.orthanc-server.com/downloads/get.php?path=/orthanc/:framework \ |
8 |
https://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty |
9 |
DISTFILES= OrthancMySQL-${PORTVERSION}.tar.gz:main \ |
10 |
Orthanc-1.9.3.tar.gz:framework \ |
11 |
e2fsprogs-1.44.5.tar.gz:thirdparty |
12 |
DIST_SUBDIR= orthanc |
13 |
EXTRACT_ONLY= OrthancMySQL-${PORTVERSION}.tar.gz |
14 |
|
15 |
MAINTAINER= maintainer.freebsd@xpoundit.com |
16 |
COMMENT= Plugins to use MySQL or MariaDB for indexing and storage in Orthanc |
17 |
|
18 |
LICENSE= AGPLv3 |
19 |
LICENSE_FILE= ${WRKSRC}/COPYING |
20 |
|
21 |
BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCDatabasePlugin.h:science/orthanc |
22 |
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \ |
23 |
libcurl.so:ftp/curl \ |
24 |
libgdcmCommon.so:devel/gdcm \ |
25 |
libjsoncpp.so:devel/jsoncpp \ |
26 |
libpugixml.so:textproc/pugixml |
27 |
RUN_DEPENDS= Orthanc:science/orthanc |
28 |
|
29 |
USES= cmake localbase mysql:client python:build ssl |
30 |
|
31 |
WRKSRC= ${WRKDIR}/OrthancMySQL-${PORTVERSION} |
32 |
CMAKE_SOURCE_PATH= ${WRKSRC}/MySQL |
33 |
CMAKE_OFF= DBUILD_UNIT_TESTS USE_SYSTEM_ORTHANC_SDK USE_SYSTEM_UUID |
34 |
CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancFramework/Sources \ |
35 |
-DORTHANC_FRAMEWORK_SOURCE=path |
36 |
CXXFLAGS+= -I${LOCALBASE}/include -DNDEBUG |
37 |
CFLAGS+= -DORTHANC_ENABLE_LOGGING_PLUGIN -DNDEBUG |
38 |
|
39 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
40 |
|
41 |
post-extract: |
42 |
${MKDIR} ${WRKSRC}/MySQL/ThirdPartyDownloads |
43 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads |
44 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-1.9.3.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads |
45 |
${TAR} -C ${WRKSRC}/MySQL/ThirdPartyDownloads -xf ${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-1.9.3.tar.gz |
46 |
|
47 |
.include <bsd.port.mk> |