aboutsummaryrefslogtreecommitdiffstats
path: root/math/vtk-data/Makefile
blob: d7cd3bea15dc44069788fed9463ffcdc8e5c1333 (plain) (blame)
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
# New ports collection makefile for:    vtk-data
# Date created:         10 Oct 2003
# Whom:                 Mykola Khotyaintsev <ko@irfu.se>
#
# $FreeBSD$
#

PKGNAMESUFFIX=  -data
DISTFILES=  VTKData-${PORTVERSION}.tar.gz

COMMENT=    The Visualization Toolkit examples data

MASTERDIR=  ${.CURDIR}/../vtk

DISTINFO_FILE=  ${.CURDIR}/distinfo
WRKSRC=     ${WRKDIR}/VTKData-release-${PORTVERSION}
SUB_FILES=  pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
INSTFILES=  Baseline Data VTKData.readme

do-configure:

do-patch:

do-build:

do-install:
    @${MKDIR} ${EXAMPLESDIR}
    @${MKDIR} ${VTKDATAROOT}
    @${ECHO_MSG} "Installing VTKData to ${EXAMPLESDIR} ..."
.for i in ${INSTFILES}
    @cd ${WRKSRC} && \
        ${FIND} ${i} -type d -exec ${MKDIR} ${VTKDATAROOT}/{} \; && \
        ${FIND} ${i} \! -type d -exec ${INSTALL_DATA} {} ${VTKDATAROOT}/{} \;
.endfor
    @${RMDIR} ${VTKDATAROOT}/Baseline/Common # empty

.include "${MASTERDIR}/Makefile"
.include <bsd.port.post.mk>