mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# Created by: gahr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dcmtk
|
|
DISTVERSION= 3.6.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://dicom.offis.de/pub/dicom/offis/software/${PORTNAME}/${PORTNAME}${PORTVERSION:S/.//g}/
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= Toolkit to work with DICOM objects
|
|
|
|
LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff \
|
|
libpng15.so:${PORTSDIR}/graphics/png \
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg
|
|
|
|
USE_GNOME= libxml2
|
|
USE_LDCONFIG= yes
|
|
USE_OPENSSL= yes
|
|
USES= cmake:outsource
|
|
CMAKE_ARGS+= -DDCMTK_WITH_DOXYGEN:BOOL=OFF \
|
|
-DDCMTK_WITH_OPENSSL:BOOL=ON
|
|
|
|
SHLIBS= dcmdata dcmdsig dcmimage dcmimgle dcmjpeg dcmnet \
|
|
dcmpstat dcmqrdb dcmsr dcmtls dcmwlm ijg8 ijg12 \
|
|
ijg16 i2d ofstd oflog charls dcmjpls
|
|
|
|
SHLIBVER= ${PORTVERSION:R:R}
|
|
PLIST_SUB= SHLIBVER=${SHLIBVER}
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
CFLAGS+= -fPIC
|
|
.endif
|
|
|
|
post-patch:
|
|
${FIND} ${WRKSRC} -name "*.h.orig" -delete
|
|
.if !${PORT_OPTIONS:MDOCS}
|
|
${FIND} ${WRKSRC} -name CMakeLists.txt | ${XARGS} \
|
|
${REINPLACE_CMD} -e '/INSTALL_DOCDIR/d'
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/doxygen/manpages/man1/*.1 ${STAGEDIR}${PREFIX}/man/man1/
|
|
.for shlib in ${SHLIBS}
|
|
@${MV} ${STAGEDIR}${PREFIX}/lib/lib${shlib}.so ${STAGEDIR}${PREFIX}/lib/lib${shlib}.so.${SHLIBVER}
|
|
@${LN} -sf ${PREFIX}/lib/lib${shlib}.so.${SHLIBVER} ${STAGEDIR}${PREFIX}/lib/lib${shlib}.so
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|