ports/172557: [audio/aften] Convert to OptionsNG
Gabor Pali
pgj at FreeBSD.org
Tue Oct 9 22:30:31 UTC 2012
>Number: 172557
>Category: ports
>Synopsis: [audio/aften] Convert to OptionsNG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Oct 09 22:30:30 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Gabor Pali
>Release: n/a
>Organization:
The FreeBSD Project
>Environment:
n/a
>Description:
- Convert options for OptionsNG format
>How-To-Repeat:
>Fix:
See the attached patch.
Patch attached with submission follows:
diff --git a/audio/aften/Makefile b/audio/aften/Makefile
index 2016b2d..3056785 100644
--- a/audio/aften/Makefile
+++ b/audio/aften/Makefile
@@ -22,24 +22,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 <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: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 +50,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 +58,4 @@ do-configure:
@${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:
More information about the freebsd-ports-bugs
mailing list