View | Details | Raw Unified | Return to bug 172557
Collapse All | Expand All

(-)b/audio/aften/Makefile (-9 / +12 lines)
Lines 22-45 INSTALL_WRKSRC= ${BUILDDIR} Link Here
22
USE_CMAKE=	yes
22
USE_CMAKE=	yes
23
CMAKE_ARGS+=	-DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}"
23
CMAKE_ARGS+=	-DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}"
24
24
25
OPTIONS=	SHARED_LIB	"Build with shared library"	off \
25
OPTIONS_DEFINE=		SHARED_LIB CXX_BINDINGS DOUBLE
26
		CXX_BINDINGS	"Build with C++ bindings"	off \
26
OPTIONS_DEFAULT=	
27
		DOUBLE		"Use double precision"		off
28
27
29
.include <bsd.port.pre.mk>
28
SHARED_LIB_DESC=	Build with shared library
29
CXX_BINDINGS_DESC=	Build with C++ bindings
30
DOUBLE_DESC=		Use double precision
30
31
31
.if defined(WITH_SHARED_LIB)
32
.include <bsd.port.options.mk>
33
34
.if ${PORT_OPTIONS:MSHARED_LIB}
32
CMAKE_ARGS+=	-DSHARED:BOOL=ON
35
CMAKE_ARGS+=	-DSHARED:BOOL=ON
33
.endif
36
.endif
34
37
35
.if defined(WITH_CXX_BINDINGS)
38
.if ${PORT_OPTIONS:MCXX_BINDINGS}
36
CMAKE_ARGS+=	-DBINDINGS_CXX:BOOL=ON
39
CMAKE_ARGS+=	-DBINDINGS_CXX:BOOL=ON
37
PLIST_SUB+=	CXX=""
40
PLIST_SUB+=	CXX=""
38
.else
41
.else
39
PLIST_SUB+=	CXX="@comment "
42
PLIST_SUB+=	CXX="@comment "
40
.endif
43
.endif
41
44
42
.if defined(WITH_SHARED_LIB) || defined(WITH_CXX_BINDINGS)
45
.if ${PORT_OPTIONS:MSHARED_LIB} || ${PORT_OPTIONS:MCXX_BINDINGS}
43
PLIST_SUB+=	PORTVERSION="${PORTVERSION}"
46
PLIST_SUB+=	PORTVERSION="${PORTVERSION}"
44
PLIST_SUB+=	LIBS=""
47
PLIST_SUB+=	LIBS=""
45
USE_LDCONFIG=	yes
48
USE_LDCONFIG=	yes
Lines 47-53 USE_LDCONFIG= yes Link Here
47
PLIST_SUB+=	LIBS="@comment "
50
PLIST_SUB+=	LIBS="@comment "
48
.endif
51
.endif
49
52
50
.if defined(WITH_DOUBLE)
53
.if ${PORT_OPTIONS:MDOUBLE}
51
CMAKE_ARGS+=	-DDOUBLE:BOOL=ON
54
CMAKE_ARGS+=	-DDOUBLE:BOOL=ON
52
.endif
55
.endif
53
56
Lines 55-58 do-configure: Link Here
55
	@${MKDIR} ${BUILDDIR}
58
	@${MKDIR} ${BUILDDIR}
56
	@cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ..
59
	@cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ..
57
60
58
.include <bsd.port.post.mk>
61
.include <bsd.port.mk>

Return to bug 172557