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