From owner-svn-ports-head@FreeBSD.ORG Wed Oct 17 09:03:40 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5BEA6894; Wed, 17 Oct 2012 09:03:40 +0000 (UTC) (envelope-from pgj@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2BC658FC12; Wed, 17 Oct 2012 09:03:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9H93eki036026; Wed, 17 Oct 2012 09:03:40 GMT (envelope-from pgj@svn.freebsd.org) Received: (from pgj@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9H93d8K036024; Wed, 17 Oct 2012 09:03:39 GMT (envelope-from pgj@svn.freebsd.org) Message-Id: <201210170903.q9H93d8K036024@svn.freebsd.org> From: Gabor Pali Date: Wed, 17 Oct 2012 09:03:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306004 - head/audio/aften X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 09:03:40 -0000 Author: pgj Date: Wed Oct 17 09:03:39 2012 New Revision: 306004 URL: http://svn.freebsd.org/changeset/ports/306004 Log: - Convert options to the new format PR: ports/172557 Submitted by: pgj Approved by: maintainer Feature safe: yes Modified: head/audio/aften/Makefile Modified: head/audio/aften/Makefile ============================================================================== --- head/audio/aften/Makefile Wed Oct 17 08:55:50 2012 (r306003) +++ head/audio/aften/Makefile Wed Oct 17 09:03:39 2012 (r306004) @@ -1,9 +1,5 @@ -# New ports collection makefile for: aften -# Date created: April 3, 2010 -# Whom: Gabor Zahemszky -# +# Created by: Gabor Zahemszky # $FreeBSD$ -# PORTNAME= aften PORTVERSION= 0.0.8 @@ -22,24 +18,27 @@ INSTALL_WRKSRC= ${BUILDDIR} USE_CMAKE= yes CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}" -OPTIONS= SHARED_LIB "Build with shared library" off \ - CXX_BINDINGS "Build with C++ bindings" off \ - DOUBLE "Use double precision" off +OPTIONS_DEFINE= SHARED_LIB CXX_BINDINGS DOUBLE +OPTIONS_DEFAULT= -.include +SHARED_LIB_DESC= Build with shared library +CXX_BINDINGS_DESC= Build with C++ bindings +DOUBLE_DESC= Use double precision -.if defined(WITH_SHARED_LIB) +.include + +.if ${PORT_OPTIONS:MSHARED_LIB} CMAKE_ARGS+= -DSHARED:BOOL=ON .endif -.if defined(WITH_CXX_BINDINGS) +.if ${PORT_OPTIONS:MCXX_BINDINGS} CMAKE_ARGS+= -DBINDINGS_CXX:BOOL=ON PLIST_SUB+= CXX="" .else PLIST_SUB+= CXX="@comment " .endif -.if defined(WITH_SHARED_LIB) || defined(WITH_CXX_BINDINGS) +.if ${PORT_OPTIONS:MSHARED_LIB} || ${PORT_OPTIONS:MCXX_BINDINGS} PLIST_SUB+= PORTVERSION="${PORTVERSION}" PLIST_SUB+= LIBS="" USE_LDCONFIG= yes @@ -47,7 +46,7 @@ USE_LDCONFIG= yes PLIST_SUB+= LIBS="@comment " .endif -.if defined(WITH_DOUBLE) +.if ${PORT_OPTIONS:MDOUBLE} CMAKE_ARGS+= -DDOUBLE:BOOL=ON .endif @@ -55,4 +54,4 @@ do-configure: @${MKDIR} ${BUILDDIR} @cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} .. -.include +.include