[gnome-python-desktop] Fix autotools build of the braseroburn module
- From: Gustavo J. A. M. Carneiro <gjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-python-desktop] Fix autotools build of the braseroburn module
- Date: Tue, 14 Jul 2009 18:43:31 +0000 (UTC)
commit 0ab792fb1c8ec62cea1cc8820859419f62c8a671
Author: Gustavo Carneiro <gjc inescporto pt>
Date: Tue Jul 14 19:41:29 2009 +0100
Fix autotools build of the braseroburn module
Makefile.am | 4 ++++
braseroburn/Makefile.am | 22 +++++++++++-----------
configure.ac | 20 +++++++++++++++++++-
3 files changed, 34 insertions(+), 12 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index e47d8e8..17e53cf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -65,6 +65,10 @@ if BUILD_BRASEROMEDIA
SUBDIRS += braseromedia
endif
+if BUILD_BRASEROBURN
+ SUBDIRS += braseroburn
+endif
+
SUBDIRS += tests
pkgconfigdir = $(libdir)/pkgconfig
diff --git a/braseroburn/Makefile.am b/braseroburn/Makefile.am
index 3b25649..6023034 100644
--- a/braseroburn/Makefile.am
+++ b/braseroburn/Makefile.am
@@ -1,23 +1,23 @@
INCLUDES = $(PYTHON_INCLUDES)
defsdir = $(datadir)/pygtk/2.0/defs
-defs_DATA = brasero_media.defs
+defs_DATA = brasero_burn.defs
EXTRA_DIST = $(defs_DATA)
pkgpythondir = $(pyexecdir)/gtk-2.0
pkgpyexecdir = $(pyexecdir)/gtk-2.0
-# braseromedia binding
-pkgpyexec_LTLIBRARIES = braseromedia.la
-braseromedia_la_CFLAGS = $(BRASEROMEDIA_CFLAGS)
-braseromedia_la_LDFLAGS = -module -avoid-version -export-symbols-regex initbraseromedia
-braseromedia_la_LIBADD = $(BRASEROMEDIA_LIBS)
-braseromedia_la_SOURCES = bm_module.c
+# braseroburn binding
+pkgpyexec_LTLIBRARIES = braseroburn.la
+braseroburn_la_CFLAGS = $(BRASEROBURN_CFLAGS)
+braseroburn_la_LDFLAGS = -module -avoid-version -export-symbols-regex initbraseroburn
+braseroburn_la_LIBADD = $(BRASEROBURN_LIBS)
+braseroburn_la_SOURCES = brasero_burn_module.c
-nodist_braseromedia_la_SOURCES = brasero_media.c
-CLEANFILES = brasero_media.c
-EXTRA_DIST += brasero_media.override
-brasero_media.c: brasero_media.defs brasero_media.override
+nodist_braseroburn_la_SOURCES = brasero_burn.c
+CLEANFILES = brasero_burn.c
+EXTRA_DIST += brasero_burn.override
+brasero_burn.c: brasero_burn.defs brasero_burn.override
.defs.c:
(cd $(srcdir) \
diff --git a/configure.ac b/configure.ac
index 2572783..681ecfc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,7 +129,7 @@ AC_ARG_ENABLE([gtk-doc],
AM_CONDITIONAL(BUILD_DOCS, [test "$enable_gtk_doc" = "yes"])
dnl default bindings to build:
-default_bindings_on="applet gnomeprint gnomeprintui gtksourceview wnck totem_plparser gtop nautilusburn mediaprofiles rsvg gnomekeyring gnomedesktop bugbuddy metacity evolution evolution_ecal evince braseromedia"
+default_bindings_on="applet gnomeprint gnomeprintui gtksourceview wnck totem_plparser gtop nautilusburn mediaprofiles rsvg gnomekeyring gnomedesktop bugbuddy metacity evolution evolution_ecal evince braseromedia braseroburn"
default_bindings_off="metacity"
default_bindings_all="$default_bindings_on $default_bindings_off"
@@ -287,6 +287,21 @@ if test -n "$export_dynamic"; then
BRASEROMEDIA_LIBS=`echo $BRASEROMEDIA_LIBS | sed -e "s/$export_dynamic//"`
fi
+
+dnl should we build the braseroburn module?
+AC_ARG_BINDING([braseroburn],[YES])
+if $build_braseroburn; then
+ PKG_CHECK_MODULES(BRASEROBURN, [libbrasero-burn
+ pygtk-2.0 >= pygtk_required_version],
+ build_braseroburn=true,
+ build_braseroburn=false)
+fi
+AM_CONDITIONAL(BUILD_BRASEROBURN, $build_braseroburn)
+if test -n "$export_dynamic"; then
+ BRASEROBURN_LIBS=`echo $BRASEROBURN_LIBS | sed -e "s/$export_dynamic//"`
+fi
+
+
dnl should we build the mediaprofiles module?
AC_ARG_BINDING([mediaprofiles],[YES])
if $build_mediaprofiles; then
@@ -439,6 +454,7 @@ AC_CONFIG_FILES(
gtop/Makefile
nautilusburn/Makefile
braseromedia/Makefile
+ braseroburn/Makefile
mediaprofiles/Makefile
metacity/Makefile
rsvg/Makefile
@@ -467,6 +483,7 @@ $build_totem_plparser && echo totem.plparser
$build_gtop && echo gtop
$build_nautilusburn && echo nautilusburn
$build_braseromedia && echo braseromedia
+$build_braseroburn && echo braseroburn
$build_mediaprofiles && echo mediaprofiles
$build_metacity && echo metacity
$build_rsvg && echo rsvg
@@ -489,6 +506,7 @@ $build_totem_plparser || echo totem.plparser
$build_gtop || echo gtop
$build_nautilusburn || echo nautilusburn
$build_braseromedia || echo braseromedia
+$build_braseroburn || echo braseroburn
$build_mediaprofiles || echo mediaprofiles
$build_metacity || echo metacity
$build_rsvg || echo rsvg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]