mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
4aae9d7765
optional; provide a way to disable Doxygen even when it was found in the system - License was changed to GPLv3; do not install LICENSE_FILE since it is merely a boilerplate with no actual copyright data - `audio/ardour' needs to be patched for API changes in aubio 0.4. The patch comes from upstream, but new aubio version detection logic is not directly applicable, so simply define HAVE_AUBIO4 in the port's Makefile - While here, ensure that `audio/ardour' gets all of its dependencies, (ir)regardless of particular OPTIONS selected (or not selected) for the `audio/aubio' port - Bump port revisions of `audio/ardour' and `audio/denemo', the only two libaubio consumers in the tree PR: 200556 (slightly modified)
75 lines
2.0 KiB
Makefile
75 lines
2.0 KiB
Makefile
# Created by: Edward Tomasz Napierala <trasz@pin.if.uz.zgora.pl>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ardour
|
|
PORTVERSION= 2.8.16
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://freebsd.nsu.ru/distfiles/
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Multichannel digital audio workstation
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= liblo.so:${PORTSDIR}/audio/liblo \
|
|
liblrdf.so:${PORTSDIR}/textproc/liblrdf \
|
|
libjack.so:${PORTSDIR}/audio/jack \
|
|
libaubio.so:${PORTSDIR}/audio/aubio \
|
|
libfftw3.so:${PORTSDIR}/math/fftw3 \
|
|
libfftw3f.so:${PORTSDIR}/math/fftw3-float \
|
|
libboost_date_time.so:${PORTSDIR}/devel/boost-libs \
|
|
libgnomecanvasmm-2.6.so:${PORTSDIR}/graphics/libgnomecanvasmm26
|
|
|
|
USES= cpe gettext scons pkgconfig tar:bzip2
|
|
MAKE_ARGS+= SYSLIBS=yes PREFIX=${PREFIX} NLS=yes
|
|
CFLAGS+= -I${LOCALBASE}/include -DHAVE_AUBIO4
|
|
USE_GNOME= libxslt
|
|
USE_LDCONFIG= ${PREFIX}/lib/ardour2 ${PREFIX}/lib/ardour2/surfaces
|
|
|
|
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS VST
|
|
VST_DESC= VST plugins support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MVST}
|
|
MAKE_ARGS+= VST=yes
|
|
LIB_DEPENDS+= libwine.so:${PORTSDIR}/emulators/wine
|
|
PLIST_SUB+= NO_VST="@comment "
|
|
PLIST_SUB+= VST=""
|
|
.else
|
|
PLIST_SUB+= NO_VST=""
|
|
PLIST_SUB+= VST="@comment "
|
|
.endif
|
|
|
|
# Upstream uses these flags by default
|
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
|
CFLAGS+= -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce
|
|
. if ${ARCH} == "amd64"
|
|
MAKE_ARGS+= DIST_TARGET=x86_64
|
|
MAKE_ARGS+= FPU_OPTIMIZATION=1
|
|
. elif ${MACHINE_CPU:Msse}
|
|
MAKE_ARGS+= DIST_TARGET=i686
|
|
MAKE_ARGS+= FPU_OPTIMIZATION=1
|
|
. else
|
|
MAKE_ARGS+= DIST_TARGET=i386
|
|
MAKE_ARGS+= FPU_OPTIMIZATION=0
|
|
. endif
|
|
.else
|
|
MAKE_ARGS+= FPU_OPTIMIZATION=0
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS}|' ${WRKSRC}/SConstruct
|
|
@${REINPLACE_CMD} -e 's|alsa_pcm|oss|g' ${WRKSRC}/templates/*.template
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/ardour2/templates
|
|
${INSTALL_DATA} ${WRKSRC}/templates/*.template \
|
|
${STAGEDIR}${PREFIX}/share/ardour2/templates
|
|
|
|
.include <bsd.port.mk>
|