aboutsummaryrefslogtreecommitdiff
path: root/math/vtk-data/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/vtk-data/Makefile')
-rw-r--r--math/vtk-data/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/math/vtk-data/Makefile b/math/vtk-data/Makefile
index dd23ddf90af8..52b5c4dca4bb 100644
--- a/math/vtk-data/Makefile
+++ b/math/vtk-data/Makefile
@@ -6,17 +6,17 @@
#
PKGNAMESUFFIX= -data
-DISTFILES= VTKData-${PORTVERSION}-cvs${CVSDATE}.tar.gz
+DISTFILES= VTKData-${PORTVERSION}.tar.gz
COMMENT= The Visualization Toolkit examples data
-BROKEN= Unfetchable
-
MASTERDIR= ${.CURDIR}/../vtk
MD5_FILE= ${.CURDIR}/distinfo
-WRKSRC= ${WRKDIR}/VTKData
-PKGMESSAGE= ${.CURDIR}/pkg-message
+WRKSRC= ${WRKDIR}/VTKData-release-${PORTVERSION}
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+INSTFILES= Baseline Data VTKData.readme
do-configure:
@@ -28,7 +28,12 @@ do-install:
@${MKDIR} ${EXAMPLESDIR}
@${MKDIR} ${VTKDATAROOT}
@${ECHO_MSG} "Installing VTKData to ${EXAMPLESDIR} ..."
- @${CP} -R ${WRKSRC}/* ${VTKDATAROOT}
+.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>