From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Nov 21 21:50:01 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4FA8BBB for ; Wed, 21 Nov 2012 21:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 23C228FC18 for ; Wed, 21 Nov 2012 21:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qALLo1fU036910 for ; Wed, 21 Nov 2012 21:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qALLo0ot036908; Wed, 21 Nov 2012 21:50:00 GMT (envelope-from gnats) Resent-Date: Wed, 21 Nov 2012 21:50:00 GMT Resent-Message-Id: <201211212150.qALLo0ot036908@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, Chris Petrik Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D084EFB for ; Wed, 21 Nov 2012 21:42:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CEA1D8FC13 for ; Wed, 21 Nov 2012 21:42:58 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qALLgwpp013225 for ; Wed, 21 Nov 2012 21:42:58 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qALLgwgF013224; Wed, 21 Nov 2012 21:42:58 GMT (envelope-from nobody) Message-Id: <201211212142.qALLgwgF013224@red.freebsd.org> Date: Wed, 21 Nov 2012 21:42:58 GMT From: Chris Petrik To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/173775: [PATCH] audio/aften optionsng X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2012 21:50:01 -0000 >Number: 173775 >Category: ports >Synopsis: [PATCH] audio/aften optionsng >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 21 21:50:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Chris Petrik >Release: >Organization: na >Environment: >Description: OptionsNG fixes >How-To-Repeat: >Fix: Patch attached with submission follows: Index: aften/Makefile =================================================================== --- aften/Makefile (revision 305743) +++ aften/Makefile (working copy) @@ -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,26 @@ 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 -.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:MWITH_SHARED_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:MWITH_SHARED_LIB} || ${PORT_OPTIONS:MCXX_BINDINGS} PLIST_SUB+= PORTVERSION="${PORTVERSION}" PLIST_SUB+= LIBS="" USE_LDCONFIG= yes @@ -47,7 +45,7 @@ PLIST_SUB+= LIBS="@comment " .endif -.if defined(WITH_DOUBLE) +.if ${PORT_OPTIONS:MDOUBLE} CMAKE_ARGS+= -DDOUBLE:BOOL=ON .endif @@ -55,4 +53,4 @@ @${MKDIR} ${BUILDDIR} @cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} .. -.include +.include >Release-Note: >Audit-Trail: >Unformatted: