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