summaryrefslogtreecommitdiff
path: root/devel/dcmtk/Makefile
blob: ad02031d79bbe0b2b355aebce34910ad0ddde961 (plain)
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
# New ports collection Makefile for:	dcmtk
# Date created:				26 July 2010
# Whom:					gahr
#
# $FreeBSD$
#

PORTNAME=	dcmtk
DISTVERSION=	3.6.0
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	ftp://dicom.offis.de/pub/dicom/offis/software/${PORTNAME}/${PORTNAME}${PORTVERSION:S/.//g}/

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	A toolkit to work with DICOM files

LIB_DEPENDS=	tiff.4:${PORTSDIR}/graphics/tiff \
    		png15:${PORTSDIR}/graphics/png \
		jpeg.11:${PORTSDIR}/graphics/jpeg

USE_GNOME=	libxml2
USE_LDCONFIG=	yes
USE_CMAKE=	yes
CMAKE_OUTSOURCE=yes

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}

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CFLAGS+=	-fPIC
.endif

post-install:
.for shlib in ${SHLIBS}
	@${MV} ${PREFIX}/lib/lib${shlib}.so ${PREFIX}/lib/lib${shlib}.so.${SHLIBVER}
	@${LN} -sf ${PREFIX}/lib/lib${shlib}.so.${SHLIBVER} ${PREFIX}/lib/lib${shlib}.so
.endfor

#.include "Makefile.man"
.include <bsd.port.post.mk>