9cee0df587
The plugin replaces the default SQLite engine of Orthanc with a PostgreSQL back-end. WWW: http://www.orthanc-server.com/ PR: 201673 Submitted by: mp39590@gmail.com
39 lines
1.2 KiB
Makefile
39 lines
1.2 KiB
Makefile
# Created by: mp39590@gmail.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= orthanc-portgresql
|
|
PORTVERSION= 1.1
|
|
CATEGORIES= science graphics
|
|
MASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/plugin-postgresql/
|
|
DISTNAME= OrthancPostgreSQL-${PORTVERSION}
|
|
DIST_SUBDIR= orthanc
|
|
|
|
MAINTAINER= mp39590@gmail.com
|
|
COMMENT= PostgreSQL plugin for Orthanc
|
|
|
|
LICENSE= AGPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:${PORTSDIR}/science/orthanc
|
|
LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \
|
|
libjsoncpp.so:${PORTSDIR}/devel/jsoncpp
|
|
|
|
## UnitTests require running PostgreSQL server, so it's pointless to build/run them
|
|
CMAKE_ARGS= -DBUILD_UNIT_TESTS=OFF
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
USES= cmake:outsource pgsql python:build
|
|
WRKSRC= ${WRKDIR}/OrthancPostgreSQL-${PORTVERSION}
|
|
|
|
PLIST_FILES= share/orthanc/plugins/libOrthancPostgreSQLIndex.so \
|
|
share/orthanc/plugins/libOrthancPostgreSQLIndex.so.${PORTVERSION} \
|
|
share/orthanc/plugins/libOrthancPostgreSQLStorage.so \
|
|
share/orthanc/plugins/libOrthancPostgreSQLStorage.so.${PORTVERSION}
|
|
|
|
post-extract:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Resources/CMake/*.cmake
|
|
|
|
.include <bsd.port.mk>
|