summaryrefslogtreecommitdiff
path: root/science/orthanc-dicomweb/Makefile
blob: 902240c38c862625b47deeda94fb808ff85df86b (plain)
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
59
60
61
62
63
PORTNAME=	orthanc-dicomweb
DISTVERSION=	1.8
PORTREVISION=	8
CATEGORIES=	science
MASTER_SITES=	https://www.orthanc-server.com/downloads/get.php?path=/plugin-dicom-web/:main \
		https://www.orthanc-server.com/downloads/get.php?path=/orthanc/:framework \
		https://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty \
		https://orthanc.osimis.io/ThirdPartyDownloads/dicom-web/:thirdpartydicomweb
DISTFILES=	OrthancDicomWeb-${PORTVERSION}.tar.gz:main
EXTRADISTFILES=	Orthanc-1.11.0.tar.gz:framework \
		e2fsprogs-1.44.5.tar.gz:thirdparty \
		bootstrap-4.3.1.zip:thirdpartydicomweb \
		vuejs-2.6.10.tar.gz:thirdpartydicomweb \
		axios-0.19.0.tar.gz:thirdpartydicomweb \
		Font-Awesome-4.7.0.tar.gz:thirdpartydicomweb \
		bootstrap-vue-2.0.0-rc.24-dist.tar.gz:thirdpartydicomweb \
		babel-polyfill-6.26.0.min.js.gz:thirdpartydicomweb
DISTFILES+=	${EXTRADISTFILES}
DIST_SUBDIR=	orthanc
EXTRACT_ONLY=	OrthancDicomWeb-${PORTVERSION}.tar.gz

MAINTAINER=	maintainer.freebsd@xpoundit.com
COMMENT=	Orthanc plugin to bring support of the DICOMweb standard into Orthanc
WWW=		https://www.orthanc-server.com/static.php?page=dicomweb

LICENSE=	AGPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${LOCALBASE}/include/orthanc/OrthancCPlugin.h:science/orthanc
LIB_DEPENDS=	libboost_atomic.so:devel/boost-libs \
		libexpat.so:textproc/expat2 \
		libgdcmCommon.so:devel/gdcm \
		libicudata.so:devel/icu \
		libjsoncpp.so:devel/jsoncpp \
		libopenjp2.so:graphics/openjpeg \
		libpugixml.so:textproc/pugixml
RUN_DEPENDS=	Orthanc:science/orthanc

USES=		cmake localbase python:build
USE_LDCONFIG=	yes

CMAKE_ARGS=	-DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/ThirdPartyDownloads/Orthanc-1.11.0/OrthancFramework/Sources \
		-DORTHANC_FRAMEWORK_SOURCE=path
CMAKE_OFF=	USE_SYSTEM_UUID

CFLAGS+=	-DORTHANC_ENABLE_LOGGING_PLUGIN -DNDEBUG
CXXFLAGS+=	-DNDEBUG

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

PLIST_SUB=	DISTVERSION=${DISTVERSION}

post-extract:
	${MKDIR} ${WRKSRC}/ThirdPartyDownloads
.for f in ${EXTRADISTFILES:C/:[^:]*//}
	${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSRC}/ThirdPartyDownloads
.endfor
	${TAR} -C ${WRKSRC}/ThirdPartyDownloads -xf ${WRKSRC}/ThirdPartyDownloads/Orthanc-1.11.0.tar.gz

do-test:
	@cd ${BUILD_WRKSRC} && ./UnitTests

.include <bsd.port.mk>