1 dnl Granularly define the version components
2 dnl Remember to also update the Display Version
3 m4_define([banshee_version_major], [2])
4 m4_define([banshee_version_minor], [3])
5 m4_define([banshee_version_micro], [1])
7 dnl this can sometimes differ manually
8 m4_define([banshee_display_version], ["2.3.1"])
10 dnl set to 0 when doing an official release
11 m4_define([banshee_version_pre_release], [0])
13 m4_define([concat], $1$2$3$4)
15 dnl create base version string
16 m4_define([banshee_version], concat(banshee_version_major., banshee_version_minor., banshee_version_micro))
18 dnl create the release version
19 m4_define([banshee_version],
20 m4_if(banshee_version_pre_release, [0],
22 concat(banshee_version, banshee_version_pre_release)))
24 m4_define([banshee_api_version], [banshee_version_major.banshee_version_minor])
25 m4_define([banshee_asm_version], [banshee_api_version.0.0])
28 AC_INIT([banshee], banshee_version, [http://bugzilla.gnome.org/enter_bug.cgi?product=banshee])
30 AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar foreign])
31 AM_MAINTAINER_MODE([enable])
32 AM_CONFIG_HEADER([config.h])
33 AC_CONFIG_MACRO_DIR([build/m4])
34 AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/shamrock -I build/m4/banshee -I build/m4/shave \${ACLOCAL_FLAGS}"])
36 IT_PROG_INTLTOOL([0.35.0])
40 dnl How to configure for distcheck
41 DISTCHECK_CONFIGURE_FLAGS="--disable-docs --enable-mtp --enable-daap --enable-user-help --enable-release"
42 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
44 dnl Export Version Info
45 AC_SUBST([API_VERSION], [banshee_api_version])
46 AC_SUBST([ASM_VERSION], [banshee_asm_version])
47 AC_SUBST([DISPLAY_VERSION], [banshee_display_version])
50 SHAMROCK_EXPAND_LIBDIR
51 SHAMROCK_EXPAND_BINDIR
52 SHAMROCK_EXPAND_DATADIR
54 dnl libbanshee/native dependencies (required)
55 BANSHEE_CHECK_LIBBANSHEE
56 BANSHEE_CHECK_GSTREAMER
58 dnl For the new media backend using gstreamer-sharp
59 BANSHEE_CHECK_GSTREAMER_SHARP
61 BANSHEE_CHECK_NOW_PLAYING_X11
64 SHAMROCK_CHECK_GNOME_DOC_UTILS(0.17.3)
67 SHAMROCK_CHECK_MONO_MODULE(2.4.3)
68 SHAMROCK_FIND_MONO_2_0_COMPILER
69 SHAMROCK_FIND_MONO_RUNTIME
70 SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([Mono.Cairo Mono.Posix ICSharpCode.SharpZipLib])
72 dnl Check for GNOME >= 2.28 to see if we should remove
73 dnl 'Media Player' from the app Name, bgo#596242, except
74 dnl in MeeGo where GNOME >= 2.28, but we want the full name
75 PKG_CHECK_MODULES(GNOME_2_28, gnome-desktop-2.0 >= 2.28, HAVE_GNOME_2_28=yes, HAVE_GNOME_2_28=no)
76 PKG_CHECK_MODULES(MEEGO_PANEL, meego-panel, HAVE_MEEGO_PANEL=yes, HAVE_MEEGO_PANEL=no)
77 if test "x$HAVE_GNOME_2_28" = "xno" -o "x$HAVE_MEEGO_PANEL" = "xyes"; then
78 BANSHEE_DESKTOP_NAME="_Name=Banshee Media Player"
80 BANSHEE_DESKTOP_NAME="_Name=Banshee"
82 AC_SUBST(BANSHEE_DESKTOP_NAME)
84 if test "x$HAVE_MEEGO_PANEL" = "xyes"; then
85 MEEGO_PANELS_DIR=`$PKG_CONFIG --variable=meego_panel_panels_dir meego-panel`
87 MEEGO_PANELS_DIR='${datadir}/mutter-meego/panels'
89 AC_SUBST(MEEGO_PANELS_DIR)
92 dnl Check for gdk-x11 >= 2.22 for NotificationArea extension, bgo#638477
93 PKG_CHECK_MODULES(GDK_2_22, gdk-x11-2.0 >= 2.22, have_gdk_2_22=yes, have_gdk_2_22=no)
94 AM_CONDITIONAL(HAVE_GDK_2_22, test "x$have_gdk_2_22" = "xyes")
96 dnl DBus Sharp libraries
97 BANSHEE_CHECK_DBUS_SHARP
99 dnl Mono.Addins libraries
100 BANSHEE_CHECK_MONO_ADDINS
102 dnl notify-sharp library
103 BANSHEE_CHECK_NOTIFY_SHARP
108 dnl Monodoc (optional through --disable-docs)
109 SHAMROCK_CHECK_MONODOC
111 dnl webkit (optional through --disable-webkit)
112 BANSHEE_CHECK_LIBWEBKIT
114 dnl gdata (optional through --disable-youtube)
115 BANSHEE_CHECK_YOUTUBE
117 dnl gtk#-beans and gio#
118 BANSHEE_CHECK_GIO_SHARP
120 dnl Moonlight (optional through --enable-moonlight)
121 BANSHEE_CHECK_MOONLIGHT
126 dnl External TagLib# libraries (optional)
127 BANSHEE_CHECK_TAGLIB_SHARP
129 dnl Required dependencies (managed/core)
130 BANSHEE_CHECK_GTK_SHARP
132 dnl OS X (optional through --enable-osx)
135 PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.4)
138 AC_ARG_ENABLE(gnome, AC_HELP_STRING([--disable-gnome], [Disable GNOME support]), , enable_gnome="yes")
139 if test "x$enable_gnome" = "xyes"; then
140 BANSHEE_CHECK_GNOME_SHARP
141 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
143 AM_CONDITIONAL(ENABLE_GNOME, true)
145 AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
146 AM_CONDITIONAL(ENABLE_GNOME, false)
149 dnl DAP support (each module is optional)
150 BANSHEE_CHECK_DAP_MTP
151 BANSHEE_CHECK_DAP_APPLEDEVICE
152 BANSHEE_CHECK_DAP_KARMA
154 dnl DAAP support (optional)
157 dnl RemoteAudio support (optional)
158 BANSHEE_CHECK_REMOTE_AUDIO
160 dnl MonoTorrent support (optional)
161 BANSHEE_CHECK_TORRENT
163 dnl MeeGo integration (optional)
166 dnl Sound menu integration (optional)
167 BANSHEE_CHECK_SOUNDMENU
169 dnl Ubuntu One Music Store (optional)
170 BANSHEE_CHECK_UBUNTUONE
172 dnl Gapless, if we have a new-enough playbin2
174 AC_ARG_ENABLE(gapless-playback,
175 AC_HELP_STRING([--enable-gapless-playback],
176 [Enable gapless playback engine (requires gst-plugins-base > 0.10.25.2)]),
177 enable_gapless=$enableval,
179 if test "x$enable_gapless" != "xno" ; then
180 PKG_CHECK_MODULES([GST_PLUGINS_BASE], [gstreamer-plugins-base-0.10 > 0.10.25.2], ENABLE_GAPLESS=yes, ENABLE_GAPLESS=no)
181 if test "x$enable_gapless" == "xyes" -a "x$ENABLE_GAPLESS" == "xno" ; then
182 AC_MSG_ERROR([Gapless playback requires gstreamer-plugins-base > 0.10.25.2])
185 AM_CONDITIONAL(ENABLE_GAPLESS, test "x$ENABLE_GAPLESS" = "xyes")
188 SHAMROCK_CONFIGURE_I18N($PACKAGE)
190 AC_ARG_ENABLE(release,
191 AC_HELP_STRING([--enable-release],
192 [Use release configuration]),
193 enable_release=yes, enable_release=`(test ! -d .svn && test ! -d .git) && echo "yes" || echo "no"`)
194 AM_CONDITIONAL(ENABLE_RELEASE, test "x$enable_release" = "xyes")
195 ENABLE_RELEASE=$enable_release
196 AC_SUBST(ENABLE_RELEASE)
197 if test "x$enable_release" = "xyes"; then
198 GMCS_FLAGS="-define:RELEASE"
200 GMCS_FLAGS="-warnaserror"
204 AM_CONDITIONAL(HYENA_PKG_CONFIG, false)
206 AC_ARG_WITH(vendor-build-id,
207 AC_HELP_STRING([--with-vendor-build-id=<vendor-build-id>],
208 [Set a vendor build ID, recommended for packagers]),
209 [vendor_build_id="$withval"], [
211 && vendor_build_id="git-checkout" \
212 || vendor_build_id="source-tarball"
214 BUILD_VENDOR_ID="$vendor_build_id"
215 BUILD_HOST_OS="$host_os"
216 BUILD_HOST_CPU="$host_cpu"
217 BUILD_TIME=`date +"%F %T %Z"`
218 AC_SUBST(BUILD_VENDOR_ID)
219 AC_SUBST(BUILD_HOST_OS)
220 AC_SUBST(BUILD_HOST_CPU)
223 SHAVE_INIT([build/m4/shave], [enable])
232 build/m4/shave/shave-libtool
233 build/pkg-config/Makefile
236 data/org.bansheeproject.Banshee.service
237 data/org.bansheeproject.CollectionIndexer.service
238 data/audio-profiles/Makefile
239 data/desktop-files/Makefile
240 data/desktop-files/common.desktop
241 data/icon-theme-hicolor/Makefile
247 docs/Banshee/Makefile
252 tests/Analyzer/Makefile
253 tests/Performance/Makefile
260 src/Hyena/build/Makefile
261 src/Hyena/build/pkg-config/Makefile
262 src/Hyena/build/m4/Makefile
263 src/Hyena/Hyena/Makefile
264 src/Hyena/Hyena.Data.Sqlite/Makefile
265 src/Hyena/Hyena.Gui/Makefile
271 src/Clients/Beroe/Makefile
272 src/Clients/Booter/Makefile
273 src/Clients/Booter/banshee.linux
274 src/Clients/Booter/banshee.darwin
275 src/Clients/Halie/Makefile
276 src/Clients/Muinshee/Makefile
277 src/Clients/Nereid/Makefile
278 src/Clients/MeeGo/Makefile
281 src/Core/Banshee.CollectionIndexer/Makefile
282 src/Core/Banshee.Core/Makefile
283 src/Core/Banshee.Services/Makefile
284 src/Core/Banshee.ThickClient/Makefile
285 src/Core/Banshee.Widgets/Makefile
286 src/Core/Banshee.WebBrowser/Makefile
287 src/Core/Banshee.WebBrowser/libossifer/Makefile
289 src/Backends/Makefile
290 src/Backends/Banshee.Gio/Makefile
291 src/Backends/Banshee.Gnome/Makefile
292 src/Backends/Banshee.GStreamer/Makefile
293 src/Backends/Banshee.GStreamerSharp/Makefile
294 src/Backends/Banshee.Unix/Makefile
295 src/Backends/Banshee.Osx/Makefile
296 src/Backends/Banshee.NowPlaying.X11/Makefile
297 src/Backends/Banshee.NowPlaying.X11/libbnpx11/Makefile
298 src/Backends/Banshee.Windows/Makefile
300 src/Libraries/Makefile
301 src/Libraries/Lastfm/Makefile
302 src/Libraries/Lastfm.Gui/Makefile
303 src/Libraries/Migo/Makefile
304 src/Libraries/Mono.Media/Makefile
305 src/Libraries/Mtp/Makefile
306 src/Libraries/Mtp/Mtp.dll.config
307 src/Libraries/MusicBrainz/Makefile
310 src/Dap/Banshee.Dap/Makefile
311 src/Dap/Banshee.Dap.AppleDevice/Makefile
312 src/Dap/Banshee.Dap.MassStorage/Makefile
313 src/Dap/Banshee.Dap.Mtp/Makefile
314 src/Dap/Banshee.Dap.Karma/Makefile
316 src/Extensions/Makefile
317 src/Extensions/Banshee.AmazonMp3/Makefile
318 src/Extensions/Banshee.AmazonMp3.Store/Makefile
319 src/Extensions/Banshee.Audiobook/Makefile
320 src/Extensions/Banshee.BooScript/Makefile
321 src/Extensions/Banshee.Bpm/Makefile
322 src/Extensions/Banshee.CoverArt/Makefile
323 src/Extensions/Banshee.Daap/Makefile
324 src/Extensions/Banshee.Emusic/Makefile
325 src/Extensions/Banshee.Emusic.Store/Makefile
326 src/Extensions/Banshee.FileSystemQueue/Makefile
327 src/Extensions/Banshee.InternetArchive/Makefile
328 src/Extensions/Banshee.Fixup/Makefile
329 src/Extensions/Banshee.InternetRadio/Makefile
330 src/Extensions/Banshee.Lastfm/Makefile
331 src/Extensions/Banshee.LastfmStreaming/Makefile
332 src/Extensions/Banshee.LibraryWatcher/Makefile
333 src/Extensions/Banshee.MiniMode/Makefile
334 src/Extensions/Banshee.MiroGuide/Makefile
335 src/Extensions/Banshee.MeeGo/Makefile
336 src/Extensions/Banshee.Mpris/Makefile
337 src/Extensions/Banshee.MultimediaKeys/Makefile
338 src/Extensions/Banshee.NotificationArea/Makefile
339 src/Extensions/Banshee.NowPlaying/Makefile
340 src/Extensions/Banshee.OpticalDisc/Makefile
341 src/Extensions/Banshee.PlayQueue/Makefile
342 src/Extensions/Banshee.PlayerMigration/Makefile
343 src/Extensions/Banshee.Podcasting/Makefile
344 src/Extensions/Banshee.SoundMenu/Makefile
345 src/Extensions/Banshee.SqlDebugConsole/Makefile
346 src/Extensions/Banshee.Sample/Makefile
347 src/Extensions/Banshee.Torrent/Makefile
348 src/Extensions/Banshee.RemoteAudio/Makefile
349 src/Extensions/Banshee.UbuntuOneMusicStore/Makefile
350 src/Extensions/Banshee.Wikipedia/Makefile
351 src/Extensions/Banshee.YouTube/Makefile
353 extras/metrics/Makefile
358 ${PACKAGE}-${VERSION}
361 Install Prefix: ${prefix}
362 Datadir: ${expanded_datadir}
363 Libdir: ${expanded_libdir}
366 Mono C# Compiler: ${MCS} ${GMCS_FLAGS}
367 Mono Runtime: ${MONO}
371 Graphics System: ${GRAPHICS_SUBSYSTEM}
372 X11 Video: ${have_xvidmode}
373 Clutter: ${enable_clutter}
375 Operating System/Desktop Environment:
376 GNOME Support: ${enable_gnome}
377 OSX Support: ${enable_osx}
378 MeeGo Support: ${enable_meego}
380 Digital Audio Player (DAP) Support:
381 Apple Device: ${enable_appledevice} (libgpod-sharp)
382 Karma: ${enable_karmasharp}
384 MTP: ${enable_libmtp}
387 Web Browser: ${have_libwebkit} (webkit-1.0 >= $WEBKIT_MIN_VERSION, libsoup-2.4 >= $SOUP_MIN_VERSION)
388 + GNOME Proxy ${have_libsoup_gnome} (libsoup-gnome-2.4 >= $SOUP_GNOME_MIN_VERSION)
389 Boo Scripting: ${enable_boo}
391 GIO Backend: ${enable_gio} (glib >= 2.22, gio-sharp >= 2.22.3, and gtk-sharp-beans)
392 GIO Hardware: ${enable_gio_hardware} (gudev-sharp, gkeyfile-sharp)
393 YouTube: ${enable_youtube} (gdata-sharp >= 1.4)
394 Sound Menu: ${enable_soundmenu}
395 Ubuntu One Store: ${enable_ubuntuone} (ubuntuone-sharp >= 0.3.2)
398 Unit Tests: ${do_tests} (nunit >= ${NUNIT_REQUIRED})
399 API Docs: ${enable_docs} (monodocer and mdassembler)
400 User Help: ${enable_user_help} (gnome-doc-utils >= 0.17.3)
401 Release Build: ${enable_release}
402 Vendor Build ID: ${vendor_build_id}
406 # Unstable/in-development features; only show them if they were manually enabled
407 if test "x$enable_moonlight" = "xyes"; then br=yes; echo " Moonlight Effects: ${enable_moonlight}"; fi
408 if test "x$enable_remote_audio" = "xyes"; then br=yes; echo " Remote Audio: ${enable_remote_audio}"; fi
409 if test "x$enable_torrent" = "xyes"; then br=yes; echo " Torrent Podcasts: ${enable_torrent}"; fi
410 if test "x$enable_gst_sharp" = "xyes"; then br=yes; echo " Gst# Backend: ${enable_gst_sharp} (unfinished, experimental!)"; fi
412 if test -d ${expanded_libdir}/${PACKAGE}; then
413 if test x$br = xyes; then echo; fi
414 echo " WARNING: An existing Banshee install is in ${expanded_libdir}/${PACKAGE}"
415 echo " Remove the existing install before installing this build."
416 echo " Installing over an existing install will cause conflicts!"