From owner-svn-ports-all@FreeBSD.ORG Sat May 11 13:49:08 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 76392B5D; Sat, 11 May 2013 13:49:08 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 66ADC940; Sat, 11 May 2013 13:49:08 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4BDn8YF005983; Sat, 11 May 2013 13:49:08 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4BDn6m6005966; Sat, 11 May 2013 13:49:06 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201305111349.r4BDn6m6005966@svn.freebsd.org> From: Baptiste Daroussin Date: Sat, 11 May 2013 13:49:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r317876 - in head/devel: ode ode-devel p5-Any-Moose p5-Config-Auto p5-DateTime-Util-Calc p5-Test-NoWarnings p5-Test-YAML-Valid pth ptypes sdl_console spin X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 13:49:08 -0000 Author: bapt Date: Sat May 11 13:49:05 2013 New Revision: 317876 URL: http://svnweb.freebsd.org/changeset/ports/317876 Log: Convert to new options framework Modified: head/devel/ode-devel/Makefile head/devel/ode/Makefile head/devel/p5-Any-Moose/Makefile head/devel/p5-Config-Auto/Makefile head/devel/p5-DateTime-Util-Calc/Makefile head/devel/p5-Test-NoWarnings/Makefile head/devel/p5-Test-YAML-Valid/Makefile head/devel/pth/Makefile head/devel/ptypes/Makefile head/devel/sdl_console/Makefile head/devel/spin/Makefile Modified: head/devel/ode-devel/Makefile ============================================================================== --- head/devel/ode-devel/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/ode-devel/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,9 +1,5 @@ -# New ports collection makefile for: ode -# Date created: 11 Oct 2003 -# Whom: David Yeske -# +# Created by: David Yeske # $FreeBSD$ -# PORTNAME= ode DISTVERSION= ${ODEVER}-060223 @@ -24,7 +20,9 @@ USE_GL= yes USE_GMAKE= yes MAKE_JOBS_UNSAFE= yes -OPTIONS= OPCODE "Enable code required by TriList (trimesh) class" on +OPTIONS_DEFINE= OPCODE +OPTIONS_DEFAULT= OPCODE +OPCODE_DESC= Enable code required by TriList (trimesh) class .include @@ -40,7 +38,7 @@ post-patch: s|-L/usr/lib/X11R6||; s|-L/usr/lib/X11||; s|-L/usr/X11R6/lib|-L${LOCALBASE}/lib|; \ s|-fno-rtti||; s|-ffast-math|${CXXFLAGS} -I${LOCALBASE}/include|' \ ${WRKSRC}/config/makefile.unix-gcc -.if !defined(WITHOUT_OPCODE) +.if ${PORT_OPTIONS:MOPCODE} @${REINPLACE_CMD} -e 's/^#OPCODE_DIRECTORY/OPCODE_DIRECTORY/' \ ${WRKSRC}/config/user-settings .endif Modified: head/devel/ode/Makefile ============================================================================== --- head/devel/ode/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/ode/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,9 +1,5 @@ -# New ports collection makefile for: ode -# Date created: 11 Oct 2003 -# Whom: David Yeske -# +# Created by: David Yeske # $FreeBSD$ -# PORTNAME= ode PORTVERSION= 0.11.1 @@ -23,10 +19,12 @@ GNU_CONFIGURE= yes CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" -OPTIONS= GIMPACT "Enable gimpact instead of opcode support" off \ - GYROSCOPIC "Configure ODE to work with gyroscopic term" on \ - DOUBLE "Enable double precision (BROKEN with GIMPACT)" off \ - OU "Enable Thread-local storage (Experimental)" off +OPTIONS_DEFINE= GIMPACT GYROSCOPIC DOUBLE OU +OPTIONS_DEFAULT= GYROSCOPIC +GIMPACT_DESC= Enable gimpact instead of opcode support +GYROSCOPIC_DESC= Configure ODE to work with gyroscopic term +DOUBLE_DESC= Enable double precision (BROKEN with GIMPACT) +OU_DESC= Enable Thread-local storage (Experimental) WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} @@ -36,25 +34,25 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVER CFLAGS+= -fPIC -DPIC .endif -.if defined(WITH_GIMPACT) && defined(WITH_DOUBLE) +.if ${PORT_OPTIONS:MGIMPACT) && defined(WITH_DOUBLE} IGNORE= currently double precision is not supported by gimpact .endif -.if !defined(WITH_GIMPACT) +.if ! ${PORT_OPTIONS:MGIMPACT} CONFIGURE_ARGS+= --with-trimesh=opcode .else CONFIGURE_ARGS+= --with-trimesh=gimpact .endif -.if defined(WITHOUT_GYROSCOPIC) +.if ! ${PORT_OPTIONS:MGYROSCOPIC} CONFIGURE_ARGS+= --disable-gyroscopic .endif -.if defined(WITH_DOUBLE) +.if ${PORT_OPTIONS:MDOUBLE} CONFIGURE_ARGS+= --enable-double-precision .endif -.if defined(WITH_OU) +.if ${PORT_OPTIONS:MOU} CONFIGURE_ARGS+= --enable-ou .else CONFIGURE_ARGS+= --disable-ou Modified: head/devel/p5-Any-Moose/Makefile ============================================================================== --- head/devel/p5-Any-Moose/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/p5-Any-Moose/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -16,17 +16,19 @@ PERL_CONFIGURE= yes MAN3= Any::Moose.3 -OPTIONS= MOOSE "Use Moose" off \ - MOUSE "Use Mouse" on +OPTIONS_DEFINE= MOOSE MOUSE +OPTIONS_DEFAULT= MOUSE +MOOSE_DESC= Use Moose +MOUSE_DESC= Use Mouse .include -.if !defined(WITHOUT_MOOSE) +.if ${PORT_OPTIONS:MMOOSE} BUILD_DEPENDS+= p5-Moose>0:${PORTSDIR}/devel/p5-Moose RUN_DEPENDS+= p5-Moose>0:${PORTSDIR}/devel/p5-Moose .endif -.if defined(WITH_MOUSE) +.if ${PORT_OPTIONS:MMOUSE} BUILD_DEPENDS+= p5-Mouse>=0.40:${PORTSDIR}/devel/p5-Mouse RUN_DEPENDS+= p5-Mouse>=0.40:${PORTSDIR}/devel/p5-Mouse .endif Modified: head/devel/p5-Config-Auto/Makefile ============================================================================== --- head/devel/p5-Config-Auto/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/p5-Config-Auto/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,7 +1,4 @@ -# New ports collection makefile for: p5-Config-Auto -# Date created: August 29 2003 -# Whom: Lars Thegler -# +# Created by: Lars Thegler # $FreeBSD$ PORTNAME= Config-Auto @@ -21,15 +18,16 @@ TEST_DEPENDS= p5-IO-String>=0:${PORTSDIR PERL_CONFIGURE= yes -OPTIONS= XMLSIMPLE "Support for XML config files" off +OPTIONS_DEFINE= XMLSIMPLE +XMLSIMPLE_DESC= Support for XML config files -.include +.include -.ifdef(WITH_XMLSIMPLE) +.if ${PORT_OPTIONS:MXMLSIMPLE} BUILD_DEPENDS+= p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple RUN_DEPENDS+= p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple .endif MAN3= Config::Auto.3 -.include +.include Modified: head/devel/p5-DateTime-Util-Calc/Makefile ============================================================================== --- head/devel/p5-DateTime-Util-Calc/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/p5-DateTime-Util-Calc/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -19,12 +19,12 @@ PERL_CONFIGURE= yes MAN3= DateTime::Util::Calc.3 -OPTIONS= GMP "Use GMP library" off +OPTIONS_DEFINE= GMP -.include +.include -.if defined(WITH_GMP) +.if ${PORT_OPTIONS:MGMP} BUILD_DEPENDS+= p5-Math-BigInt-GMP>=0:${PORTSDIR}/math/p5-Math-BigInt-GMP .endif -.include +.include Modified: head/devel/p5-Test-NoWarnings/Makefile ============================================================================== --- head/devel/p5-Test-NoWarnings/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/p5-Test-NoWarnings/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,9 +1,5 @@ -# New ports collection makefile for: p5-Test-NoWarnings -# Date created: May 12th 2004 -# Whom: Alex Kapranoff -# +# Created by: Alex Kapranoff # $FreeBSD$ -# PORTNAME= Test-NoWarnings PORTVERSION= 1.04 @@ -21,13 +17,14 @@ PERL_CONFIGURE= yes MAN3= Test::NoWarnings.3 -OPTIONS= DEVEL_STACKTRACE "Stack trace support" off +OPTIONS_DEFINE= DEVEL_STACKTRACE +DEVEL_STACKTRACE_DESC= Stack trace support -.include +.include -.if defined(WITH_DEVEL_STACKTRACE) +.if ${PORT_OPTIONS:MDEVEL_STACKTRACE} BUILD_DEPENDS+= p5-Devel-StackTrace>=0:${PORTSDIR}/devel/p5-Devel-StackTrace RUN_DEPENDS+= p5-Devel-StackTrace>=0:${PORTSDIR}/devel/p5-Devel-StackTrace .endif -.include +.include Modified: head/devel/p5-Test-YAML-Valid/Makefile ============================================================================== --- head/devel/p5-Test-YAML-Valid/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/p5-Test-YAML-Valid/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,9 +1,5 @@ -# New ports collection makefile for: devel/p5-Test-YAML-Valid -# Date created: 10 April 2007 -# Whom: Lars Thegler -# +# Created by: Lars Thegler # $FreeBSD$ -# PORTNAME= Test-YAML-Valid PORTVERSION= 0.04 @@ -22,14 +18,15 @@ PERL_CONFIGURE= yes MAN3= Test::YAML::Valid.3 -OPTIONS= YAMLSYCK "Use YAML::Syck for testing" OFF +OPTIONS_DEFINE= YAMLSYCK +YAMLSYCK_DESC= Use YAML::Syck for testing post-patch: ${PERL} -pi -e '$$_="" if /auto_install/' ${WRKSRC}/Makefile.PL .include -.if defined(WITH_YAMLSYCK) +.if ${PORT_OPTIONS:MYAMLSYCK} RUN_DEPENDS+= p5-YAML-Syck>0:${PORTSDIR}/textproc/p5-YAML-Syck BUILD_DEPENDS+= p5-YAML-Syck>0:${PORTSDIR}/textproc/p5-YAML-Syck .endif Modified: head/devel/pth/Makefile ============================================================================== --- head/devel/pth/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/pth/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,9 +1,5 @@ -# New ports collection makefile for: GNU Pth -# Date Created: 23 May 1999 -# Whom: Ralf S. Engelschall -# +# Created by: Ralf S. Engelschall # $FreeBSD$ -# PORTNAME= pth PORTVERSION= 2.0.7 @@ -27,11 +23,12 @@ CONFIGURE_ARGS= --enable-optimize \ MAN1= pth-config.1 MAN3= pth.3 -OPTIONS= OPTIMIZED_CFLAGS "Build with optimized CFLAGS" on +OPTIONS_DEFINE= OPTIMIZED_CFLAGS +OPTIONS_DEFAULT= OPTIMIZED_CFLAGS CONFLICTS?= pth-hard-2.* -.include +.include .if ${PKGNAMESUFFIX} == "-hard" CONFIGURE_ARGS+= --enable-syscall-hard --disable-syscall-soft @@ -44,7 +41,7 @@ MAN3+= pthread.3 .endif post-patch: -.if defined(WITHOUT_OPTIMIZED_CFLAGS) +.if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} ${REINPLACE_CMD} -e \ 's|-funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math||' \ ${WRKSRC}/configure @@ -56,4 +53,4 @@ post-build: test: build cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test -.include +.include Modified: head/devel/ptypes/Makefile ============================================================================== --- head/devel/ptypes/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/ptypes/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,10 +1,5 @@ -# ex:ts=8 -# Ports collection makefile for: ptypes -# Date created: Aug 12, 2002 -# Whom: ijliao -# +# Created by: ijliao # $FreeBSD$ -# PORTNAME= ptypes PORTVERSION= 2.1.1 @@ -21,19 +16,18 @@ PLIST_SUB+= SHLIB_VER=${SHLIB_VER} PTYPES_CFLAGS= ${CFLAGS} MAKE_JOBS_UNSAFE= yes -OPTIONS= DEBUG "Build debug version" off \ - OPTIMIZED "Enable -O2 optimization" off +OPTIONS_DEFINE= DEBUG OPTIMIZED_CFLAGS DOCS -.include +.include .if ${ARCH} == "powerpc" BROKEN= Does not install on powerpc .endif -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} DEBUG_FLAGS= "-DDEBUG -g" .endif -.if defined(WITH_OPTIMIZED) +.if ${PORT_OPTIONS:MOPTIMIZED} PTYPES_CFLAGS+=-O2 .endif @@ -48,7 +42,7 @@ do-install: ${PREFIX}/lib cd ${PREFIX}/lib; ${LN} -sf libptypes.so.${SHLIB_VER} libptypes.so ${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/lib -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${EXAMPLESDIR}/wshare -${RM} -f ${WRKSRC}/wshare/*.o ${WRKSRC}/wshare/*.orig ${INSTALL_DATA} ${WRKSRC}/wshare/*.* ${EXAMPLESDIR}/wshare @@ -58,4 +52,4 @@ do-install: cd ${WRKSRC}/doc; ${TAR} cf - *| ${TAR} xf - -C ${DOCSDIR}/doc .endif -.include +.include Modified: head/devel/sdl_console/Makefile ============================================================================== --- head/devel/sdl_console/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/sdl_console/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,9 +1,5 @@ -# New ports collection makefile for: SDL Console -# Date created: 2008-04-27 -# Whom: Yen-Ming Lee -# +# Created by: Yen-Ming Lee # $FreeBSD$ -# PORTNAME= sdl_console PORTVERSION= 2.1 @@ -19,15 +15,16 @@ USE_SDL= sdl GNU_CONFIGURE= yes USE_LDCONFIG= yes -OPTIONS= SDL_IMAGE "SDL Image support" Off +OPTIONS_DEFINE= SDL_IMAGE +SDL_IMAGE_DESC= SDL Image support post-patch: @${REINPLACE_CMD} -e '/objformat/s/aout/elf/' ${WRKSRC}/${CONFIGURE_SCRIPT} -.include +.include -.if defined(WITH_SDL_IMAGE) +.if ${PORT_OPTIONS:MSDL_IMAGE} USE_SDL+= image .endif -.include +.include Modified: head/devel/spin/Makefile ============================================================================== --- head/devel/spin/Makefile Sat May 11 13:15:45 2013 (r317875) +++ head/devel/spin/Makefile Sat May 11 13:49:05 2013 (r317876) @@ -1,9 +1,5 @@ -# Ports collection makefile for: spin -# Date created: Oct 23, 1997 -# Whom: jhanna@home.com -# +# Created by: jhanna@home.com # $FreeBSD$ -# PORTNAME= spin PORTVERSION= 5.2.2 @@ -14,11 +10,13 @@ DISTNAME= spin${PORTVERSION:S/.//g} MAINTAINER= jhanna@shaw.ca COMMENT= An on-the-fly verification system for asynchronous concurrent systems -OPTIONS= XSPIN "Install xspin and TCL/Tk dependency" on +OPTIONS_DEFINE= XSPIN DOCS +OPTIONS_DEFAULT= XSPIN +XSPIN_DESC= Install xspin and TCL/Tk dependency -.include +.include -.if !defined(WITHOUT_XSPIN) +.if ${PORT_OPTIONS:MXSPIN} RUN_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84 PLIST_SUB+= XSPIN="" XSPIN_TCL= ${WRKDIR}/Spin/Xspin5.2/xspin521.tcl @@ -37,13 +35,13 @@ post-extract: @${ECHO_MSG} "Unbundling promela example files..." @cd ${WRKDIR}/Spin/Test && ${SH} ${WRKDIR}/Spin/Test/examples -.if !defined(WITHOUT_XSPIN) +.if ${PORT_OPTIONS:MXSPIN} pre-patch: @${TR} -d '\r' < ${XSPIN_TCL} > ${XSPIN_TCL}.tmp @${MV} -f ${XSPIN_TCL}.tmp ${XSPIN_TCL} .endif -.if !defined(WITHOUT_XSPIN) +.if ${PORT_OPTIONS:MXSPIN} post-patch: @${REINPLACE_CMD} \ -e "s|%%LOCALBASE%%|${LOCALBASE}|g;" \ @@ -52,10 +50,10 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/spin ${PREFIX}/bin -.if !defined(WITHOUT_XSPIN) +.if ${PORT_OPTIONS:MXSPIN} ${INSTALL_SCRIPT} ${XSPIN_TCL} ${PREFIX}/bin/xspin .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR}/Doc ${MKDIR} ${DOCSDIR}/Examples ${MKDIR} ${DOCSDIR}/Test @@ -72,4 +70,4 @@ MANPAGE_WRKSRC= ${WRKDIR}/Spin/Man MAN1= spin.1 .endif -.include +.include