freebsd-ports/science/InsightToolkit/Makefile
Alejandro Pulver c66048c71e ITK is an open-source software toolkit for performing registration and
segmentation. Segmentation is the process of identifying and classifying
data found in a digitally sampled representation. Typically the sampled
representation is an image acquired from such medical instrumentation as
CT or MRI scanners. Registration is the task of aligning or developing
correspondences between data. For example, in the medical environment,
a CT scan may be aligned with a MRI scan in order to combine the
information contained in both.

WWW: http://www.itk.org

Port maintainer: Jason W. Bacon
		 bacon@smithers.neuro.mcw.edu

PR:		ports/95166
Submitted by:	bacon at smithers.neuro.mcw.edu
2006-09-07 01:24:33 +00:00

55 lines
1.2 KiB
Makefile

# New ports collection Makefile for: Insight Toolkit
# Date created: 10 Aug 2006
# Whom: bacon@smithers.neuro.mcw.edu
#
# $FreeBSD$
#
PORTNAME= InsightToolkit
PORTVERSION= 2.8.1
CATEGORIES= science biology
MASTER_SITES= SF
MASTER_SITE_SUBDIR= itk
MAINTAINER= bacon@smithers.neuro.mcw.edu
COMMENT= Insight Toolkit
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
OPTIONS= EXAMPLES "Build examples (very time consuming)" off \
TESTING "Build testing programs (very time consuming)" off
USE_LDCONFIG= ${PREFIX}/lib/InsightToolkit
NO_FILTER_SHLIBS= yes
NO_PACKAGE= License does not allow redistribution of binaries
BUILD_WRKSRC= ${WRKSRC}/Build
INSTALL_WRKSRC= ${BUILD_WRKSRC}
CMAKE_ARGS= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
-DBUILD_SHARED_LIBS:BOOL=ON
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
.if !defined(WITH_EXAMPLES)
CMAKE_ARGS+= "-DBUILD_EXAMPLES:BOOL=OFF"
.endif
.if !defined(WITH_TESTING)
CMAKE_ARGS+= "-DBUILD_TESTING:BOOL=OFF"
.endif
pre-build:
@${MKDIR} ${BUILD_WRKSRC}
@cd ${BUILD_WRKSRC} && cmake ${CMAKE_ARGS} ..
post-install:
@for lib in ${PREFIX}/lib/InsightToolkit/*.so ; do \
${LN} -s $$lib.2.8.0 $$lib.2 ; \
done
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>