aboutsummaryrefslogtreecommitdiff
path: root/science/orthanc/Makefile
blob: 9e7f31c21893babd481890084cacf8bf95322963 (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
# Created by: maintainer.freebsd@xpoundit.com

PORTNAME=	orthanc
DISTVERSION=	1.9.3
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

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

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

CMAKE_SOURCE_PATH=	${WRKSRC}/OrthancServer
CMAKE_OFF=	BUILD_CONNECTIVITY_CHECKS UNIT_TESTS_WITH_HTTP_CONNEXIONS
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
CFLAGS+=	-DNDEBUG
CXXFLAGS+=	-DNDEBUG

USE_RC_SUBR=	orthanc

USERS=		orthanc
GROUPS=		orthanc

PLIST_SUB+=	PORTVERSION=${PORTVERSION}

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>