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