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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
|
dnl Granularly define the version components
dnl Remember to also update the Display Version
m4_define([banshee_version_major], [1])
m4_define([banshee_version_minor], [5])
m4_define([banshee_version_micro], [6])
dnl set to 0 when doing an official release
m4_define([banshee_version_pre_release], [0])
m4_define([concat], $1$2$3$4)
dnl create base version string
m4_define([banshee_version], concat(
banshee_version_major.,
banshee_version_minor.,
banshee_version_micro))
dnl create the release version
m4_define([banshee_version],
m4_if(banshee_version_pre_release, [0],
banshee_version,
concat(banshee_version, banshee_version_pre_release)))
dnl this can sometimes differ manually
m4_define([banshee_display_version],
["1.6 RC2"])
m4_define([banshee_api_version],
[banshee_version_major.banshee_version_minor])
m4_define([banshee_asm_version],
[banshee_api_version.0.0])
AC_PREREQ(2.52)
AC_INIT([banshee-1], banshee_version,
[http://bugzilla.gnome.org/enter_bug.cgi?product=banshee])
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar dist-zip foreign])
AM_MAINTAINER_MODE
AM_CONFIG_HEADER([config.h])
AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/shamrock -I build/m4/banshee -I build/m4/shave \${ACLOCAL_FLAGS}"])
IT_PROG_INTLTOOL([0.35.0])
AC_PROG_LIBTOOL
AC_PROG_INSTALL
dnl How to configure for distcheck
DISTCHECK_CONFIGURE_FLAGS="--disable-docs --enable-mtp --enable-daap --enable-podcast --enable-release"
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
dnl Export Version Info
AC_SUBST([API_VERSION], [banshee_api_version])
AC_SUBST([ASM_VERSION], [banshee_asm_version])
AC_SUBST([DISPLAY_VERSION], [banshee_display_version])
dnl Expansions
SHAMROCK_EXPAND_LIBDIR
SHAMROCK_EXPAND_BINDIR
SHAMROCK_EXPAND_DATADIR
dnl libbanshee/native dependencies (required)
BANSHEE_CHECK_LIBBANSHEE
BANSHEE_CHECK_GSTREAMER
BANSHEE_CHECK_NOW_PLAYING_X11
dnl Mono and gmcs
SHAMROCK_CHECK_MONO_MODULE(1.9.1)
SHAMROCK_FIND_MONO_2_0_COMPILER
SHAMROCK_FIND_MONO_RUNTIME
SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([
System.Data
Mono.Cairo
Mono.Posix
ICSharpCode.SharpZipLib
])
dnl Check for mono >= 2.4.3 for LibraryWatcher extension, with fix for bnc#322330
PKG_CHECK_MODULES(MONO_2_4_3, mono >= 2.4.3, HAVE_MONO_2_4_3=yes, HAVE_MONO_2_4_3=no)
AM_CONDITIONAL(ENABLE_LIBRARY_WATCHER, test "x$HAVE_MONO_2_4_3" = "xyes")
dnl Check for GNOME >= 2.28 to see if we should remove 'Media Player' from the app Name, bgo#596242
PKG_CHECK_MODULES(GNOME_LT_2_28, gnome-desktop-2.0 < 2.28, BANSHEE_DESKTOP_NAME="_Name=Banshee Media Player", BANSHEE_DESKTOP_NAME="_Name=Banshee")
AC_SUBST(BANSHEE_DESKTOP_NAME)
dnl NDesk DBus libraries
BANSHEE_CHECK_NDESK_DBUS
dnl Mono.Addins libraries
BANSHEE_CHECK_MONO_ADDINS
dnl notify-sharp library
BANSHEE_CHECK_NOTIFY_SHARP
dnl Boo
BANSHEE_CHECK_BOO
dnl Monodoc (optional through --disable-docs)
SHAMROCK_CHECK_MONODOC
dnl webkit (optional through --disable-webkit)
BANSHEE_CHECK_WEBKIT
dnl gdata (optional through --disable-youtube)
BANSHEE_CHECK_YOUTUBE
dnl gtk#-beans and gio#
BANSHEE_CHECK_GIO_SHARP
dnl Moonlight (optional through --enable-moonlight)
BANSHEE_CHECK_MOONLIGHT
dnl NUnit (optional)
SHAMROCK_CHECK_NUNIT
dnl External TagLib# libraries (optional)
BANSHEE_CHECK_TAGLIB_SHARP
dnl Required dependencies (managed/core)
BANSHEE_CHECK_GTK_SHARP
dnl OS X (optional through --enable-osx)
BANSHEE_CHECK_OSX
PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.4)
dnl GNOME (optional)
AC_ARG_ENABLE(gnome,
AC_HELP_STRING([--disable-gnome],
[Disable GNOME support]),
, enable_gnome="yes")
if test "x$enable_gnome" = "xyes"; then
BANSHEE_CHECK_GNOME_SHARP
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
AM_GCONF_SOURCE_2
AM_CONDITIONAL(ENABLE_GNOME, true)
else
AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
AM_CONDITIONAL(ENABLE_GNOME, false)
fi
dnl DAP support (each module is optional)
BANSHEE_CHECK_DAP_MTP
BANSHEE_CHECK_DAP_IPOD
BANSHEE_CHECK_DAP_KARMA
dnl DAAP support (optional)
BANSHEE_CHECK_DAAP
dnl RemoteAudio support (optional)
BANSHEE_CHECK_REMOTE_AUDIO
dnl MonoTorrent support (optional)
BANSHEE_CHECK_TORRENT
dnl MeeGo integration (optional)
BANSHEE_CHECK_MEEGO
dnl Gapless, if we have a new-enough playbin2
ENABLE_GAPLESS="no"
AC_ARG_ENABLE(gapless-playback,
AC_HELP_STRING([--enable-gapless-playback],
[Enable gapless playback engine (requires gst-plugins-base > 0.10.25.2)]),
enable_gapless=$enableval,
enable_gapless=auto)
if test "x$enable_gapless" != "xno" ; then
PKG_CHECK_MODULES([GST_PLUGINS_BASE], [gstreamer-plugins-base-0.10 > 0.10.25.2], ENABLE_GAPLESS=yes, ENABLE_GAPLESS=no)
if test "x$enable_gapless" == "xyes" -a "x$ENABLE_GAPLESS" == "xno" ; then
AC_MSG_ERROR([Gapless playback requires gstreamer-plugins-base > 0.10.25.2])
fi
fi
AM_CONDITIONAL(ENABLE_GAPLESS, test "x$ENABLE_GAPLESS" = "xyes")
dnl i18n
SHAMROCK_CONFIGURE_I18N($PACKAGE)
dnl the bird is the word
AC_ARG_ENABLE(podcast,
AC_HELP_STRING([--disable-podcast],
[Disable Podcasting support]),
, enable_podcast="yes")
AM_CONDITIONAL(ENABLE_PODCAST, test "x$enable_podcast" = "xyes")
AC_ARG_ENABLE(release,
AC_HELP_STRING([--enable-release],
[Use release configuration]),
enable_release=yes, enable_release=`(test ! -d .svn && test ! -d .git) && echo "yes" || echo "no"`)
AM_CONDITIONAL(ENABLE_RELEASE, test "x$enable_release" = "xyes")
ENABLE_RELEASE=$enable_release
AC_SUBST(ENABLE_RELEASE)
if test "x$enable_release" = "xyes"; then
GMCS_FLAGS="-define:RELEASE"
else
GMCS_FLAGS="-warnaserror"
fi
AC_SUBST(GMCS_FLAGS)
AC_ARG_WITH(vendor-build-id,
AC_HELP_STRING([--with-vendor-build-id=<vendor-build-id>],
[Set a vendor build ID, recommended for packagers]),
[vendor_build_id="$withval"], [
test -d .git \
&& vendor_build_id="git-checkout" \
|| vendor_build_id="source-tarball"
])
BUILD_VENDOR_ID="$vendor_build_id"
BUILD_HOST_OS="$host_os"
BUILD_HOST_CPU="$host_cpu"
BUILD_TIME=`date +"%F %T %Z"`
AC_SUBST(BUILD_VENDOR_ID)
AC_SUBST(BUILD_HOST_OS)
AC_SUBST(BUILD_HOST_CPU)
AC_SUBST(BUILD_TIME)
SHAVE_INIT([build/m4/shave], [enable])
dnl generated files
AC_OUTPUT([
Makefile
build/Makefile
build/m4/Makefile
build/m4/shave/shave
build/m4/shave/shave-libtool
build/pkg-config/Makefile
data/Makefile
data/org.bansheeproject.Banshee.service
data/org.bansheeproject.CollectionIndexer.service
data/audio-profiles/Makefile
data/desktop-files/Makefile
data/desktop-files/common.desktop
data/icon-theme-hicolor/Makefile
docs/Makefile
docs/Hyena/Makefile
docs/Banshee/Makefile
po/Makefile.in
tests/Makefile
tests/Analyzer/Makefile
tests/Performance/Makefile
extras/Makefile
libbanshee/Makefile
gstreamer/Makefile
gstreamer/equalizer/Makefile
src/Makefile
src/AssemblyInfo.cs
src/Clients/Makefile
src/Clients/Beroe/Makefile
src/Clients/Booter/Makefile
src/Clients/Booter/banshee-1.linux
src/Clients/Booter/banshee-1.darwin
src/Clients/Halie/Makefile
src/Clients/Muinshee/Makefile
src/Clients/Nereid/Makefile
src/Core/Makefile
src/Core/Banshee.CollectionIndexer/Makefile
src/Core/Banshee.Core/Makefile
src/Core/Banshee.Services/Makefile
src/Core/Banshee.ThickClient/Makefile
src/Core/Banshee.Widgets/Makefile
src/Backends/Makefile
src/Backends/Banshee.Gio/Makefile
src/Backends/Banshee.Gnome/Makefile
src/Backends/Banshee.GStreamer/Makefile
src/Backends/Banshee.Hal/Makefile
src/Backends/Banshee.Unix/Makefile
src/Backends/Banshee.Osx/Makefile
src/Backends/Banshee.NowPlaying.X11/Makefile
src/Backends/Banshee.NowPlaying.X11/libbnpx11/Makefile
src/Libraries/Makefile
src/Libraries/Hyena/Makefile
src/Libraries/Hyena.Gui/Makefile
src/Libraries/Lastfm/Makefile
src/Libraries/Lastfm.Gui/Makefile
src/Libraries/Migo/Makefile
src/Libraries/Mono.Data.Sqlite/Makefile
src/Libraries/Mono.Media/Makefile
src/Libraries/Mtp/Makefile
src/Libraries/Mtp/Mtp.dll.config
src/Libraries/MusicBrainz/Makefile
src/Dap/Makefile
src/Dap/Banshee.Dap/Makefile
src/Dap/Banshee.Dap.Ipod/Makefile
src/Dap/Banshee.Dap.MassStorage/Makefile
src/Dap/Banshee.Dap.Mtp/Makefile
src/Dap/Banshee.Dap.Karma/Makefile
src/Extensions/Makefile
src/Extensions/Banshee.Audiobook/Makefile
src/Extensions/Banshee.AudioCd/Makefile
src/Extensions/Banshee.Bookmarks/Makefile
src/Extensions/Banshee.BooScript/Makefile
src/Extensions/Banshee.Bpm/Makefile
src/Extensions/Banshee.CoverArt/Makefile
src/Extensions/Banshee.Daap/Makefile
src/Extensions/Banshee.Emusic/Makefile
src/Extensions/Banshee.FileSystemQueue/Makefile
src/Extensions/Banshee.InternetArchive/Makefile
src/Extensions/Banshee.InternetRadio/Makefile
src/Extensions/Banshee.Lastfm/Makefile
src/Extensions/Banshee.LibraryWatcher/Makefile
src/Extensions/Banshee.MiniMode/Makefile
src/Extensions/Banshee.MeeGo/Makefile
src/Extensions/Banshee.MultimediaKeys/Makefile
src/Extensions/Banshee.NotificationArea/Makefile
src/Extensions/Banshee.NowPlaying/Makefile
src/Extensions/Banshee.PlayQueue/Makefile
src/Extensions/Banshee.PlayerMigration/Makefile
src/Extensions/Banshee.Podcasting/Makefile
src/Extensions/Banshee.SqlDebugConsole/Makefile
src/Extensions/Banshee.Sample/Makefile
src/Extensions/Banshee.Torrent/Makefile
src/Extensions/Banshee.RemoteAudio/Makefile
src/Extensions/Banshee.Wikipedia/Makefile
src/Extensions/Banshee.YouTube/Makefile
extras/metrics/Makefile
])
cat <<EOF
${PACKAGE}-${VERSION}
Build Environment
Install Prefix: ${prefix}
Datadir: ${expanded_datadir}
Libdir: ${expanded_libdir}
C Compiler: ${CC}
Mono C# Compiler: ${MCS} ${GMCS_FLAGS}
Mono Runtime: ${MONO}
Video/Graphics:
Graphics System: ${GRAPHICS_SUBSYSTEM}
X11 Video: ${have_xvidmode}
Clutter: ${enable_clutter}
Operating System/Desktop Environment:
GNOME Support: ${enable_gnome}
OSX Support: ${enable_osx}
MeeGo Support: ${enable_meego}
Digital Audio Player (DAP) Support:
Mass Storage: yes
MTP: ${enable_libmtp}
iPod: ${enable_ipodsharp}
Karma: ${enable_karmasharp}
Extra Features:
Boo Scripting: ${enable_boo}
Builtin Equalizer: ${enable_builtin_equalizer}
DAAP: ${enable_daap}
GIO Backend: ${enable_gio} (requires glib >= 2.22, gtk-sharp-beans, and gio-sharp)
Library Watcher: ${HAVE_MONO_2_4_3} (requires Mono >= 2.4.3)
Podcasts: ${enable_podcast}
Wikipedia: ${enable_webkit} (requires webkit-sharp)
Gapless playback: ${ENABLE_GAPLESS} (requires gstreamer-plugins-base > 0.10.25.2)
YouTube extension: ${enable_youtube} (requires gdata-sharp >= 1.4)
Build/Development:
Unit Tests: ${do_tests} (requires nunit >= ${NUNIT_REQUIRED})
API Docs: ${enable_docs} (requires monodocer and mdassembler)
Custom a11y: ${gtksharp_with_a11y} (requires gtk-sharp >= 2.12.10)
Release Build: ${enable_release}
Vendor Build ID: ${vendor_build_id}
EOF
# Unstable/in-development features; only show them if they were manually enabled
if test "x$enable_moonlight" = "xyes"; then br=yes; echo " Moonlight Effects: ${enable_moonlight}"; fi
if test "x$enable_remote_audio" = "xyes"; then br=yes; echo " Remote Audio: ${enable_remote_audio}"; fi
if test "x$enable_torrent" = "xyes"; then br=yes; echo " Torrent Podcasts: ${enable_torrent}"; fi
if test -d ${expanded_libdir}/${PACKAGE}; then
if test x$br = xyes; then echo; fi
echo " WARNING: An existing Banshee install is in ${expanded_libdir}/${PACKAGE}"
echo " Remove the existing install before installing this build."
echo " Installing over an existing install will cause conflicts!"
echo
fi
|