6df3d90f95
share/dcmtk-x.y.z -> share/dcmtk Prevents dependent ports and other tools that require access to DCMTK dictionaries from breaking every time the dcmtk version changes. PR: 293668 Approved by: (blanket, prevent consumer breakage)
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
PORTNAME= dcmtk
|
|
DISTVERSIONPREFIX= ${PORTNAME:tu}-
|
|
DISTVERSION= 3.7.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics devel
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= DICOM ToolKit, libraries and applications for DICOM/MEDICOM standard
|
|
WWW= https://dcmtk.org/en/ \
|
|
https://github.com/DCMTK/dcmtk
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
|
|
|
LIB_DEPENDS= libicuuc.so:devel/icu \
|
|
libpng.so:graphics/png \
|
|
libtiff.so:graphics/tiff
|
|
|
|
USES= cmake compiler:c++11-lang cpe gnome jpeg pathfix ssl
|
|
CPE_VENDOR= offis
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ${PORTNAME:tu}
|
|
USE_GNOME= libxml2
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
CMAKE_OFF= DCMTK_WITH_DOXYGEN
|
|
|
|
TEST_TARGET= test test-exhaustive
|
|
|
|
ETCDIR= ${PREFIX}/etc/${PORTNAME}-${PORTVERSION}
|
|
DATADIR= ${PREFIX}/share/${PORTNAME}-${PORTVERSION}
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
|
|
PORTSCOUT= limit:^.*[0-9].*$$ # prevent tags like latest
|
|
|
|
PLIST_SUB= SOVERSION=${DISTVERSION}
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH:Mpowerpc*} && ${COMPILER_VERSION} == 140
|
|
LLVM_VER= 15
|
|
BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER}
|
|
CC= ${LOCALBASE}/bin/clang${LLVM_VER}
|
|
CXX= ${LOCALBASE}/bin/clang++${LLVM_VER}
|
|
.endif
|
|
|
|
# tests as of 3.7.0: 100% tests passed, 0 tests failed out of 381
|
|
|
|
# Orthanc needs access to dicom.dic and doesn't care about the dcmtk version
|
|
post-stage:
|
|
${RLN} ${STAGEDIR}${DATADIR} ${STAGEDIR}${PREFIX}/share/${PORTNAME}
|
|
|
|
.include <bsd.port.post.mk>
|