summaryrefslogtreecommitdiff
path: root/audio/ardour/Makefile
blob: 1efba14a717c760881c0b4962882e3cbfea46f01 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# $NetBSD: Makefile,v 1.5 2016/10/07 18:25:36 adam Exp $

DISTNAME=	ardour-4.7
PKGREVISION=	3
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_GITHUB:=Ardour/}
GITHUB_TAG=	${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://ardour.org/
COMMENT=	Digital Audio Workstation
LICENSE=	gnu-gpl-v2

EXTRACT_USING=	bsdtar
USE_TOOLS+=	bsdtar pkg-config perl bash
USE_LANGUAGES=	c c++

REPLACE_PYTHON+=	export/wscript
REPLACE_PYTHON+=	libs/pbd/pbd/signals.py
REPLACE_PYTHON+=	mcp/wscript
REPLACE_PYTHON+=	midi_maps/wscript
REPLACE_PYTHON+=	patchfiles/wscript
REPLACE_PYTHON+=	templates/wscript
REPLACE_PYTHON+=	tools/bug_tool/ardour_bugs
REPLACE_PYTHON+=	tools/cstyle.py
REPLACE_PYTHON+=	tools/session_exchange.py

REPLACE_PYTHON+=	cfgtool/wscript
REPLACE_PYTHON+=	gtk2_ardour/wscript
REPLACE_PYTHON+=	headless/wscript
REPLACE_PYTHON+=	libs/appleutility/wscript
REPLACE_PYTHON+=	libs/ardour/wscript
REPLACE_PYTHON+=	libs/ardouralsautil/wscript
REPLACE_PYTHON+=	libs/audiographer/wscript
REPLACE_PYTHON+=	libs/backends/alsa/wscript
REPLACE_PYTHON+=	libs/backends/asio/wscript
REPLACE_PYTHON+=	libs/backends/coreaudio/wscript
REPLACE_PYTHON+=	libs/backends/dummy/wscript
REPLACE_PYTHON+=	libs/backends/jack/wscript
REPLACE_PYTHON+=	libs/backends/portaudio/wscript
REPLACE_PYTHON+=	libs/backends/wavesaudio/wscript
REPLACE_PYTHON+=	libs/backends/wscript
REPLACE_PYTHON+=	libs/canvas/wscript
REPLACE_PYTHON+=	libs/clearlooks-newer/wscript
REPLACE_PYTHON+=	libs/evoral/wscript
REPLACE_PYTHON+=	libs/fst/wscript
REPLACE_PYTHON+=	libs/gtkmm2ext/wscript
REPLACE_PYTHON+=	libs/libltc/wscript
REPLACE_PYTHON+=	libs/midi++2/wscript
REPLACE_PYTHON+=	libs/panners/1in2out/wscript
REPLACE_PYTHON+=	libs/panners/2in2out/wscript
REPLACE_PYTHON+=	libs/panners/stereobalance/wscript
REPLACE_PYTHON+=	libs/panners/vbap/wscript
REPLACE_PYTHON+=	libs/panners/wscript
REPLACE_PYTHON+=	libs/pbd/wscript
REPLACE_PYTHON+=	libs/plugins/reasonablesynth.lv2/wscript
REPLACE_PYTHON+=	libs/ptformat/wscript
REPLACE_PYTHON+=	libs/qm-dsp/wscript
REPLACE_PYTHON+=	libs/surfaces/control_protocol/wscript
REPLACE_PYTHON+=	libs/surfaces/frontier/wscript
REPLACE_PYTHON+=	libs/surfaces/generic_midi/wscript
REPLACE_PYTHON+=	libs/surfaces/mackie/wscript
REPLACE_PYTHON+=	libs/surfaces/osc/wscript
REPLACE_PYTHON+=	libs/surfaces/tranzport/wscript
REPLACE_PYTHON+=	libs/surfaces/wiimote/wscript
REPLACE_PYTHON+=	libs/surfaces/wscript
REPLACE_PYTHON+=	libs/timecode/wscript
REPLACE_PYTHON+=	libs/vamp-plugins/wscript
REPLACE_PYTHON+=	libs/vfork/wscript
REPLACE_PYTHON+=	tools/autowaf.py
REPLACE_PYTHON+=	tools/gccabicheck/wscript
REPLACE_PYTHON+=	tools/sanity_check/wscript
REPLACE_PYTHON+=	wscript
REPLACE_PYTHON+=	waf

REPLACE_PERL+=		tools/fmt-bindings
REPLACE_PERL+=		tools/resample_session.pl
REPLACE_PERL+=		tools/synthesize_sources.pl

REPLACE_BASH+=	gtk2_ardour/icons/export_icons.sh
REPLACE_BASH+=	libs/ardour/run-profiling.sh
REPLACE_BASH+=	libs/ardour/run-session-tests.sh
REPLACE_BASH+=	libs/ardour/run-tests.sh
REPLACE_BASH+=	libs/canvas/build-and-run-benchmark.sh
REPLACE_BASH+=	libs/canvas/build-and-run-manual-test.sh
REPLACE_BASH+=	libs/canvas/build-and-run-tests.sh
REPLACE_BASH+=	libs/canvas/run-manual-test.sh
REPLACE_BASH+=	libs/canvas/run-tests.sh
REPLACE_BASH+=	libs/pbd/run-tests.sh
REPLACE_BASH+=	tools/linux_packaging/build
REPLACE_BASH+=	tools/linux_packaging/package
REPLACE_BASH+=	tools/osx_packaging/osx_build
REPLACE_BASH+=	tools/windows_packaging/clean.sh
REPLACE_BASH+=	tools/windows_packaging/configure-debug.sh
REPLACE_BASH+=	tools/windows_packaging/configure-distcc-debug.sh
REPLACE_BASH+=	tools/windows_packaging/configure-distcc-release.sh
REPLACE_BASH+=	tools/windows_packaging/configure-release.sh
REPLACE_BASH+=	tools/windows_packaging/copydll-fedora.sh
REPLACE_BASH+=	tools/windows_packaging/copydll-waves.sh
REPLACE_BASH+=	tools/windows_packaging/cptovmshare.sh
REPLACE_BASH+=	tools/windows_packaging/make-installer.sh
REPLACE_BASH+=	tools/windows_packaging/mingw-env.sh
REPLACE_BASH+=	tools/windows_packaging/package-f19.sh
REPLACE_BASH+=	tools/windows_packaging/package-f20.sh
REPLACE_BASH+=	tools/windows_packaging/package.sh
REPLACE_BASH+=	tools/windows_packaging/package_win32.sh
REPLACE_BASH+=	tools/windows_packaging/waf.sh
REPLACE_BASH+=	tools/windows_packaging/win32-env.sh
REPLACE_BASH+=	tools/windows_packaging/wine-ardour-tests.sh
REPLACE_BASH+=	tools/windows_packaging/wine-ardour.sh
REPLACE_BASH+=	tools/windows_packaging/wine-env.sh
REPLACE_BASH+=	tools/windows_packaging/wine-evoral-tests.sh
REPLACE_BASH+=	tools/windows_packaging/wine-pbd-tests.sh
REPLACE_BASH+=	tools/x-win/compile.sh
REPLACE_BASH+=	tools/x-win/package.sh

PKGCONFIG_OVERRIDE+=	libs/gtkmm2ext/libgtkmm2ext.pc.in
PKGCONFIG_OVERRIDE+=	libs/midi++2/libmidi++.pc.in
PKGCONFIG_OVERRIDE+=	libs/pbd/libpbd.pc.in

BUILD_DEFS+=		PKG_SYSCONFBASE

EGDIR=			${PREFIX}/share/examples/ardour4
PKG_SYSCONFSUBDIR=	ardour4

OWN_DIRS=		${PKG_SYSCONFDIR}
OWN_DIRS=		${PKG_SYSCONFDIR}/export

CONF_FILES+=		${EGDIR}/ardour.menus ${PKG_SYSCONFDIR}/ardour.menus
CONF_FILES+=		${EGDIR}/clearlooks.rc ${PKG_SYSCONFDIR}/clearlooks.rc
CONF_FILES+=		${EGDIR}/dark.colors ${PKG_SYSCONFDIR}/dark.colors
CONF_FILES+=		${EGDIR}/default_ui_config ${PKG_SYSCONFDIR}/default_ui_config
CONF_FILES+=		${EGDIR}/export/CD.format ${PKG_SYSCONFDIR}/export/CD.format
CONF_FILES+=		${EGDIR}/mixer.bindings ${PKG_SYSCONFDIR}/mixer.bindings
CONF_FILES+=		${EGDIR}/mnemonic-us.bindings ${PKG_SYSCONFDIR}/mnemonic-us.bindings
CONF_FILES+=		${EGDIR}/step_editing.bindings ${PKG_SYSCONFDIR}/step_editing.bindings
CONF_FILES+=		${EGDIR}/system_config ${PKG_SYSCONFDIR}/system_config
CONF_FILES+=		${EGDIR}/trx.menus ${PKG_SYSCONFDIR}/trx.menus

# As of NetBSD-7.99.21 pkgsrc's checks cannot open file with rare unicode characters
CHECK_PORTABILITY_SKIP+=	libs/pbd/test/i18n_test/*.tst

PYTHON_VERSIONS_INCOMPATIBLE=	34 35 35 # as of 4.4

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} != "Linux"
BUILDLINK_TRANSFORM+=   rm:-ldl
.endif

LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/ardour4/LV2/reasonablesynth.lv2
LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/ardour4
LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/ardour4/backends
LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/ardour4/engines
LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/ardour4/panners
LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/ardour4/surfaces
LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/ardour4/utils
LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib/ardour4/vamp

pre-configure:
	${SED} -e 's!REVISION!${PKGVERSION_NOREV}!' \
		${FILESDIR}/revision.cc > ${WRKSRC}/libs/ardour/revision.cc

WAF_ARGS+=	--prefix=${PREFIX}
WAF_ARGS+=	--configdir=${PKG_SYSCONFBASE}
# Use dlopen(3) for the JACK library
WAF_ARGS+=	--libjack=weak
WAF_ARGS+=	--optimize
# Required to build on NetBSD
WAF_ARGS+=	--cxx11

# Sources are patched to install configuration into EGDIR instead of CONFDIR
WAF_ENV+=	EGDIR=${EGDIR}

WAF_REPLACE_EXECUTABLE=	no

# ./waf i18n

.include "options.mk"

.include "../../devel/waf/waf.mk"
.include "../../x11/gtkmm/buildlink3.mk"
.include "../../audio/lilv/buildlink3.mk"
.include "../../converters/sratom/buildlink3.mk"
.include "../../textproc/sord/buildlink3.mk"
.include "../../textproc/serd/buildlink3.mk"
.include "../../audio/lv2/buildlink3.mk"
.include "../../textproc/liblrdf/buildlink3.mk"
.include "../../devel/cppunit/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../audio/aubio/buildlink3.mk"
.include "../../math/fftwf/buildlink3.mk"
.include "../../audio/rubberband/buildlink3.mk"
.include "../../audio/vamp-plugin-sdk/buildlink3.mk"
.include "../../audio/taglib/buildlink3.mk"
.include "../../audio/liblo/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../devel/glibmm/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"