Date: Wed, 21 Nov 2012 21:42:58 GMT From: Chris Petrik <c.petrik.sosa@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173775: [PATCH] audio/aften optionsng Message-ID: <201211212142.qALLgwgF013224@red.freebsd.org> Resent-Message-ID: <201211212150.qALLo0ot036908@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <Gabor@Zahemszky.HU> -# +# Created by: Gabor Zahemszky <Gabor@Zahemszky.HU> # $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 <bsd.port.pre.mk> +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 <bsd.port.options.mk> + +.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 <bsd.port.post.mk> +.include <bsd.port.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211212142.qALLgwgF013224>