View | Details | Raw Unified | Return to bug 242546 | Differences between
and this patch

Collapse All | Expand All

(-)science/orthanc/Makefile (-60 / +39 lines)
Lines 1-92 Link Here
1
# Created by: mp39590@gmail.com
1
# Created by: maintainer.freebsd@xpoundit.com
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	orthanc
4
PORTNAME=	orthanc
5
PORTVERSION=	1.3.0
5
PORTVERSION=	1.7.2
6
PORTREVISION=	4
6
CATEGORIES=	science
7
CATEGORIES=	science graphics net www
8
MASTER_SITES=	http://orthanc-server.com/downloads/get.php?path=/orthanc/:main \
7
MASTER_SITES=	http://orthanc-server.com/downloads/get.php?path=/orthanc/:main \
9
		http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/:mongoose
8
		http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty
10
DISTFILES=	Orthanc-${PORTVERSION}.tar.gz:main \
9
DISTFILES=	Orthanc-${PORTVERSION}.tar.gz:main \
11
		mongoose-3.8.tgz:mongoose
10
		civetweb-1.12-fixed.tar.gz:thirdparty \
11
		e2fsprogs-1.44.5.tar.gz:thirdparty
12
DIST_SUBDIR=	${PORTNAME}
12
DIST_SUBDIR=	${PORTNAME}
13
EXTRACT_ONLY=	Orthanc-${PORTVERSION}.tar.gz
13
14
14
MAINTAINER=	mp39590@gmail.com
15
MAINTAINER=	maintainer.freebsd@xpoundit.com
15
COMMENT=	RESTful DICOM server for healthcare and medical research
16
COMMENT=	Orthanc is a DICOM server for healthcare and medical research
16
17
17
# GPLv3 license, with the OpenSSL exception.
18
LICENSE=	GPLv3
18
LICENSE=	GPLv3
19
LICENSE_FILE=	${WRKSRC}/COPYING
19
LICENSE_FILE=	${WRKSRC}/COPYING
20
20
21
BROKEN=		fails to build with boost 1.66, see bug 224177
21
LIB_DEPENDS=	libboost_atomic.so:devel/boost-libs \
22
BROKEN_powerpc64=	fails to configure: CMake: Looking for C++ include pugixml.hpp - not found
22
		libcharls.so:graphics/dcmtk \
23
DEPRECATED=	Broken for more than 3 months
23
		libcurl.so:ftp/curl \
24
EXPIRATION_DATE=	2018-06-06
24
		libgtest.so:devel/googletest \
25
25
		libicudata.so:devel/icu \
26
LIB_DEPENDS=	libcurl.so:ftp/curl \
26
		libjbig.so:graphics/jbigkit \
27
		libjpeg.so:graphics/jpeg-turbo \
27
		libjsoncpp.so:devel/jsoncpp \
28
		libjsoncpp.so:devel/jsoncpp \
29
		libnghttp2.so:www/libnghttp2 \
30
		libpng16.so:graphics/png \
31
		libpugixml.so:textproc/pugixml \
32
		libsqlite3.so:databases/sqlite3 \
33
		libtiff.so:graphics/tiff \
28
		libuuid.so:misc/e2fsprogs-libuuid \
34
		libuuid.so:misc/e2fsprogs-libuuid \
29
		libboost_filesystem.so:devel/boost-libs \
35
		libxml2.so:textproc/libxml2
30
		libboost_thread.so:devel/boost-libs \
31
		libboost_system.so:devel/boost-libs \
32
		libboost_date_time.so:devel/boost-libs \
33
		libboost_regex.so:devel/boost-libs \
34
		libboost_locale.so:devel/boost-libs \
35
		libdcmdsig.so:devel/dcmtk \
36
		libcharls.so:devel/dcmtk \
37
		libdcmjpls.so:devel/dcmtk \
38
		libsqlite3.so:databases/sqlite3 \
39
		libpng.so:graphics/png \
40
		libgtest.so:devel/googletest \
41
		libpugixml.so:textproc/pugixml
42
36
37
USES=		cmake dos2unix iconv jpeg lua python:build ssl
38
39
WRKSRC=		${WRKDIR}/Orthanc-${PORTVERSION}
40
CMAKE_SOURCE_PATH= ${WRKSRC}/OrthancServer
43
CMAKE_ARGS=	-DDCMTK_LIBRARIES="dcmdsig;charls;dcmjpls" \
41
CMAKE_ARGS=	-DDCMTK_LIBRARIES="dcmdsig;charls;dcmjpls" \
44
		-DDCMTK_DIR="${LOCALBASE}" \
42
		-DDCMTK_DIR="${LOCALBASE}" \
45
		-DDCMTK_DICTIONARY_DIR="${LOCALBASE}/share/dcmtk" \
43
		-DDCMTK_DICTIONARY_DIR="${LOCALBASE}/share/dcmtk" \
46
		-DUSE_SYSTEM_MONGOOSE=OFF \
44
		-DUSE_SYSTEM_CIVETWEB=OFF \
47
		-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF
45
		-DUSE_SYSTEM_UUID=OFF \
48
46
		-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF \
49
USES=		cmake:outsource dos2unix jpeg lua:51 python:build ssl
47
		-DBUILD_CONNECTIVITY_CHECKS=OFF
50
CFLAGS+=	-I${LOCALBASE}/include
48
CFLAGS+=	-I${LOCALBASE}/include \
49
		-DNDEBUG
50
CXXFLAGS+=	-DNDEBUG
51
DOS2UNIX_FILES=	CMakeLists.txt
51
DOS2UNIX_FILES=	CMakeLists.txt
52
USE_LDCONFIG=	yes
52
USE_LDCONFIG=	yes
53
USE_RC_SUBR=	orthanc
53
USE_RC_SUBR=	orthanc
54
WRKSRC=		${WRKDIR}/Orthanc-${PORTVERSION}
55
USERS=		orthanc
54
USERS=		orthanc
56
GROUPS=		orthanc
55
GROUPS=		orthanc
57
PLIST_SUB+=	PORTVERSION=${PORTVERSION}
56
PLIST_SUB+=	PORTVERSION=${PORTVERSION}
58
57
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:
58
post-patch:
68
	${MKDIR} ${WRKSRC}/ThirdPartyDownloads
59
	${MKDIR} ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads
69
	${CP} ${DISTDIR}/${DIST_SUBDIR}/mongoose-3.8.tgz ${WRKSRC}/ThirdPartyDownloads
60
	${MKDIR} ${CMAKE_SOURCE_PATH}/Plugins/Samples/ConnectivityChecks/ThirdPartyDownloads
70
	# Orthanc hardcodes /usr/local paths for libs and includes.
61
	${CP} ${DISTDIR}/${DIST_SUBDIR}/civetweb-1.12-fixed.tar.gz ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads
71
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Resources/CMake/*.cmake
62
	${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads
72
63
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:
64
post-install:
85
	${MKDIR} ${STAGEDIR}/var/db/orthanc/db/db-v5
65
	${MKDIR} ${STAGEDIR}/var/db/orthanc/db/db-v5
86
	${MKDIR} ${STAGEDIR}${DATADIR}/plugins
66
	${MKDIR} ${STAGEDIR}${DATADIR}/plugins
87
	${MKDIR} ${STAGEDIR}${ETCDIR}
67
	${MKDIR} ${STAGEDIR}${ETCDIR}
88
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Resources/Configuration.json
68
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${CMAKE_SOURCE_PATH}/Resources/Configuration.json
89
	${CP} ${WRKSRC}/Resources/Configuration.json ${STAGEDIR}${ETCDIR}/orthanc.json.sample
69
	${CP} ${CMAKE_SOURCE_PATH}/Resources/Configuration.json ${STAGEDIR}${ETCDIR}/orthanc.json.sample
90
	${STRIP_CMD} ${STAGEDIR}${DATADIR}/plugins/libServeFolders.so.${PORTVERSION}
91
70
92
.include <bsd.port.mk>
71
.include <bsd.port.mk>
(-)science/orthanc/distinfo (-5 / +7 lines)
Lines 1-5 Link Here
1
TIMESTAMP = 1508149082
1
TIMESTAMP = 1596543829
2
SHA256 (orthanc/Orthanc-1.3.0.tar.gz) = a68b3c3fda8ea5cd065d356b314737634d8088d6ab2380c9ccfa433cc8fe61de
2
SHA256 (orthanc/Orthanc-1.7.2.tar.gz) = ea167b4688db7cd8855a1758f289b21d490e7d97afcc405f12d881b22bf17e9b
3
SIZE (orthanc/Orthanc-1.3.0.tar.gz) = 1231636
3
SIZE (orthanc/Orthanc-1.7.2.tar.gz) = 1644200
4
SHA256 (orthanc/mongoose-3.8.tgz) = 6afc2c377614a01a24b78560a62d1316b29372afe08eae3715b56c877be71c6e
4
SHA256 (orthanc/civetweb-1.12-fixed.tar.gz) = 0e81fc252166302a33abd68e98936fb24d9b008b5816fe50edd6b12256768e41
5
SIZE (orthanc/mongoose-3.8.tgz) = 1577314
5
SIZE (orthanc/civetweb-1.12-fixed.tar.gz) = 3035855
6
SHA256 (orthanc/e2fsprogs-1.44.5.tar.gz) = 2e211fae27ef74d5af4a4e40b10b8df7f87c655933bd171aab4889bfc4e6d1cc
7
SIZE (orthanc/e2fsprogs-1.44.5.tar.gz) = 7619237
(-)science/orthanc/pkg-descr (-16 / +19 lines)
Lines 1-20 Link Here
1
Orthanc aims at providing a simple, yet powerful standalone DICOM
1
Orthanc aims at providing a simple, yet powerful standalone DICOM server. It
2
server. It is designed to improve the DICOM flows in hospitals and to
2
is designed to improve the DICOM flows in hospitals and to support research
3
support research about the automated analysis of medical images.
3
about the automated analysis of medical images. Orthanc lets its users focus
4
on the content of the DICOM files, hiding the complexity of the DICOM format
5
and of the DICOM protocol.
4
6
5
Orthanc can turn any computer running Windows, Linux, FreeBSD or OS X
7
Orthanc can turn any computer running Windows, Linux, FreeBSD or OS X into a
6
into a DICOM store (in other words, a mini-PACS system). Its
8
DICOM store (in other words, a mini-PACS system). Its architecture is
7
architecture is lightweight and standalone, meaning that no complex
9
lightweight and standalone, meaning that no complex database administration
8
database administration is required, nor the installation of third-party
10
is required, nor the installation of third-party dependencies.
9
dependencies.
10
11
11
What makes Orthanc unique is the fact that it provides a RESTful API.
12
What makes Orthanc unique is the fact that it provides a RESTful API. Thanks
12
Thanks to this major feature, it is possible to drive Orthanc from any
13
to this major feature, it is possible to drive Orthanc from any computer
13
computer language. The DICOM tags of the stored medical images can be
14
language. The DICOM tags of the stored medical images can be downloaded in
14
downloaded in the JSON file format. Furthermore, standard PNG images can
15
the JSON file format. Furthermore, standard PNG images can be generated
15
be generated on-the-fly from the DICOM instances by Orthanc.
16
on-the-fly from the DICOM instances by Orthanc.
16
17
17
Orthanc lets its users focus on the content of the DICOM files, hiding
18
Orthanc also features a plugin mechanism to add new modules that extends the
18
the complexity of the DICOM format and of the DICOM protocol.
19
core capabilities of its REST API. A Web viewer, a PostgreSQL database
20
back-end, a MySQL database back-end, and a reference implementation of
21
DICOMweb are currently freely available as plugins.
19
22
20
WWW: http://www.orthanc-server.com/
23
WWW: https://www.orthanc-server.com/
(-)science/orthanc/pkg-plist (-5 / +4 lines)
Lines 10-19 Link Here
10
@mode
10
@mode
11
include/orthanc/OrthancCDatabasePlugin.h
11
include/orthanc/OrthancCDatabasePlugin.h
12
include/orthanc/OrthancCPlugin.h
12
include/orthanc/OrthancCPlugin.h
13
include/orthanc/OrthancCppDatabasePlugin.h
14
%%DATADIR%%/plugins/libServeFolders.so
15
%%DATADIR%%/plugins/libServeFolders.so.%%PORTVERSION%%
16
%%DATADIR%%/plugins/libModalityWorklists.so
17
%%DATADIR%%/plugins/libModalityWorklists.so.%%PORTVERSION%%
18
bin/OrthancRecoverCompressedFile
13
bin/OrthancRecoverCompressedFile
19
sbin/Orthanc
14
sbin/Orthanc
15
%%DATADIR%%/plugins/%%LUA_LIBDIR%%ModalityWorklists.so
16
%%DATADIR%%/plugins/%%LUA_LIBDIR%%ModalityWorklists.so.%%PORTVERSION%%
17
%%DATADIR%%/plugins/%%LUA_LIBDIR%%ServeFolders.so
18
%%DATADIR%%/plugins/%%LUA_LIBDIR%%ServeFolders.so.%%PORTVERSION%%

Return to bug 242546