2010-03-03 08:51:00 +01:00
|
|
|
# New ports collection Makefile for: gdcm
|
|
|
|
# Date created: 24 February 2010
|
|
|
|
# Whom: gahr
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gdcm
|
|
|
|
PORTVERSION= ${GDCM_MAJ}.${GDCM_MIN}
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 2
|
2010-03-03 08:51:00 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= SF/gdcm/gdcm%202.x/GDCM%20${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
|
|
COMMENT= Grassroots DICOM library
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_CMAKE= yes
|
|
|
|
USE_LDCONFIG= ${PREFIX}/lib \
|
|
|
|
${PREFIX}/lib/gdcm-${GDCM_MAJ}
|
|
|
|
|
|
|
|
GDCM_MAJ= 2.0
|
|
|
|
GDCM_MIN= 14
|
|
|
|
|
|
|
|
PLIST_SUB+= GDCM_MAJ="${GDCM_MAJ}" \
|
|
|
|
GDCM_MIN="${GDCM_MIN}"
|
|
|
|
|
|
|
|
CMAKE_OUTSOURCE=yes
|
|
|
|
CMAKE_ARGS+= -DGDCM_BUILD_APPLICATIONS:BOOL=YES \
|
|
|
|
-DGDCM_BUILD_SHARED_LIBS:BOOL=YES \
|
|
|
|
-DGDCM_BUILD_EXAMPLES:BOOL=NO \
|
|
|
|
-DGDCM_INSTALL_DATA_DIR:STRING=${DATADIR}
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
|
|
|
|
pdflatex:${PORTSDIR}/print/teTeX-base
|
|
|
|
CMAKE_ARGS+= -DGDCM_DOCUMENTATION:BOOL=YES \
|
|
|
|
-DGDCM_INSTALL_MAN_DIR:STRING=${MAN1PREFIX}/man
|
|
|
|
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
|
|
|
|
PORTDOCS= *
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${INSTALL_WRKSRC}/Utilities/doxygen/html && ${COPYTREE_SHARE} \* ${DOCSDIR}
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DGDCM_DOCUMENTATION:BOOL=NO
|
|
|
|
.endif
|
|
|
|
|
2010-03-03 10:57:01 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's| NAMELINK_SKIP||; s| NAMELINK_ONLY||' ${WRKSRC}/CMakeLists.txt
|
|
|
|
|
2010-03-03 08:51:00 +01:00
|
|
|
.include <bsd.port.mk>
|