From nobody@FreeBSD.org  Mon Jul 27 02:46:50 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D439E1065680
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 27 Jul 2009 02:46:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C28DF8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 27 Jul 2009 02:46:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n6R2knOi003758
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 27 Jul 2009 02:46:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n6R2knqT003757;
	Mon, 27 Jul 2009 02:46:49 GMT
	(envelope-from nobody)
Message-Id: <200907270246.n6R2knqT003757@www.freebsd.org>
Date: Mon, 27 Jul 2009 02:46:49 GMT
From: Stas Timokhin <stast@bsdportal.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Change in port math/vtk5: add GL2PS knobs to OPTIONS
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         137162
>Category:       ports
>Synopsis:       Change in port math/vtk5: add GL2PS knobs to OPTIONS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    thierry
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 27 02:50:00 UTC 2009
>Closed-Date:    Fri Aug 07 17:05:30 UTC 2009
>Last-Modified:  Fri Aug  7 17:10:03 UTC 2009
>Originator:     Stas Timokhin
>Release:        8.0-Current
>Organization:
None
>Environment:
>Description:
This knobs need to build Salome (http://www.salome-platform.org/ex/att/16_SALOME_4_1_5_Release_Notes.pdf, page 14,) application.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2009-07-27 09:37:52.000000000 +0700
+++ Makefile	2009-07-27 09:40:46.000000000 +0700
@@ -3,12 +3,12 @@
 # Whom:                 Mykola Khotyaintsev <ko@irfu.se>
 # Repocopied from math/vtk by:	Jason W. Bacon <bacon@smithers.neuro.mcw.edu>
 #
-# $FreeBSD: ports/math/vtk5/Makefile,v 1.49 2009/07/18 11:11:11 dinoex Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	vtk
 PORTVERSION=	5.0.4
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	math graphics
 MASTER_SITES=	http://www.vtk.org/files/release/${PORTVERSION:R}/ \
 		http://www.neuro.mcw.edu/Ports/distfiles/VTK5/
@@ -50,7 +50,8 @@
 USE_LDCONFIG=	yes
 
 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" Off
 
 PLIST_SUB=	VER=${PORTVERSION} VER1=${PORTVERSION:R} VER2=${PORTVERSION:R:R}
 
@@ -107,6 +108,12 @@
 		-DVTK_USE_MPEG2_ENCODER:BOOL=ON
 .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:
 		${MKDIR} ${WRKSRC}
 		${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' \


>Release-Note:
>Audit-Trail:

From: Thierry Thomas <thierry@FreeBSD.org>
To: Stas Timokhin <stast@bsdportal.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/137162: Change in port math/vtk5: add GL2PS knobs to OPTIONS
Date: Mon, 27 Jul 2009 10:24:43 +0200

 Le Lun 27 jul 09   4:46:49 +0200, Stas Timokhin <stast@bsdportal.ru>
  crivait:
 
 > >Description:
 > This knobs need to build Salome
 > (http://www.salome-platform.org/ex/att/16_SALOME_4_1_5_Release_Notes.pdf,
 > page 14,) application.
 > 
 > >How-To-Repeat:
 > 
 > >Fix:
 > 
 > 
 > Patch attached with submission follows:
 > 
 > --- Makefile.orig	2009-07-27 09:37:52.000000000 +0700
 > +++ Makefile	2009-07-27 09:40:46.000000000 +0700
 > @@ -3,12 +3,12 @@
 >  # Whom:                 Mykola Khotyaintsev <ko@irfu.se>
 >  # Repocopied from math/vtk by:	Jason W. Bacon <bacon@smithers.neuro.mcw.edu>
 >  #
 > -# $FreeBSD: ports/math/vtk5/Makefile,v 1.49 2009/07/18 11:11:11 dinoex Exp $
 > +# $FreeBSD$
 >  #
 >  
 >  PORTNAME=	vtk
 >  PORTVERSION=	5.0.4
 > -PORTREVISION=	4
 > +PORTREVISION=	5
 >  CATEGORIES=	math graphics
 >  MASTER_SITES=	http://www.vtk.org/files/release/${PORTVERSION:R}/ \
 >  		http://www.neuro.mcw.edu/Ports/distfiles/VTK5/
 > @@ -50,7 +50,8 @@
 >  USE_LDCONFIG=	yes
 >  
 >  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" Off
 
 Remark: if you want Salome to be packageable, this option should default
 to "On".
 -- 
 Th. Thomas.
State-Changed-From-To: open->closed 
State-Changed-By: thierry 
State-Changed-When: Ven 7 ao 2009 17:04:30 UTC 
State-Changed-Why:  

Committed, thanks! 
(With the option set to on) 



Responsible-Changed-From-To: freebsd-ports-bugs->thierry 
Responsible-Changed-By: thierry 
Responsible-Changed-When: Ven 7 ao 2009 17:04:30 UTC 
Responsible-Changed-Why:  
Take it. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=137162 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/137162: commit references a PR
Date: Fri,  7 Aug 2009 17:04:19 +0000 (UTC)

 thierry     2009-08-07 17:04:10 UTC
 
   FreeBSD ports repository
 
   Modified files:
     math/vtk5            Makefile 
   Log:
   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>
   
   Revision  Changes    Path
   1.50      +9 -2      ports/math/vtk5/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
