aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-07-28 14:45:55 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-07-28 14:45:55 +0000
commitc40103d8e4efc3906419070ba4b0d25912b196c0 (patch)
tree17bbe747ba4a83a943593dd535db1844d6507acb /science
parent6780d75b4b081bbf4df05ac7f2f533dfc66b1537 (diff)
downloadports-c40103d8e4efc3906419070ba4b0d25912b196c0.tar.gz
ports-c40103d8e4efc3906419070ba4b0d25912b196c0.zip
Notes
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/orthanc-webviewer/Makefile56
-rw-r--r--science/orthanc-webviewer/distinfo12
-rw-r--r--science/orthanc-webviewer/pkg-descr7
4 files changed, 76 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index fcdec8325ed9..8f36f7524915 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -98,6 +98,7 @@
SUBDIR += openbabel
SUBDIR += openkim
SUBDIR += orthanc
+ SUBDIR += orthanc-webviewer
SUBDIR += p5-Algorithm-SVMLight
SUBDIR += p5-Chemistry-3DBuilder
SUBDIR += p5-Chemistry-Bond-Find
diff --git a/science/orthanc-webviewer/Makefile b/science/orthanc-webviewer/Makefile
new file mode 100644
index 000000000000..59edb8c409e1
--- /dev/null
+++ b/science/orthanc-webviewer/Makefile
@@ -0,0 +1,56 @@
+# Created by: mp39590@gmail.com
+# $FreeBSD$
+
+PORTNAME= orthanc-webviewer
+PORTVERSION= 1.1
+CATEGORIES= science graphics
+MASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/plugin-webviewer/:main \
+ http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/WebViewer/:thirdparty
+DISTFILES= OrthancWebViewer-${PORTVERSION}.tar.gz:main \
+ jsPanel-2.3.3-fixed.zip:thirdparty \
+ cornerstone-0.7.1.zip:thirdparty \
+ jquery-ui-1.11.3.zip:thirdparty \
+ pako-0.2.5.zip:thirdparty \
+ js-url-1.8.6.zip:thirdparty
+DIST_SUBDIR= orthanc
+
+MAINTAINER= mp39590@gmail.com
+COMMENT= Web viewer plugin for Orthanc
+
+LICENSE= AGPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:${PORTSDIR}/science/orthanc \
+ gtest-config:${PORTSDIR}/devel/googletest
+LIB_DEPENDS= libgdcmCommon.so:${PORTSDIR}/devel/gdcm \
+ libboost_system.so:${PORTSDIR}/devel/boost-libs \
+ libboost_thread.so:${PORTSDIR}/devel/boost-libs \
+ libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \
+ libjsoncpp.so:${PORTSDIR}/devel/jsoncpp \
+ libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
+ libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
+
+CXXFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+USES= cmake:outsource python:build
+WRKSRC= ${WRKDIR}/OrthancWebViewer-${PORTVERSION}
+
+PLIST_FILES= share/orthanc/plugins/libOrthancWebViewer.so \
+ share/orthanc/plugins/libOrthancWebViewer.so.${PORTVERSION}
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/ThirdPartyDownloads
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/jsPanel-2.3.3-fixed.zip ${WRKSRC}/ThirdPartyDownloads
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/cornerstone-0.7.1.zip ${WRKSRC}/ThirdPartyDownloads
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/jquery-ui-1.11.3.zip ${WRKSRC}/ThirdPartyDownloads
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/pako-0.2.5.zip ${WRKSRC}/ThirdPartyDownloads
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/js-url-1.8.6.zip ${WRKSRC}/ThirdPartyDownloads
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Orthanc/Resources/CMake/*.cmake
+
+post-build:
+ @cd ${BUILD_WRKSRC} && ./UnitTests
+
+.include <bsd.port.mk>
diff --git a/science/orthanc-webviewer/distinfo b/science/orthanc-webviewer/distinfo
new file mode 100644
index 000000000000..c4a9f368612f
--- /dev/null
+++ b/science/orthanc-webviewer/distinfo
@@ -0,0 +1,12 @@
+SHA256 (orthanc/OrthancWebViewer-1.1.tar.gz) = 052482f3d40839c780b0a5bd8f160b9b1991fbe3945a7b28dbbf38d1577978da
+SIZE (orthanc/OrthancWebViewer-1.1.tar.gz) = 139582
+SHA256 (orthanc/jsPanel-2.3.3-fixed.zip) = 958a15c7009efbb865da62b5850a3a39661c62696e38b151c7f988f4ac445595
+SIZE (orthanc/jsPanel-2.3.3-fixed.zip) = 826542
+SHA256 (orthanc/cornerstone-0.7.1.zip) = 2133390dda5b9444b6535bb78163a493a2f0a2a6929d5cbc082034c9b1eb36a9
+SIZE (orthanc/cornerstone-0.7.1.zip) = 603973
+SHA256 (orthanc/jquery-ui-1.11.3.zip) = 045b52f293bf4f77c6689569064327495edd9e6434839b78a56299c555130282
+SIZE (orthanc/jquery-ui-1.11.3.zip) = 400437
+SHA256 (orthanc/pako-0.2.5.zip) = e493010e1b1af5c149631994365ed31e15722eed2d17cc1d95bd9af151f2005f
+SIZE (orthanc/pako-0.2.5.zip) = 704378
+SHA256 (orthanc/js-url-1.8.6.zip) = ef2c7f50921ba64ac434eacf025669f1e6f39b5584100ffa8194a3edc08d43d3
+SIZE (orthanc/js-url-1.8.6.zip) = 54717
diff --git a/science/orthanc-webviewer/pkg-descr b/science/orthanc-webviewer/pkg-descr
new file mode 100644
index 000000000000..c69229a71fea
--- /dev/null
+++ b/science/orthanc-webviewer/pkg-descr
@@ -0,0 +1,7 @@
+Web viewer plugin allows easy serial view of medical images stored in
+Orthanc server in a browser, using HTML5 technology.
+Demo: http://youtu.be/ub5IxlVqoOE
+
+The plugin can't be used for diagnostic purposes.
+
+WWW: http://www.orthanc-server.com/