Files
ports/graphics/dcmtk/Makefile
Daniel Engberg c76de31594 graphics/dcmtk: Link with shared version of libtiff and add USES= pathfix
Port defines (lib)tiff as dependency using the shared library and also
refers to it in .pc file as a shared however dcmimage/libsrc compiles
using the static library. Adjust upstream code to link with the
shared library instead. While at it add USES= pathfix to fix warning
about location of installed .pc file.

PR:		281640
Reviewed by:	yuri
2024-10-09 21:43:25 +02:00

53 lines
1.3 KiB
Makefile

PORTNAME= dcmtk
DISTVERSIONPREFIX= ${PORTNAME:tu}-
DISTVERSION= 3.6.8
PORTREVISION= 1
CATEGORIES= graphics devel
PATCH_SITES= https://github.com/DCMTK/${PORTNAME}/commit/
PATCHFILES+= c29bebcd19bb963d72dcd00ca8745f60f6b9a39e.patch:-p1 # fix compilation with clang 19, gcc 15
MAINTAINER= yuri@FreeBSD.org
COMMENT= DICOM ToolKit, libraries and applications for DICOM/MEDICOM standard
WWW= https://dcmtk.org
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libicuuc.so:devel/icu \
libpng.so:graphics/png \
libtiff.so:graphics/tiff
USES= compiler:c++11-lang cmake 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
OPTIONS_DEFINE= DOCS
PORTDOCS= *
ETCDIR= ${PREFIX}/etc/${PORTNAME}-${PORTVERSION}
DATADIR= ${PREFIX}/share/${PORTNAME}-${PORTVERSION}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
TEST_TARGET= test test-exhaustive
PORTSCOUT= limit:^.*[0-9].*$$ # prevent tags like latest
.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
.include <bsd.port.post.mk>