Line 0
Link Here
|
|
|
1 |
# Created by: maintainer.freebsd@xpoundit.com |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= orthanc-dicomweb |
5 |
PORTVERSION= 1.2 |
6 |
CATEGORIES= science |
7 |
MASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/plugin-dicom-web/:main \ |
8 |
http://orthanc-server.com/downloads/get.php?path=/orthanc/:framework \ |
9 |
http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty \ |
10 |
http://orthanc.osimis.io/ThirdPartyDownloads/dicom-web/:thirdpartydicomweb |
11 |
DISTFILES= OrthancDicomWeb-${PORTVERSION}.tar.gz:main \ |
12 |
Orthanc-1.7.1.tar.gz:framework \ |
13 |
e2fsprogs-1.44.5.tar.gz:thirdparty \ |
14 |
bootstrap-4.3.1.zip:thirdpartydicomweb \ |
15 |
vuejs-2.6.10.tar.gz:thirdpartydicomweb \ |
16 |
axios-0.19.0.tar.gz:thirdpartydicomweb \ |
17 |
Font-Awesome-4.7.0.tar.gz:thirdpartydicomweb \ |
18 |
bootstrap-vue-2.0.0-rc.24-dist.tar.gz:thirdpartydicomweb \ |
19 |
babel-polyfill-6.26.0.min.js.gz:thirdpartydicomweb |
20 |
DIST_SUBDIR= orthanc |
21 |
EXTRACT_ONLY= OrthancDicomWeb-${PORTVERSION}.tar.gz |
22 |
|
23 |
MAINTAINER= maintainer.freebsd@xpoundit.com |
24 |
COMMENT= Plugin to bring support of the DICOMweb standard into Orthanc |
25 |
|
26 |
LICENSE= AGPLv3 |
27 |
LICENSE_FILE= ${WRKSRC}/COPYING |
28 |
|
29 |
BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:science/orthanc |
30 |
LIB_DEPENDS= libboost_atomic.so:devel/boost-libs \ |
31 |
libexpat.so:textproc/expat2 \ |
32 |
libgdcmCommon.so:devel/gdcm \ |
33 |
libicudata.so:devel/icu \ |
34 |
libjsoncpp.so:devel/jsoncpp \ |
35 |
libopenjp2.so:graphics/openjpeg \ |
36 |
libpugixml.so:textproc/pugixml |
37 |
|
38 |
USES= cmake localbase python:build ssl |
39 |
|
40 |
WRKSRC= ${WRKDIR}/OrthancDicomWeb-${PORTVERSION} |
41 |
CMAKE_ARGS= -DUSE_SYSTEM_UUID=OFF \ |
42 |
-DORTHANC_FRAMEWORK_SOURCE=path \ |
43 |
-DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/ThirdPartyDownloads/Orthanc-1.7.1 |
44 |
CFLAGS+= -DORTHANC_ENABLE_LOGGING_PLUGIN \ |
45 |
-DNDEBUG |
46 |
CXXFLAGS+= -DNDEBUG |
47 |
USE_LDCONFIG= yes |
48 |
PLIST_FILES= share/orthanc/plugins/libOrthancDicomWeb.so \ |
49 |
share/orthanc/plugins/libOrthancDicomWeb.so.${PORTVERSION} |
50 |
|
51 |
post-extract: |
52 |
${MKDIR} ${WRKSRC}/ThirdPartyDownloads |
53 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/ThirdPartyDownloads |
54 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/bootstrap-4.3.1.zip ${WRKSRC}/ThirdPartyDownloads |
55 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/vuejs-2.6.10.tar.gz ${WRKSRC}/ThirdPartyDownloads |
56 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/axios-0.19.0.tar.gz ${WRKSRC}/ThirdPartyDownloads |
57 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/Font-Awesome-4.7.0.tar.gz ${WRKSRC}/ThirdPartyDownloads |
58 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/bootstrap-vue-2.0.0-rc.24-dist.tar.gz ${WRKSRC}/ThirdPartyDownloads |
59 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/babel-polyfill-6.26.0.min.js.gz ${WRKSRC}/ThirdPartyDownloads |
60 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-1.7.1.tar.gz ${WRKSRC}/ThirdPartyDownloads |
61 |
${TAR} -C ${WRKSRC}/ThirdPartyDownloads -xf ${WRKSRC}/ThirdPartyDownloads/Orthanc-1.7.1.tar.gz |
62 |
|
63 |
post-patch: |
64 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Resources/CMake/*.cmake |
65 |
|
66 |
do-test: |
67 |
@cd ${BUILD_WRKSRC} && ./UnitTests |
68 |
|
69 |
.include <bsd.port.mk> |