Line 0
Link Here
|
|
|
1 |
# Created by: maintainer.freebsd@xpoundit.com |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= orthanc |
5 |
PORTVERSION= 1.7.2 |
6 |
CATEGORIES= science |
7 |
MASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/orthanc/:main \ |
8 |
http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty |
9 |
DISTFILES= Orthanc-${PORTVERSION}.tar.gz:main \ |
10 |
civetweb-1.12-fixed.tar.gz:thirdparty \ |
11 |
e2fsprogs-1.44.5.tar.gz:thirdparty |
12 |
DIST_SUBDIR= ${PORTNAME} |
13 |
EXTRACT_ONLY= Orthanc-${PORTVERSION}.tar.gz |
14 |
|
15 |
MAINTAINER= maintainer.freebsd@xpoundit.com |
16 |
COMMENT= Orthanc is a DICOM server for healthcare and medical research |
17 |
|
18 |
LICENSE= GPLv3 |
19 |
LICENSE_FILE= ${WRKSRC}/COPYING |
20 |
|
21 |
LIB_DEPENDS= libboost_atomic.so:devel/boost-libs \ |
22 |
libcharls.so:graphics/dcmtk \ |
23 |
libcurl.so:ftp/curl \ |
24 |
libgtest.so:devel/googletest \ |
25 |
libicudata.so:devel/icu \ |
26 |
libjbig.so:graphics/jbigkit \ |
27 |
libjpeg.so:graphics/jpeg-turbo \ |
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 \ |
34 |
libuuid.so:misc/e2fsprogs-libuuid \ |
35 |
libxml2.so:textproc/libxml2 |
36 |
|
37 |
USES= cmake dos2unix iconv jpeg lua python:build ssl |
38 |
|
39 |
WRKSRC= ${WRKDIR}/Orthanc-${PORTVERSION} |
40 |
CMAKE_SOURCE_PATH= ${WRKSRC}/OrthancServer |
41 |
CMAKE_ARGS= -DDCMTK_LIBRARIES="dcmdsig;charls;dcmjpls" \ |
42 |
-DDCMTK_DIR="${LOCALBASE}" \ |
43 |
-DDCMTK_DICTIONARY_DIR="${LOCALBASE}/share/dcmtk" \ |
44 |
-DUSE_SYSTEM_CIVETWEB=OFF \ |
45 |
-DUSE_SYSTEM_UUID=OFF \ |
46 |
-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF \ |
47 |
-DBUILD_CONNECTIVITY_CHECKS=OFF |
48 |
CFLAGS+= -I${LOCALBASE}/include \ |
49 |
-DNDEBUG |
50 |
CXXFLAGS+= -DNDEBUG |
51 |
DOS2UNIX_FILES= ${WRKSRC}/OrthancServer/CMakeLists.txt |
52 |
USE_LDCONFIG= yes |
53 |
USE_RC_SUBR= orthanc |
54 |
USERS= orthanc |
55 |
GROUPS= orthanc |
56 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
57 |
|
58 |
post-patch: |
59 |
${MKDIR} ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads |
60 |
${MKDIR} ${CMAKE_SOURCE_PATH}/Plugins/Samples/ConnectivityChecks/ThirdPartyDownloads |
61 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/civetweb-1.12-fixed.tar.gz ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads |
62 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads |
63 |
|
64 |
post-install: |
65 |
${MKDIR} ${STAGEDIR}/var/db/orthanc/db/db-v5 |
66 |
${MKDIR} ${STAGEDIR}${DATADIR}/plugins |
67 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
68 |
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${CMAKE_SOURCE_PATH}/Resources/Configuration.json |
69 |
${CP} ${CMAKE_SOURCE_PATH}/Resources/Configuration.json ${STAGEDIR}${ETCDIR}/orthanc.json.sample |
70 |
|
71 |
.include <bsd.port.mk> |