From owner-freebsd-ports-bugs@FreeBSD.ORG  Sat Sep 15 15:10:02 2007
Return-Path: <owner-freebsd-ports-bugs@FreeBSD.ORG>
Delivered-To: freebsd-ports-bugs@hub.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1392B16A417
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Sat, 15 Sep 2007 15:10:02 +0000 (UTC)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org
	[IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id 02E6C13C461
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Sat, 15 Sep 2007 15:10:02 +0000 (UTC)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8FFA1N5081490
	for <freebsd-ports-bugs@freefall.freebsd.org>;
	Sat, 15 Sep 2007 15:10:01 GMT
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8FFA1W1081488;
	Sat, 15 Sep 2007 15:10:01 GMT (envelope-from gnats)
Resent-Date: Sat, 15 Sep 2007 15:10:01 GMT
Resent-Message-Id: <200709151510.l8FFA1W1081488@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-ports-bugs@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org,
	Max Brazhnikov <makc@issp.ac.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 386EF16A418
	for <freebsd-gnats-submit@FreeBSD.org>;
	Sat, 15 Sep 2007 15:06:31 +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 3667713C457
	for <freebsd-gnats-submit@FreeBSD.org>;
	Sat, 15 Sep 2007 15:06:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l8FF6VX0081531
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Sep 2007 15:06:31 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l8FF6Vnf081530;
	Sat, 15 Sep 2007 15:06:31 GMT (envelope-from nobody)
Message-Id: <200709151506.l8FF6Vnf081530@www.freebsd.org>
Date: Sat, 15 Sep 2007 15:06:31 GMT
From: Max Brazhnikov <makc@issp.ac.ru>
To: freebsd-gnats-submit@FreeBSD.org
X-Send-Pr-Version: www-3.1
Cc: 
Subject: ports/116373: maintainer update: math/scilab-toolbox-swt
X-BeenThere: freebsd-ports-bugs@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Ports bug reports <freebsd-ports-bugs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs>
List-Post: <mailto:freebsd-ports-bugs@freebsd.org>
List-Help: <mailto:freebsd-ports-bugs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 15 Sep 2007 15:10:02 -0000


>Number:         116373
>Category:       ports
>Synopsis:       maintainer update: math/scilab-toolbox-swt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 15 15:10:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Max Brazhnikov
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
FreeBSD luna.dio.ru 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Aug  9 00:11:48 MSD 2007     root@luna.dio.ru:/usr/obj/usr/src/sys/LUNA  i386
>Description:
1. Add new port scilab-toolbox-sivp --- Scilab Image and Video Processing toolbox.
(Requested by soralx@cydem.org)
2. scilab-toolbox-swt: add optional dependence on the new port, default off.
(in separate PR)
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN --exclude=CVS /usr/ports/math/scilab-toolbox-swt/Makefile /home/makc/porting/ports/math/scilab-toolbox-swt/Makefile
--- /usr/ports/math/scilab-toolbox-swt/Makefile	2007-06-20 17:38:07.000000000 +0400
+++ /home/makc/porting/ports/math/scilab-toolbox-swt/Makefile	2007-09-15 18:46:54.000000000 +0400
@@ -21,17 +21,25 @@
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
-SCI=		${LOCALBASE}/lib/scilab
-TOOLBOXDIR?=	lib/scilab/contrib/swt
+SCILABDIR?=	lib/scilab
+CONTRIBDIR?=	${SCILABDIR}/contrib
+TOOLBOXDIR?=	${CONTRIBDIR}/${PORTNAME}
 
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS+=--prefix=${PREFIX}/${TOOLBOXDIR}
-CONFIGURE_ENV+=	SCI="${SCI}"
-USE_LDCONFIG=	${PREFIX}/${TOOLBOXDIR}
+CONFIGURE_ENV+=	SCI="${LOCALBASE}/${SCILABDIR}"
 
 PLIST_SUB=	TOOLBOXDIR=${TOOLBOXDIR}
 
+OPTIONS=	SIVP "Enable Image and Video support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SIVP)
+RUN_DEPENDS+=	${LOCALBASE}/${CONTRIBDIR}/sivp/loader.sce:${PORTSDIR}/math/scilab
+.endif
+
 post-install:
 	 @${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted: