27470e1676
* print/ghostscript{7,8,9,9-agpl}-base Installs Ghostscript binary, libgs, and related files. These ports do not depend on X11 libraries (i.e. x11* devices are not available). USES=ghostscript will set dependency on one of them depending on GHOSTSCRIPT_DEFAULT. The default device is set to "display" or "bbox". * print/ghostscript{7,8,9,9-agpl}-x11 Installs a shared library which provides X11 support to the installed Ghostscript binaries. x11* devices will be enabled when the library is available. This depends on *-base (RUN_DEPENDS). USES=ghostscript:x11 will set dependency on one of them. - Fix integer overflow reported as CVE-2015-3228. - Update Uses/ghostscript.mk: * Add x11 keyword. nox11 keyword is now obsolete. * Use packagename in *_DEPENDS line to prevent relationship between -base and -x11 packages from being broken. - Fix x11/nox11 keyword and bump PORTREVISION in ports using USES=ghostscript to update dependency of pre-compiled packages.
85 lines
2.2 KiB
Makefile
85 lines
2.2 KiB
Makefile
# Created by: Pietro Cerutti <gahr@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gdcm
|
|
PORTVERSION= ${GDCM_MAJOR}.${GDCM_MINOR}.${GDCM_PATCH}
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/gdcm/gdcm%202.x/GDCM%20${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Grassroots DICOM library
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LIB_DEPENDS= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_UNSET= DOCS
|
|
OPTIONS_RADIO= VTK
|
|
OPTIONS_RADIO_VTK= VTK5 VTK6
|
|
|
|
VTK5_DESC= Build VTK 5 integration classes
|
|
VTK5_LIB_DEPENDS= libvtkHybrid.so:${PORTSDIR}/math/vtk5
|
|
VTK5_CMAKE_ON= -DGDCM_USE_VTK:BOOL=YES \
|
|
-DVTK_DIR:PATH=${LOCALBASE}/lib/vtk-${VTK5_VERSION}
|
|
|
|
VTK6_DESC= Build VTK 6 integration classes
|
|
VTK6_LIB_DEPENDS= libvtkCommonCore-${VTK6_VERSION}.so:${PORTSDIR}/math/vtk6
|
|
VTK6_CMAKE_ON= -DGDCM_USE_VTK:BOOL=YES \
|
|
-DVTK_DIR:PATH=${LOCALBASE}/lib/vtk-${VTK6_VERSION}
|
|
|
|
# Change this when updating the port
|
|
GDCM_MAJOR= 2
|
|
GDCM_MINOR= 4
|
|
GDCM_PATCH= 4
|
|
|
|
# Change this whenever VTK is updated
|
|
VTK5_VERSION= 5.10
|
|
VTK6_VERSION= 6.1
|
|
|
|
USES= alias cmake:outsource tar:bzip2
|
|
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}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MVTK5} || ${PORT_OPTIONS:MVTK6}
|
|
PLIST_SUB+= VTK=""
|
|
.else
|
|
PLIST_SUB+= VTK="@comment "
|
|
.endif
|
|
|
|
PLIST_SUB+= GDCM_MAJOR="${GDCM_MAJOR}" \
|
|
GDCM_MINOR="${GDCM_MINOR}" \
|
|
GDCM_PATCH="${GDCM_PATCH}"
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
USE_TEX= latex:build
|
|
USES+= ghostscript
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
|
CMAKE_ARGS+= -DGDCM_DOCUMENTATION:BOOL=YES \
|
|
-DGDCM_INSTALL_MAN_DIR:STRING=man \
|
|
-DGDCM_INSTALL_DOC_DIR:STRING=${DOCSDIR}
|
|
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>
|