Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2013 06:34:23 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r322748 - head/math/scilab-toolbox-swt
Message-ID:  <201307110634.r6B6YN2a057449@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jul 11 06:34:23 2013
New Revision: 322748
URL: http://svnweb.freebsd.org/changeset/ports/322748

Log:
  Use USES=display:build instead of custom implementation

Modified:
  head/math/scilab-toolbox-swt/Makefile

Modified: head/math/scilab-toolbox-swt/Makefile
==============================================================================
--- head/math/scilab-toolbox-swt/Makefile	Thu Jul 11 06:31:54 2013	(r322747)
+++ head/math/scilab-toolbox-swt/Makefile	Thu Jul 11 06:34:23 2013	(r322748)
@@ -1,9 +1,5 @@
-## New ports collection makefile for:	swt
-# Date created:				2006-03-28
-# Whom:					Max Brazhnikov makc@issp.ac.ru
-#
+# Created by: Max Brazhnikov makc@issp.ac.ru
 # $FreeBSD$
-#
 
 PORTNAME=	swt
 PORTVERSION=	0.1.11
@@ -43,7 +39,7 @@ SCILAB_ARGS=	-nogui
 PLIST_SUB+=	HELP="@comment "
 EXTRA_PATCHES+=	${FILESDIR}/extrapatch-etc__swt.start
 .else
-USE_DISPLAY=	yes
+USES=		display:build
 MAKE_ENV=	LC_ALL="C"
 PLIST_SUB+=	HELP=""
 TOOLBOX_SUBDIRS+=	jar
@@ -59,27 +55,12 @@ post-patch:
 
 pre-build:
 	${FIND} -d ${WRKSRC} \( -name '*.orig' -or -name '*.bak' \) -delete
-.if ${PORT_OPTIONS:MHELP} && !defined(DISPLAY)
-	@if [ -f ${WRKDIR}/.Xvfb.pid ]; then \
-		${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \
-		${RM} -f ${WRKDIR}/.Xvfb.pid ; \
-	fi
-	${LOCALBASE}/bin/Xvfb :1001 -screen 0 800x600x24 -fp ${LOCALBASE}/lib/X11/fonts/misc > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid
-	@sleep 5
 .endif
 
 do-build:
 	cd ${WRKSRC} && \
 		${SETENV} ${MAKE_ENV} ${SCILAB_CMD} ${SCILAB_ARGS} -f builder.sce
 
-post-build:
-.if ${PORT_OPTIONS:MHELP} && !defined(DISPLAY)
-	@if [ -f ${WRKDIR}/.Xvfb.pid ]; then \
-		${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \
-		${RM} -f ${WRKDIR}/.Xvfb.pid ; \
-	fi
-.endif
-
 do-install:
 	${MKDIR} ${TOOLBOXDIR}/sci_gateway/c
 	${INSTALL_DATA} ${WRKSRC}/loader.sce ${TOOLBOXDIR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307110634.r6B6YN2a057449>