aboutsummaryrefslogtreecommitdiff
path: root/science/orthanc/Makefile
blob: 3499dd0439afc705e994d13b3b7fe224f5501fdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PORTNAME=	orthanc
DISTVERSION=	1.11.0
PORTREVISION=	4
CATEGORIES=	science
MASTER_SITES=	https://www.orthanc-server.com/downloads/get.php?path=/orthanc/
DISTNAME=	Orthanc-${PORTVERSION}

MAINTAINER=	maintainer.freebsd@xpoundit.com
COMMENT=	Lightweight DICOM server for healthcare and medical research
WWW=		https://www.orthanc-server.com/

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libboost_atomic.so:devel/boost-libs \
		libcivetweb.so:www/civetweb \
		libcurl.so:ftp/curl \
		libdcmtkcharls.so:graphics/dcmtk \
		libgtest.so:devel/googletest \
		libicuuc.so:devel/icu \
		libjsoncpp.so:devel/jsoncpp \
		libpng16.so:graphics/png \
		libpugixml.so:textproc/pugixml \
		libtiff.so:graphics/tiff \
		libuuid.so:misc/e2fsprogs-libuuid

USES=		cmake gnome iconv jpeg lua python:build sqlite ssl
USE_GNOME=	libxml2
USE_LDCONFIG=	yes

USE_RC_SUBR=	orthanc

CMAKE_ON=	USE_SYSTEM_BOOST USE_SYSTEM_CIVETWEB USE_SYSTEM_DCMTK \
		USE_SYSTEM_GOOGLE_TEST USE_SYSTEM_JSONCPP USE_SYSTEM_LIBICONV \
		USE_SYSTEM_LIBJPEG USE_SYSTEM_LIBPNG USE_SYSTEM_LUA \
		USE_SYSTEM_OPENSSL USE_SYSTEM_PUGIXML USE_SYSTEM_SQLITE \
		USE_SYSTEM_UUID USE_SYSTEM_ZLIB
CMAKE_OFF=	BUILD_CONNECTIVITY_CHECKS UNIT_TESTS_WITH_HTTP_CONNEXIONS
CMAKE_SOURCE_PATH=	${WRKSRC}/OrthancServer

CFLAGS+=	-DNDEBUG
CXXFLAGS+=	-DNDEBUG

WRKSRC=		${WRKDIR}/Orthanc-${PORTVERSION}

USERS=		orthanc
GROUPS=		orthanc

PLIST_SUB+=	DISTVERSION=${DISTVERSION}

post-install:
	${MKDIR} ${STAGEDIR}/var/db/orthanc/db/db-v5
	${MKDIR} ${STAGEDIR}${DATADIR}/plugins
	${MKDIR} ${STAGEDIR}${ETCDIR}
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${CMAKE_SOURCE_PATH}/Resources/Configuration.json
	${CP} ${CMAKE_SOURCE_PATH}/Resources/Configuration.json ${STAGEDIR}${ETCDIR}/orthanc.json.sample

.include <bsd.port.mk>