Added
Link Here
|
1 |
# Created by: maintainer.freebsd@xpoundit.com |
2 |
|
3 |
PORTNAME= orthanc-webviewer |
4 |
PORTVERSION= 2.7 |
5 |
CATEGORIES= science |
6 |
MASTER_SITES= https://www.orthanc-server.com/downloads/get.php?path=/plugin-webviewer/:main \ |
7 |
https://www.orthanc-server.com/downloads/get.php?path=/orthanc/:framework \ |
8 |
http://orthanc.osimis.io/ThirdPartyDownloads/WebViewer/:thirdpartywebviewer \ |
9 |
http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty |
10 |
DISTFILES= OrthancWebViewer-${PORTVERSION}.tar.gz:main \ |
11 |
jsPanel-2.3.3-fixed.zip:thirdpartywebviewer \ |
12 |
cornerstone-0.11.0.zip:thirdpartywebviewer \ |
13 |
jquery-ui-1.11.3.zip:thirdpartywebviewer \ |
14 |
pako-0.2.5.zip:thirdpartywebviewer \ |
15 |
js-url-1.8.6.zip:thirdpartywebviewer \ |
16 |
Orthanc-1.8.1.tar.gz:framework \ |
17 |
e2fsprogs-1.44.5.tar.gz:thirdparty |
18 |
DIST_SUBDIR= orthanc |
19 |
EXTRACT_ONLY= OrthancWebViewer-${PORTVERSION}.tar.gz |
20 |
|
21 |
MAINTAINER= maintainer.freebsd@xpoundit.com |
22 |
COMMENT= Plugin to extend Orthanc with a Web viewer of medical images |
23 |
|
24 |
LICENSE= AGPLv3 |
25 |
LICENSE_FILE= ${WRKSRC}/COPYING |
26 |
|
27 |
BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:science/orthanc |
28 |
LIB_DEPENDS= libboost_atomic.so:devel/boost-libs \ |
29 |
libexpat.so:textproc/expat2 \ |
30 |
libgdcmCommon.so:devel/gdcm \ |
31 |
libicudata.so:devel/icu \ |
32 |
libjsoncpp.so:devel/jsoncpp \ |
33 |
libopenjp2.so:graphics/openjpeg \ |
34 |
libsqlite3.so:databases/sqlite3 |
35 |
RUN_DEPENDS= Orthanc:science/orthanc |
36 |
|
37 |
USES= cmake localbase python:build |
38 |
USE_LDCONFIG= yes |
39 |
|
40 |
WRKSRC= ${WRKDIR}/OrthancWebViewer-${PORTVERSION} |
41 |
|
42 |
CMAKE_OFF= USE_SYSTEM_UUID |
43 |
CMAKE_ARGS= -DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/ThirdPartyDownloads/Orthanc-1.8.1/OrthancFramework/Sources \ |
44 |
-DORTHANC_FRAMEWORK_SOURCE=path |
45 |
CFLAGS+= -I${LOCALBASE}/include -DORTHANC_ENABLE_LOGGING_PLUGIN -DNDEBUG |
46 |
CXXFLAGS+= -DNDEBUG |
47 |
|
48 |
post-extract: |
49 |
${MKDIR} ${WRKSRC}/ThirdPartyDownloads |
50 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/jsPanel-2.3.3-fixed.zip ${WRKSRC}/ThirdPartyDownloads |
51 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/cornerstone-0.11.0.zip ${WRKSRC}/ThirdPartyDownloads |
52 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/jquery-ui-1.11.3.zip ${WRKSRC}/ThirdPartyDownloads |
53 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/pako-0.2.5.zip ${WRKSRC}/ThirdPartyDownloads |
54 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/js-url-1.8.6.zip ${WRKSRC}/ThirdPartyDownloads |
55 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/ThirdPartyDownloads |
56 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-1.8.1.tar.gz ${WRKSRC}/ThirdPartyDownloads |
57 |
${TAR} -C ${WRKSRC}/ThirdPartyDownloads -xf ${WRKSRC}/ThirdPartyDownloads/Orthanc-1.8.1.tar.gz |
58 |
|
59 |
post-build: |
60 |
@cd ${BUILD_WRKSRC} && ./UnitTests |
61 |
|
62 |
.include <bsd.port.mk> |