1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/science/orthanc-webviewer/Makefile
2018-04-18 13:57:42 +00:00

56 lines
1.9 KiB
Makefile

# Created by: mp39590@gmail.com
# $FreeBSD$
PORTNAME= orthanc-webviewer
PORTVERSION= 2.3
PORTREVISION= 4
CATEGORIES= science graphics
MASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/plugin-webviewer/:main \
http://www.orthanc-server.com/downloads/third-party/WebViewer/:thirdparty
DISTFILES= OrthancWebViewer-${PORTVERSION}.tar.gz:main \
jsPanel-2.3.3-fixed.zip:thirdparty \
cornerstone-0.11.0.zip:thirdparty \
jquery-ui-1.11.3.zip:thirdparty \
pako-0.2.5.zip:thirdparty \
js-url-1.8.6.zip:thirdparty
DIST_SUBDIR= orthanc
MAINTAINER= mp39590@gmail.com
COMMENT= Web viewer plugin for Orthanc
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/orthanc/OrthancCPlugin.h:science/orthanc \
gtest-config:devel/googletest
LIB_DEPENDS= libgdcmCommon.so:devel/gdcm \
libboost_system.so:devel/boost-libs \
libboost_thread.so:devel/boost-libs \
libboost_filesystem.so:devel/boost-libs \
libjsoncpp.so:devel/jsoncpp \
libsqlite3.so:databases/sqlite3 \
libuuid.so:misc/e2fsprogs-libuuid \
libgtest.so:devel/googletest
USES= cmake:outsource localbase python:build
WRKSRC= ${WRKDIR}/OrthancWebViewer-${PORTVERSION}
PLIST_FILES= share/orthanc/plugins/libOrthancWebViewer.so \
share/orthanc/plugins/libOrthancWebViewer.so.${PORTVERSION}
post-extract:
${MKDIR} ${WRKSRC}/ThirdPartyDownloads
${CP} ${DISTDIR}/${DIST_SUBDIR}/jsPanel-2.3.3-fixed.zip ${WRKSRC}/ThirdPartyDownloads
${CP} ${DISTDIR}/${DIST_SUBDIR}/cornerstone-0.11.0.zip ${WRKSRC}/ThirdPartyDownloads
${CP} ${DISTDIR}/${DIST_SUBDIR}/jquery-ui-1.11.3.zip ${WRKSRC}/ThirdPartyDownloads
${CP} ${DISTDIR}/${DIST_SUBDIR}/pako-0.2.5.zip ${WRKSRC}/ThirdPartyDownloads
${CP} ${DISTDIR}/${DIST_SUBDIR}/js-url-1.8.6.zip ${WRKSRC}/ThirdPartyDownloads
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/Orthanc/Resources/CMake/*.cmake
post-build:
@cd ${BUILD_WRKSRC} && ./UnitTests
.include <bsd.port.mk>