summaryrefslogtreecommitdiff
path: root/science/orthanc-webviewer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/orthanc-webviewer/Makefile')
-rw-r--r--science/orthanc-webviewer/Makefile47
1 files changed, 22 insertions, 25 deletions
diff --git a/science/orthanc-webviewer/Makefile b/science/orthanc-webviewer/Makefile
index f05e3a9795cb..c88b6e69e403 100644
--- a/science/orthanc-webviewer/Makefile
+++ b/science/orthanc-webviewer/Makefile
@@ -1,43 +1,39 @@
PORTNAME= orthanc-webviewer
-DISTVERSION= 2.9
-PORTREVISION= 2
+DISTVERSION= 2.10
CATEGORIES= science
-MASTER_SITES= https://orthanc.uclouvain.be/downloads/sources/orthanc-webviewer/:main \
- https://orthanc.uclouvain.be/downloads/sources/orthanc/:framework \
- http://orthanc.osimis.io/ThirdPartyDownloads/WebViewer/:thirdpartywebviewer \
- http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty
-DISTFILES= OrthancWebViewer-${PORTVERSION}.tar.gz:main \
- jsPanel-2.3.3-fixed.zip:thirdpartywebviewer \
- cornerstone-0.11.0.zip:thirdpartywebviewer \
- jquery-ui-1.11.3.zip:thirdpartywebviewer \
- pako-0.2.5.zip:thirdpartywebviewer \
- js-url-1.8.6.zip:thirdpartywebviewer \
- Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz:framework \
+MASTER_SITES= https://orthanc.uclouvain.be/downloads/sources/orthanc-webviewer/:webviewer \
+ https://orthanc.uclouvain.be/downloads/sources/orthanc/:orthanc \
+ https://orthanc.uclouvain.be/downloads/third-party-downloads/web-viewer/:thirdpartyweb \
+ https://orthanc.uclouvain.be/downloads/third-party-downloads/:thirdparty
+DISTFILES= OrthancWebViewer-${PORTVERSION}.tar.gz:webviewer \
+ jsPanel-2.3.3-fixed.zip:thirdpartyweb \
+ cornerstone-0.11.0.zip:thirdpartyweb \
+ jquery-ui-1.11.3.zip:thirdpartyweb \
+ pako-0.2.5.zip:thirdpartyweb \
+ js-url-1.8.6.zip:thirdpartyweb \
+ Orthanc-${ORTHANC_VER}.tar.gz:orthanc \
e2fsprogs-1.44.5.tar.gz:thirdparty
DIST_SUBDIR= orthanc
EXTRACT_ONLY= OrthancWebViewer-${PORTVERSION}.tar.gz
-MAINTAINER= maintainer.freebsd@xpoundit.com
-COMMENT= Orthanc plugin to extend Orthanc with a Web viewer of medical images
+MAINTAINER= jwb@FreeBSD.org
+COMMENT= Orthanc web viewer plugin
WWW= https://www.orthanc-server.com/static.php?page=web-viewer
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:science/orthanc
+BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:science/orthanc \
+ googletest>0:devel/googletest
LIB_DEPENDS= libboost_atomic.so:devel/boost-libs \
- libexpat.so:textproc/expat2 \
- libgdcmCommon.so:devel/gdcm \
- libicudata.so:devel/icu \
libjsoncpp.so:devel/jsoncpp \
- libopenjp2.so:graphics/openjpeg \
libsqlite3.so:databases/sqlite3
RUN_DEPENDS= Orthanc:science/orthanc
USES= cmake localbase python:build
-USE_LDCONFIG= yes
+USE_LDCONFIG= ${DATADIR}/plugins
-CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/ThirdPartyDownloads/Orthanc-${ORTHANC_FRAMEWORK_VERSION}/OrthancFramework/Sources \
+CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/ThirdPartyDownloads/Orthanc-${ORTHANC_VER}/OrthancFramework/Sources \
-DORTHANC_FRAMEWORK_SOURCE=path
CMAKE_OFF= USE_SYSTEM_UUID
@@ -48,7 +44,8 @@ WRKSRC= ${WRKDIR}/OrthancWebViewer-${PORTVERSION}
PLIST_SUB= DISTVERSION=${DISTVERSION}
-ORTHANC_FRAMEWORK_VERSION= 1.12.6
+# Build fails with 1.12.8 and 1.12.9
+ORTHANC_VER= 1.12.7
post-extract:
${MKDIR} ${WRKSRC}/ThirdPartyDownloads
@@ -58,8 +55,8 @@ post-extract:
${CP} ${DISTDIR}/${DIST_SUBDIR}/pako-0.2.5.zip ${WRKSRC}/ThirdPartyDownloads
${CP} ${DISTDIR}/${DIST_SUBDIR}/js-url-1.8.6.zip ${WRKSRC}/ThirdPartyDownloads
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/ThirdPartyDownloads
- ${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz ${WRKSRC}/ThirdPartyDownloads
- ${TAR} -C ${WRKSRC}/ThirdPartyDownloads -xf ${WRKSRC}/ThirdPartyDownloads/Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-${ORTHANC_VER}.tar.gz ${WRKSRC}/ThirdPartyDownloads
+ ${TAR} -C ${WRKSRC}/ThirdPartyDownloads -xf ${WRKSRC}/ThirdPartyDownloads/Orthanc-${ORTHANC_VER}.tar.gz
post-build:
@cd ${BUILD_WRKSRC} && ./UnitTests