mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
# Created by: Pietro Cerutti <gahr@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gdcm
|
|
PORTVERSION= ${GDCM_MAJOR}.${GDCM_MINOR}.${GDCM_PATCH}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/gdcm/gdcm%202.x/GDCM%20${PORTVERSION}
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= Grassroots DICOM library
|
|
|
|
LIB_DEPENDS= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2
|
|
|
|
OPTIONS_DEFINE= VTK DOCS
|
|
OPTIONS_UNSET= DOCS
|
|
VTK_DESC= Build with VTK bindings
|
|
|
|
USE_BZIP2= yes
|
|
USES= cmake:outsource
|
|
USE_OPENSSL= yes
|
|
USE_LDCONFIG= ${PREFIX}/lib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
CMAKE_ARGS+= -DGDCM_PDF_DOCUMENTATION:BOOL=NO \
|
|
-DGDCM_USE_SYSTEM_OPENSSL:BOOL=YES \
|
|
-DGDCM_USE_SYSTEM_EXPAT:BOOL=YES \
|
|
-DGDCM_USE_SYSTEM_OPENJPEG:BOOL=YES \
|
|
-DGDCM_USE_SYSTEM_ZLIB:BOOL=YES \
|
|
-DGDCM_BUILD_APPLICATIONS:BOOL=YES \
|
|
-DGDCM_BUILD_SHARED_LIBS:BOOL=YES \
|
|
-DGDCM_BUILD_EXAMPLES:BOOL=NO \
|
|
-DGDCM_INSTALL_DATA_DIR:STRING=${DATADIR}
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MVTK}
|
|
LIB_DEPENDS+= vtkHybrid.5:${PORTSDIR}/math/vtk5
|
|
CMAKE_ARGS+= -DGDCM_USE_VTK:BOOL=YES
|
|
PLIST_SUB+= VTK=""
|
|
.else
|
|
PLIST_SUB+= VTK="@comment "
|
|
.endif
|
|
|
|
GDCM_MAJOR= 2
|
|
GDCM_MINOR= 2
|
|
GDCM_PATCH= 5
|
|
|
|
PLIST_SUB+= GDCM_MAJOR="${GDCM_MAJOR}" \
|
|
GDCM_MINOR="${GDCM_MINOR}" \
|
|
GDCM_PATCH="${GDCM_PATCH}"
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
USE_TEX= latex:build
|
|
USE_GHOSTSCRIPT=yes
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
|
CMAKE_ARGS+= -DGDCM_DOCUMENTATION:BOOL=YES \
|
|
-DGDCM_INSTALL_MAN_DIR:STRING=man \
|
|
-DGDCM_INSTALL_DOC_DIR:STRING=${DOCSDIR}
|
|
MAN1= gdcm2vtk.1 gdcmconv.1 gdcmanon.1 gdcmgendir.1 \
|
|
gdcmdump.1 gdcmimg.1 gdcminfo.1 gdcmpdf.1 \
|
|
gdcmraw.1 gdcmscanner.1 gdcmtar.1 gdcmviewer.1 \
|
|
gdcm2pnm.1 gdcmdiff.1 gdcmscu.1
|
|
PORTDOCS= *
|
|
.else
|
|
CMAKE_ARGS+= -DGDCM_DOCUMENTATION:BOOL=NO
|
|
.endif
|
|
|
|
post-build:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
cd ${WRKSRC}/Utilities/doxygen && ${LOCALBASE}/bin/doxygen -u doxyfile.in
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|