Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2012 04:51:11 +0000 (UTC)
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307638 - head/cad/netgen
Message-ID:  <201211220451.qAM4pBrJ096365@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: stephen
Date: Thu Nov 22 04:51:11 2012
New Revision: 307638
URL: http://svnweb.freebsd.org/changeset/ports/307638

Log:
  - Use new options framework.
  
  Feature safe:	yes

Modified:
  head/cad/netgen/Makefile

Modified: head/cad/netgen/Makefile
==============================================================================
--- head/cad/netgen/Makefile	Thu Nov 22 04:02:13 2012	(r307637)
+++ head/cad/netgen/Makefile	Thu Nov 22 04:51:11 2012	(r307638)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:  netgen
-# Date created:               29 April 2004
-# Whom:                       Thierry Thomas <thierry@FreeBSD.org>
-#
+# Created by: Thierry Thomas <thierry@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	netgen
 PORTVERSION=	4.9.13
@@ -31,18 +27,20 @@ CONFIGURE_ARGS+=	--with-tcl=${TCL_LIBDIR
 
 FETCH_BEFORE_ARGS+=	-o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
 
-OPTIONS=	OCC	"Compile with OpenCascade geometry kernel" 	on \
-		FFMPEG  "video recording with FFmpeg"		off
+OPTIONS_DEFINE=	OCC FFMPEG
+OCC_DESC=	Compile with OpenCascade geometry kernel
+FFMPEG_DESC=	video recording with FFmpeg
+OPTIONS_DEFAULTS=	OCC
 
 .include <bsd.port.options.mk>
 
-.if defined(WITH_OCC)
+.if ${PORT_OPTIONS:MOCC}
 LIB_DEPENDS+=	TKernel.0:${PORTSDIR}/cad/opencascade
 CXXFLAGS+=	-DOCCGEOMETRY -DOCC63 -DHAVE_WOK_CONFIG_H -DHAVE_CONFIG_H -D${ARCH} -I${LOCALBASE}/OpenCAS/ros/inc
 CONFIGURE_ARGS+=	--enable-occ
 .endif
 
-.if defined(WITH_FFMPEG)
+.if ${PORT_OPTIONS:MFFMPEG}
 LIB_DEPENDS+=	avcodec.1:${PORTSDIR}/multimedia/ffmpeg
 CONFIGURE_ARGS+=	--enable-ffmpeg
 .endif
@@ -56,6 +54,7 @@ MAKE_ENV=	TK_VER=${TK_VER} TCL_VER=${TCL
 		TK_INCLUDEDIR="${TK_INCLUDEDIR}"	\
 		MACHINE=${MACHINE} MAKE=${GMAKE}	\
 		PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}
+
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "sparc64"



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