Line 0
Link Here
|
|
|
1 |
# Created by: maintainer.freebsd@xpoundit.com |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= orthanc-mysql |
5 |
PORTVERSION= 2.0 |
6 |
PORTREVISION= 3 |
7 |
CATEGORIES= science |
8 |
MASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/plugin-mysql/:main \ |
9 |
http://orthanc-server.com/downloads/get.php?path=/orthanc/:framework \ |
10 |
http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty |
11 |
DISTFILES= OrthancMySQL-${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= OrthancMySQL-${PORTVERSION}.tar.gz |
16 |
|
17 |
MAINTAINER= maintainer.freebsd@xpoundit.com |
18 |
COMMENT= Orthanc plugin to use MySQL or MariaDB 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 mysql:client localbase python:build |
31 |
|
32 |
WRKSRC= ${WRKDIR}/OrthancMySQL-${PORTVERSION} |
33 |
CMAKE_SOURCE_PATH= ${WRKSRC}/MySQL |
34 |
CMAKE_ARGS= -DUSE_SYSTEM_UUID=OFF \ |
35 |
-DUSE_SYSTEM_ORTHANC_SDK=OFF \ |
36 |
-DORTHANC_FRAMEWORK_SOURCE=path \ |
37 |
-DORTHANC_FRAMEWORK_ROOT=${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-1.7.1 \ |
38 |
-DBUILD_UNIT_TESTS=OFF |
39 |
CXXFLAGS+= -I${LOCALBASE}/include \ |
40 |
-DNDEBUG |
41 |
CFLAGS+= -DORTHANC_ENABLE_LOGGING_PLUGIN \ |
42 |
-DNDEBUG |
43 |
USE_LDCONFIG= yes |
44 |
PLIST_FILES= share/orthanc/plugins/libOrthancMySQLIndex.so \ |
45 |
share/orthanc/plugins/libOrthancMySQLIndex.so.${PORTVERSION} \ |
46 |
share/orthanc/plugins/libOrthancMySQLStorage.so \ |
47 |
share/orthanc/plugins/libOrthancMySQLStorage.so.${PORTVERSION} |
48 |
|
49 |
post-extract: |
50 |
${MKDIR} ${WRKSRC}/MySQL/ThirdPartyDownloads |
51 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads |
52 |
${CP} ${DISTDIR}/${DIST_SUBDIR}/Orthanc-1.7.1.tar.gz ${WRKSRC}/MySQL/ThirdPartyDownloads |
53 |
${TAR} -C ${WRKSRC}/MySQL/ThirdPartyDownloads -xf ${WRKSRC}/MySQL/ThirdPartyDownloads/Orthanc-1.7.1.tar.gz |
54 |
|
55 |
post-patch: |
56 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Resources/CMake/*.cmake |
57 |
|
58 |
.include <bsd.port.mk> |