Lines 2-86
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= orthanc |
4 |
PORTNAME= orthanc |
5 |
PORTVERSION= 1.3.0 |
5 |
PORTVERSION= 1.6.1 |
6 |
PORTREVISION= 4 |
6 |
PORTREVISION= 0 |
7 |
CATEGORIES= science graphics net www |
7 |
CATEGORIES= science |
8 |
MASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/orthanc/:main \ |
8 |
MASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/orthanc/:main \ |
9 |
http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/:mongoose |
9 |
http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty |
10 |
DISTFILES= Orthanc-${PORTVERSION}.tar.gz:main \ |
10 |
DISTFILES= Orthanc-${PORTVERSION}.tar.gz:main \ |
11 |
mongoose-3.8.tgz:mongoose |
11 |
civetweb-1.12-fixed.tar.gz:thirdparty \ |
|
|
12 |
e2fsprogs-1.44.5.tar.gz:thirdparty \ |
13 |
dicom-web/bootstrap-4.3.1.zip:thirdparty \ |
14 |
dicom-web/vuejs-2.6.10.tar.gz:thirdparty \ |
15 |
dicom-web/axios-0.19.0.tar.gz:thirdparty \ |
16 |
jquery-3.4.1.min.js:thirdparty |
12 |
DIST_SUBDIR= ${PORTNAME} |
17 |
DIST_SUBDIR= ${PORTNAME} |
|
|
18 |
EXTRACT_ONLY= Orthanc-${PORTVERSION}.tar.gz |
13 |
|
19 |
|
14 |
MAINTAINER= mp39590@gmail.com |
20 |
MAINTAINER= maintainer.freebsd@xpoundit.com |
15 |
COMMENT= RESTful DICOM server for healthcare and medical research |
21 |
COMMENT= Orthanc is a DICOM server for healthcare and medical research |
16 |
|
22 |
|
17 |
# GPLv3 license, with the OpenSSL exception. |
|
|
18 |
LICENSE= GPLv3 |
23 |
LICENSE= GPLv3 |
19 |
LICENSE_FILE= ${WRKSRC}/COPYING |
24 |
LICENSE_FILE= ${WRKSRC}/COPYING |
20 |
|
25 |
|
21 |
BROKEN= fails to build with boost 1.66, see bug 224177 |
26 |
LIB_DEPENDS= libboost_atomic.so:devel/boost-libs \ |
22 |
BROKEN_powerpc64= fails to configure: CMake: Looking for C++ include pugixml.hpp - not found |
27 |
libboost_chrono.so:devel/boost-libs \ |
23 |
DEPRECATED= Broken for more than 3 months |
28 |
libboost_date_time.so:devel/boost-libs \ |
24 |
EXPIRATION_DATE= 2018-06-06 |
|
|
25 |
|
26 |
LIB_DEPENDS= libcurl.so:ftp/curl \ |
27 |
libjsoncpp.so:devel/jsoncpp \ |
28 |
libuuid.so:misc/e2fsprogs-libuuid \ |
29 |
libboost_filesystem.so:devel/boost-libs \ |
29 |
libboost_filesystem.so:devel/boost-libs \ |
|
|
30 |
libboost_locale.so:devel/boost-libs \ |
31 |
libboost_regex.so:devel/boost-libs \ |
32 |
libboost_system.so:devel/boost-libs \ |
30 |
libboost_thread.so:devel/boost-libs \ |
33 |
libboost_thread.so:devel/boost-libs \ |
31 |
libboost_system.so:devel/boost-libs \ |
34 |
libcharls.so:graphics/dcmtk \ |
32 |
libboost_date_time.so:devel/boost-libs \ |
35 |
libcmr.so:graphics/dcmtk \ |
33 |
libboost_regex.so:devel/boost-libs \ |
36 |
libcurl.so:ftp/curl \ |
34 |
libboost_locale.so:devel/boost-libs \ |
37 |
libdcmdata.so:graphics/dcmtk \ |
35 |
libdcmdsig.so:devel/dcmtk \ |
38 |
libdcmdsig.so:graphics/dcmtk \ |
36 |
libcharls.so:devel/dcmtk \ |
39 |
libdcmfg.so:graphics/dcmtk \ |
37 |
libdcmjpls.so:devel/dcmtk \ |
40 |
libdcmimage.so:graphics/dcmtk \ |
|
|
41 |
libdcmimgle.so:graphics/dcmtk \ |
42 |
libdcmiod.so:graphics/dcmtk \ |
43 |
libdcmjpeg.so:graphics/dcmtk \ |
44 |
libdcmjpls.so:graphics/dcmtk \ |
45 |
libdcmnet.so:graphics/dcmtk \ |
46 |
libdcmpmap.so:graphics/dcmtk \ |
47 |
libdcmpstat.so:graphics/dcmtk \ |
48 |
libdcmqrdb.so:graphics/dcmtk \ |
49 |
libdcmrt.so:graphics/dcmtk \ |
50 |
libdcmseg.so:graphics/dcmtk \ |
51 |
libdcmsr.so:graphics/dcmtk \ |
52 |
libdcmtls.so:graphics/dcmtk \ |
53 |
libdcmtract.so:graphics/dcmtk \ |
54 |
libdcmwlm.so:graphics/dcmtk \ |
55 |
libgtest.so:devel/googletest \ |
56 |
libgtest_main.so:devel/googletest \ |
57 |
libi2d.so:graphics/dcmtk \ |
58 |
libicudata.so:devel/icu \ |
59 |
libicui18n.so:devel/icu \ |
60 |
libicuuc.so:devel/icu \ |
61 |
libijg12.so:graphics/dcmtk \ |
62 |
libijg16.so:graphics/dcmtk \ |
63 |
libijg8.so:graphics/dcmtk \ |
64 |
libjbig.so:graphics/jbigkit \ |
65 |
libjpeg.so:graphics/jpeg-turbo \ |
66 |
libjsoncpp.so:devel/jsoncpp \ |
67 |
libnghttp2.so:www/libnghttp2 \ |
68 |
liboflog.so:graphics/dcmtk \ |
69 |
libofstd.so:graphics/dcmtk \ |
70 |
libpng16.so:graphics/png \ |
71 |
libpugixml.so:textproc/pugixml \ |
38 |
libsqlite3.so:databases/sqlite3 \ |
72 |
libsqlite3.so:databases/sqlite3 \ |
39 |
libpng.so:graphics/png \ |
73 |
libtiff.so:graphics/tiff \ |
40 |
libgtest.so:devel/googletest \ |
74 |
libuuid.so:misc/e2fsprogs-libuuid \ |
41 |
libpugixml.so:textproc/pugixml |
75 |
libxml2.so:textproc/libxml2 |
42 |
|
76 |
|
|
|
77 |
USES= cmake dos2unix jpeg lua:51 python:build ssl |
78 |
|
79 |
WRKSRC= ${WRKDIR}/Orthanc-${PORTVERSION} |
43 |
CMAKE_ARGS= -DDCMTK_LIBRARIES="dcmdsig;charls;dcmjpls" \ |
80 |
CMAKE_ARGS= -DDCMTK_LIBRARIES="dcmdsig;charls;dcmjpls" \ |
44 |
-DDCMTK_DIR="${LOCALBASE}" \ |
81 |
-DDCMTK_DIR="${LOCALBASE}" \ |
45 |
-DDCMTK_DICTIONARY_DIR="${LOCALBASE}/share/dcmtk" \ |
82 |
-DDCMTK_DICTIONARY_DIR="${LOCALBASE}/share/dcmtk" \ |
46 |
-DUSE_SYSTEM_MONGOOSE=OFF \ |
83 |
-DUSE_SYSTEM_CIVETWEB=OFF \ |
|
|
84 |
-DUSE_SYSTEM_UUID=OFF \ |
47 |
-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF |
85 |
-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF |
48 |
|
86 |
CFLAGS+= -I${LOCALBASE}/include \ |
49 |
USES= cmake:outsource dos2unix jpeg lua:51 python:build ssl |
87 |
-DNDEBUG |
50 |
CFLAGS+= -I${LOCALBASE}/include |
88 |
CXXFLAGS+= -DNDEBUG |
51 |
DOS2UNIX_FILES= CMakeLists.txt |
89 |
DOS2UNIX_FILES= CMakeLists.txt |
52 |
USE_LDCONFIG= yes |
90 |
USE_LDCONFIG= yes |
53 |
USE_RC_SUBR= orthanc |
91 |
USE_RC_SUBR= orthanc |
54 |
WRKSRC= ${WRKDIR}/Orthanc-${PORTVERSION} |
|
|
55 |
USERS= orthanc |
92 |
USERS= orthanc |
56 |
GROUPS= orthanc |
93 |
GROUPS= orthanc |
57 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
94 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
58 |
|
95 |
|
59 |
# This is mongoose sources, downloaded from Orthanc author homepage. Orthanc |
|
|
60 |
# requires mongoose webserver, but after version 3.8, mongoose developers has |
61 |
# changed the license from MIT to GPLv2 only. This action made illegal to |
62 |
# combine new mongoose versions with GPLv3 only Orthanc. |
63 |
# We download sources manually and pass USE_SYSTEM_MONGOOSE=OFF to Orthanc |
64 |
# cmake variables to tell that mongoose is not presented on the host OS and |
65 |
# should be build together with the software instead. |
66 |
# https://www.mail-archive.com/mongoose-users@googlegroups.com/msg00625.html |
67 |
post-patch: |
96 |
post-patch: |
68 |
${MKDIR} ${WRKSRC}/ThirdPartyDownloads |
97 |
${MKDIR} ${WRKSRC}/ThirdPartyDownloads |
69 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/mongoose-3.8.tgz ${WRKSRC}/ThirdPartyDownloads |
98 |
${MKDIR} ${WRKSRC}/Plugins/Samples/ConnectivityChecks/ThirdPartyDownloads |
|
|
99 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/civetweb-1.12-fixed.tar.gz ${WRKSRC}/ThirdPartyDownloads |
100 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/ThirdPartyDownloads |
101 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/dicom-web/bootstrap-4.3.1.zip ${WRKSRC}/Plugins/Samples/ConnectivityChecks/ThirdPartyDownloads |
102 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/dicom-web/vuejs-2.6.10.tar.gz ${WRKSRC}/Plugins/Samples/ConnectivityChecks/ThirdPartyDownloads |
103 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/dicom-web/axios-0.19.0.tar.gz ${WRKSRC}/Plugins/Samples/ConnectivityChecks/ThirdPartyDownloads |
104 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/jquery-3.4.1.min.js ${WRKSRC}/Plugins/Samples/ConnectivityChecks/ThirdPartyDownloads |
70 |
# Orthanc hardcodes /usr/local paths for libs and includes. |
105 |
# Orthanc hardcodes /usr/local paths for libs and includes. |
71 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Resources/CMake/*.cmake |
106 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Resources/CMake/*.cmake |
72 |
|
107 |
|
73 |
# There is no way to disable building of test units without a patch, on other |
|
|
74 |
# hand it brings only one build dependency (devel/googletest) and running it was |
75 |
# helpful in early bug detection in Debian. |
76 |
# Some tests require connections to be made to the outside world, this is |
77 |
# definitely unsupported behaviour and therefor those tests are disabled with |
78 |
# cmake variable above (-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF). |
79 |
# |
80 |
# Tests run is temporary disabled: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215393 |
81 |
#post-build: |
82 |
# @cd ${BUILD_WRKSRC} && ./UnitTests |
83 |
|
84 |
post-install: |
108 |
post-install: |
85 |
${MKDIR} ${STAGEDIR}/var/db/orthanc/db/db-v5 |
109 |
${MKDIR} ${STAGEDIR}/var/db/orthanc/db/db-v5 |
86 |
${MKDIR} ${STAGEDIR}${DATADIR}/plugins |
110 |
${MKDIR} ${STAGEDIR}${DATADIR}/plugins |