aboutsummaryrefslogtreecommitdiff
path: root/audio/aften/Makefile
blob: 3ac87e6f50f4db6a9c38f5f5abff6f541a712e1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PORTNAME=	aften
PORTVERSION=	0.0.8
CATEGORIES=	audio
MASTER_SITES=	SF

MAINTAINER=	Gabor@Zahemszky.HU
COMMENT=	ATSC A/52 audio encoder
WWW=		http://aften.sourceforge.net/

USES=		tar:bzip2 cmake

CONFLICTS_INSTALL=	wavbreaker # bin/wavinfo

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>