e9f7f0195e
PR: ports/172557 Submitted by: pgj Approved by: maintainer Feature safe: yes
57 lines
1.2 KiB
Makefile
57 lines
1.2 KiB
Makefile
# Created by: Gabor Zahemszky <Gabor@Zahemszky.HU>
|
|
# $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
|
|
|
|
USE_BZIP2= yes
|
|
|
|
BUILDDIR= ${WRKSRC}/portbuild
|
|
BUILD_WRKSRC= ${BUILDDIR}
|
|
INSTALL_WRKSRC= ${BUILDDIR}
|
|
|
|
USE_CMAKE= yes
|
|
CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:STRING="${PREFIX}"
|
|
|
|
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
|
|
|
|
do-configure:
|
|
@${MKDIR} ${BUILDDIR}
|
|
@cd ${BUILDDIR}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ..
|
|
|
|
.include <bsd.port.mk>
|