freebsd-ports/audio/aften/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

47 lines
921 B
Makefile

# Created by: Gabor Zahemszky <Gabor@Zahemszky.HU>
# $FreeBSD$
PORTNAME= aften
PORTVERSION= 0.0.8
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= Gabor@Zahemszky.HU
COMMENT= ATSC A/52 audio encoder
USES= tar:bzip2 cmake
OPTIONS_DEFINE= SHARED_LIB CXX_BINDINGS DOUBLE
OPTIONS_DEFAULT=
SHARED_LIB_DESC= Build with shared library
CXX_BINDINGS_DESC= Build with C++ bindings
DOUBLE_DESC= Use double precision
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSHARED_LIB}
CMAKE_ARGS+= -DSHARED:BOOL=ON
.endif
.if ${PORT_OPTIONS:MCXX_BINDINGS}
CMAKE_ARGS+= -DBINDINGS_CXX:BOOL=ON
PLIST_SUB+= CXX=""
.else
PLIST_SUB+= CXX="@comment "
.endif
.if ${PORT_OPTIONS:MSHARED_LIB} || ${PORT_OPTIONS:MCXX_BINDINGS}
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
PLIST_SUB+= LIBS=""
USE_LDCONFIG= yes
.else
PLIST_SUB+= LIBS="@comment "
.endif
.if ${PORT_OPTIONS:MDOUBLE}
CMAKE_ARGS+= -DDOUBLE:BOOL=ON
.endif
.include <bsd.port.mk>