blob: c70011d22c88438d00a4b360d1c6822bf796d9db (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Created by: Edward Tomasz Napierala <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$
PORTNAME= ardour
PORTVERSION= 2.8.14
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://freebsd.nsu.ru/distfiles/
MAINTAINER= danfe@FreeBSD.org
COMMENT= Multichannel digital audio workstation
LICENSE= GPLv2
LIB_DEPENDS= lo:${PORTSDIR}/audio/liblo \
lrdf:${PORTSDIR}/textproc/liblrdf \
aubio:${PORTSDIR}/audio/aubio \
fftw3:${PORTSDIR}/math/fftw3 \
boost_date_time:${PORTSDIR}/devel/boost-libs \
gnomecanvasmm-2.6:${PORTSDIR}/graphics/libgnomecanvasmm26
USE_BZIP2= yes
NO_STAGE= yes
USES= gettext pkgconfig
USE_SCONS= yes
SCONS_ENV+= SYSLIBS=yes PREFIX=${PREFIX} NLS=yes
CFLAGS+= -I${LOCALBASE}/include
USE_GNOME= libxslt
USE_LDCONFIG= ${PREFIX}/lib/ardour2 ${PREFIX}/lib/ardour2/surfaces
TEMPLATESDIR= ${PREFIX}/share/ardour2/templates
PLIST_SUB= DISTVERSION=${DISTVERSION}
OPTIONS_DEFINE= OPTIMIZED_CFLAGS VST
VST_DESC= VST plugins support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MVST}
SCONS_ENV+= VST=yes
BUILD_DEPENDS+= winegcc:${PORTSDIR}/emulators/wine \
unzip:${PORTSDIR}/archivers/unzip \
gsed:${PORTSDIR}/textproc/gsed
LIB_DEPENDS+= wine.1:${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"
SCONS_ENV+= DIST_TARGET=x86_64
SCONS_ENV+= FPU_OPTIMIZATION=1
. elif ${MACHINE_CPU:Msse}
SCONS_ENV+= DIST_TARGET=i686
SCONS_ENV+= FPU_OPTIMIZATION=1
. else
SCONS_ENV+= DIST_TARGET=i386
SCONS_ENV+= FPU_OPTIMIZATION=0
. endif
.else
SCONS_ENV+= 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} ${TEMPLATESDIR}
${INSTALL_DATA} ${WRKSRC}/templates/*.template ${TEMPLATESDIR}
.include <bsd.port.mk>
|