blob: 15d15e09701a2fe6089eb7f4104ee7fca803a2bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: gahr
# $FreeBSD$
PORTNAME= dcmtk
DISTVERSION= 3.6.0
PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= ftp://dicom.offis.de/pub/dicom/offis/software/${PORTNAME}/${PORTNAME}${PORTVERSION:S/.//g}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Toolkit to work with DICOM objects
LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff \
libpng.so:${PORTSDIR}/graphics/png
USE_GNOME= libxml2
USE_LDCONFIG= yes
USE_OPENSSL= yes
USES= cmake:outsource jpeg
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
CFLAGS_amd64= -fPIC
post-patch:
${FIND} ${WRKSRC} -name "*.h.orig" -delete
post-patch-DOCS-off:
${FIND} ${WRKSRC} -name CMakeLists.txt | ${XARGS} \
${REINPLACE_CMD} -e '/INSTALL_DOCDIR/d'
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.mk>
|