1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Add GL2PS knobs to OPTIONS, and default to it.

This knobs need to build Salome application:
http://www.salome-platform.org/ex/att/16_SALOME_4_1_5_Release_Notes.pdf, page 14

PR:		ports/137162
Submitted by:	Stas Timokhin <stast (at) bsdportal.ru>
This commit is contained in:
Thierry Thomas 2009-08-07 17:04:10 +00:00
parent 79181787d7
commit 00567a5048
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=239090

View File

@ -8,7 +8,7 @@
PORTNAME= vtk PORTNAME= vtk
PORTVERSION= 5.0.4 PORTVERSION= 5.0.4
PORTREVISION= 4 PORTREVISION= 5
CATEGORIES= math graphics CATEGORIES= math graphics
MASTER_SITES= http://www.vtk.org/files/release/${PORTVERSION:R}/ \ MASTER_SITES= http://www.vtk.org/files/release/${PORTVERSION:R}/ \
http://www.neuro.mcw.edu/Ports/distfiles/VTK5/ http://www.neuro.mcw.edu/Ports/distfiles/VTK5/
@ -50,7 +50,8 @@ USE_GL= yes
USE_LDCONFIG= yes USE_LDCONFIG= yes
OPTIONS= MANGLEDMESA "Use off-screen (Mangled) Mesa" Off \ OPTIONS= MANGLEDMESA "Use off-screen (Mangled) Mesa" Off \
VTKMPEG2 "Install patented MPEG2 encoder module" Off VTKMPEG2 "Install patented MPEG2 encoder module" Off \
GL2PS "Install support conversion OpenGL to PostScript" On
PLIST_SUB= VER=${PORTVERSION} VER1=${PORTVERSION:R} VER2=${PORTVERSION:R:R} PLIST_SUB= VER=${PORTVERSION} VER1=${PORTVERSION:R} VER2=${PORTVERSION:R:R}
@ -107,6 +108,12 @@ CMAKE_ARGS+= -DvtkMPEG2Encode_INCLUDE_PATH=${LOCALBASE}/include/vtk-5.0 \
-DVTK_USE_MPEG2_ENCODER:BOOL=ON -DVTK_USE_MPEG2_ENCODER:BOOL=ON
.endif .endif
.if defined(WITH_GL2PS)
LIB_DEPENDS+= gl2ps.1:${PORTSDIR}/print/gl2ps
CMAKE_ARGS+= -DVTK_USE_GL2PS:BOOL=ON
PLIST_FILES+= include/vtk-5.0/vtkGL2PSExporter.h
.endif
post-extract: post-extract:
${MKDIR} ${WRKSRC} ${MKDIR} ${WRKSRC}
${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' \ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' \