Added
Link Here
|
1 |
# Created by: maintainer.freebsd@xpoundit.com |
2 |
|
3 |
PORTNAME= orthanc-postgresql |
4 |
PORTVERSION= 4.0 |
5 |
CATEGORIES= science |
6 |
MASTER_SITES= https://www.orthanc-server.com/downloads/get.php?path=/plugin-postgresql/:main \ |
7 |
https://www.orthanc-server.com/downloads/get.php?path=/orthanc/:framework \ |
8 |
https://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty |
9 |
DISTFILES= OrthancPostgreSQL-${PORTVERSION}.tar.gz:main \ |
10 |
Orthanc-1.9.3.tar.gz:framework \ |
11 |
e2fsprogs-1.44.5.tar.gz:thirdparty |
12 |
DIST_SUBDIR= orthanc |
13 |
EXTRACT_ONLY= OrthancPostgreSQL-${PORTVERSION}.tar.gz |
14 |
|
15 |
MAINTAINER= maintainer.freebsd@xpoundit.com |
16 |
COMMENT= Orthanc plugin to use PostgreSQL for indexing or storage |
17 |
|
18 |
LICENSE= AGPLv3 |
19 |
LICENSE_FILE= ${WRKSRC}/COPYING |
20 |
|
21 |
BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCDatabasePlugin.h:science/orthanc |
22 |
LIB_DEPENDS= libgdcmCommon.so:devel/gdcm \ |
23 |
libboost_filesystem.so:devel/boost-libs \ |
24 |
libjsoncpp.so:devel/jsoncpp \ |
25 |
libpugixml.so:textproc/pugixml \ |
26 |
libgtest.so:devel/googletest |
27 |
RUN_DEPENDS= Orthanc:science/orthanc |
28 |
|
29 |
USES= cmake compiler:c++11-lang pgsql localbase python:build ssl |
30 |
|
31 |
WRKSRC= ${WRKDIR}/OrthancPostgreSQL-${PORTVERSION} |
32 |
CMAKE_SOURCE_PATH= ${WRKSRC}/PostgreSQL |
33 |
CMAKE_ARGS= -DUSE_SYSTEM_UUID=OFF \ |
34 |
-DUSE_SYSTEM_ORTHANC_SDK=OFF \ |
35 |
-DORTHANC_FRAMEWORK_SOURCE=path \ |
36 |
-DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/PostgreSQL/ThirdPartyDownloads/Orthanc-1.9.3/OrthancFramework/Sources \ |
37 |
-DBUILD_UNIT_TESTS=OFF |
38 |
CXXFLAGS+= -I${LOCALBASE}/include \ |
39 |
-DNDEBUG |
40 |
LDFLAGS+= -L${LOCALBASE}/lib |
41 |
CFLAGS+= -DORTHANC_ENABLE_LOGGING_PLUGIN \ |
42 |
-DNDEBUG |
43 |
USE_LDCONFIG= yes |
44 |
|
45 |
post-extract: |
46 |
${MKDIR} ${WRKSRC}/PostgreSQL/ThirdPartyDownloads |
47 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/PostgreSQL/ThirdPartyDownloads |
48 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-1.9.3.tar.gz ${WRKSRC}/PostgreSQL/ThirdPartyDownloads |
49 |
${TAR} -C ${WRKSRC}/PostgreSQL/ThirdPartyDownloads -xf ${WRKSRC}/PostgreSQL/ThirdPartyDownloads/Orthanc-1.9.3.tar.gz |
50 |
|
51 |
.include <bsd.port.mk> |