From 7ff071c7f0df631ca273d7f29472f8b5568818f9 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 21 Oct 2010 22:46:10 +0000 Subject: */Makefile.am: s,INCLUDES,AM_CPPFLAGS, --- lib/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/python/Makefile.am') diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index e38f7d82..72191edc 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -1,4 +1,4 @@ -INCLUDES = \ +AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src -- cgit v1.2.3 From 97b86324d322309843cc5d9d93b039d706c5ae58 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Fri, 22 Oct 2010 16:10:02 +0000 Subject: clean up build * reduce use of TUXBOX macros * fix compiler warnings by including Python.h from the command-line * use libtool to build and link main/* and lib/* * don't link libmad, libid3tag, libcrypt, libresolv, librt, ldl into e2 * fix make rules of actionids.h --- configure.ac | 48 ++-- lib/Makefile.am | 17 ++ lib/actions/Makefile.am | 20 +- lib/actions/action.h | 4 - lib/actions/parseactions.py | 2 +- lib/base/Makefile.am | 8 +- lib/base/console.h | 1 - lib/components/Makefile.am | 8 +- lib/driver/Makefile.am | 8 +- lib/dvb/Makefile.am | 8 +- lib/dvb_ci/Makefile.am | 8 +- lib/gdi/Makefile.am | 12 +- lib/gui/Makefile.am | 7 +- lib/mmi/Makefile.am | 8 +- lib/nav/Makefile.am | 8 +- lib/python/Makefile.am | 7 +- .../Plugins/Extensions/DVDPlayer/src/Makefile.am | 4 + .../Plugins/Extensions/SocketMMI/src/Makefile.am | 4 + lib/python/connections.h | 5 - lib/python/python.h | 1 - lib/service/Makefile.am | 8 +- m4/ax_pthread.m4 | 283 +++++++++++++++++++++ m4/tuxbox.m4 | 155 ----------- main/Makefile.am | 43 +--- tools/Makefile.am | 2 +- 25 files changed, 404 insertions(+), 275 deletions(-) create mode 100644 m4/ax_pthread.m4 (limited to 'lib/python/Makefile.am') diff --git a/configure.ac b/configure.ac index 429a6860..91de157a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,9 @@ AC_INIT([enigma2],[2.8.0],[enigma2-devel@lists.elitedvb.net]) -AM_INIT_AUTOMAKE([dist-bzip2 no-define]) +AM_INIT_AUTOMAKE([dist-bzip2 no-define silent-rules]) + +AC_USE_SYSTEM_EXTENSIONS +AC_SYS_LARGEFILE -TUXBOX_APPS TUXBOX_APPS_DIRECTORY AC_PROG_CC @@ -25,25 +27,18 @@ AM_CONDITIONAL(HAVE_DDVDLIB, test "$have_ddvdlib" = "yes") AM_PATH_PYTHON AX_PYTHON_DEVEL +AX_PTHREAD TUXBOX_APPS_DVB -PKG_CHECK_MODULES(FREETYPE, freetype2) -PKG_CHECK_MODULES(FRIBIDI, fribidi) -PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10, HAVE_GSTREAMER="yes", HAVE_GSTREAMER="no") -PKG_CHECK_MODULES(GSTREAMERPBUTILS, gstreamer-pbutils-0.10, HAVE_GSTSTREAMERPBUTILS="yes", HAVE_GSTSTREAMERPBUTILS="no") -PKG_CHECK_MODULES(ID3TAG, id3tag) -PKG_CHECK_MODULES(DVBSI, libdvbsi++) -PKG_CHECK_MODULES(PNG, libpng) +PKG_CHECK_MODULES(BASE, [freetype2 fribidi gstreamer-0.10 gstreamer-pbutils-0.10 libdvbsi++ libpng libxml-2.0 sigc++-1.2]) PKG_CHECK_MODULES(LIBXINE, libxine, HAVE_LIBXINE="yes", HAVE_LIBXINE="no") -PKG_CHECK_MODULES(XML2, libxml-2.0) -PKG_CHECK_MODULES(MAD, mad) -PKG_CHECK_MODULES(SIGC, sigc++-1.2) -AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no") -JPEG_LIBS="-ljpeg" -AC_SUBST(JPEG_LIBS) - -AC_SUBST(LIBUNGIF_LIBS,"") + +AC_CHECK_LIB([dl], [dlopen], [LIBDL_LIBS="-ldl"]) +AC_SUBST(LIBDL_LIBS) +AC_CHECK_LIB([jpeg], [jpeg_set_defaults]) +AC_CHECK_LIB([xmlccwrap], [exit]) + AC_CHECK_HEADERS(gif_lib.h, AC_CHECK_LIB(ungif,DGifOpen, [AC_DEFINE(HAVE_LIBUNGIF,1,[Define if you have libgif/libungif including devel headers]) @@ -51,27 +46,20 @@ AC_CHECK_HEADERS(gif_lib.h, [AC_CHECK_LIB(gif,DGifOpen, [AC_DEFINE(HAVE_LIUNBGIF,1) LIBUNGIF_LIBS="-lgif"])])) - -# ok, we are in trouble: XMLCCWRAP only defines C++ symbols. So let's just check if linking works, -# and assume everything will be ok. Then just check for the "exit" symbol, which should be always there. -AC_LANG_SAVE -AC_LANG_CPLUSPLUS -TUXBOX_APPS_LIB_SYMBOL(XMLCCWRAP, xmlccwrap, exit) -AC_LANG_RESTORE +AC_SUBST(LIBUNGIF_LIBS) if test "$with_sdl" = "yes" ; then PKG_CHECK_MODULES(SDL, sdl) - AC_DEFINE_UNQUOTED([WITH_SDL],[1],[Define to 1 if you have libsdl]) + AC_DEFINE([WITH_SDL],[1],[Define to 1 if you have libsdl]) fi # allow 'if WITH_SDL' conditionals in Makefile.am AM_CONDITIONAL(WITH_SDL, test "$with_sdl" = "yes") -CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)' -CPPFLAGS="$CPPFLAGS -D_REENTRANT $PYTHON_CPPFLAGS $MD5SUM_CFLAGS $FREETYPE_CFLAGS $FRIBIDI_CFLAGS $ID3TAG_CFLAGS $MAD_CFLAGS $PLUGINS_CFLAGS $PNG_CFLAGS $SDL_CFLAGS $SIGC_CFLAGS $XMLTREE_CFLAGS $DVBSI_CFLAGS $GSTREAMER_CFLAGS $GSTREAMERPBUTILS_CFLAGS $LIBXINE_CFLAGS $LIBUNGIF_CFLAGS" +CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" +CXXFLAGS="$CXXFLAGS $BASE_CFLAGS $LIBUNGIF_CFLAGS $LIBXINE_CFLAGS $PTHREAD_CFLAGS $SDL_CFLAGS -fno-rtti -fno-exceptions -Wall" +LDFLAGS="$LDFLAGS $BASE_LDFLAGS $PYTHON_LDFLAGS $SDL_LDFLAGS $LIBUNGIF_LDFLAGS $LIBXINE_LDFLAGS" + #CPPFLAGS="$CPPFLAGS -DMEMLEAK_CHECK" -CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions -Wall" -LDFLAGS="$LDFLAGS -pthread $PYTHON_LDFLAGS $SDL_LDFLAGS $GSTREAMER_LDFLAGS $GSTREAMERPBUTILS_LDFLAGS $LIBXINE_LDFLAGS $LIBUNGIF_LDFLAGS" -#LDFLAGS="-rdynamic $LDFLAGS" TUXBOX_APPS_GETTEXT diff --git a/lib/Makefile.am b/lib/Makefile.am index bd89aeef..f5617486 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1 +1,18 @@ SUBDIRS = actions base components dvb dvb_ci gdi service driver nav gui python mmi + +noinst_LTLIBRARIES = libenigma.la + +libenigma_la_SOURCES = +libenigma_la_LIBADD = \ + $(top_builddir)/lib/actions/libenigma_actions.la \ + $(top_builddir)/lib/base/libenigma_base.la \ + $(top_builddir)/lib/components/libenigma_components.la \ + $(top_builddir)/lib/driver/libenigma_driver.la \ + $(top_builddir)/lib/mmi/libenigma_mmi.la \ + $(top_builddir)/lib/dvb/libenigma_dvb.la \ + $(top_builddir)/lib/dvb_ci/libenigma_dvb_ci.la \ + $(top_builddir)/lib/gdi/libenigma_gdi.la \ + $(top_builddir)/lib/gui/libenigma_gui.la \ + $(top_builddir)/lib/python/libenigma_python.la \ + $(top_builddir)/lib/nav/libenigma_nav.la \ + $(top_builddir)/lib/service/libenigma_service.la diff --git a/lib/actions/Makefile.am b/lib/actions/Makefile.am index 05a50884..45f0177b 100644 --- a/lib/actions/Makefile.am +++ b/lib/actions/Makefile.am @@ -1,15 +1,21 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_builddir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_actions.a +EXTRA_DIST = parseactions.py -libenigma_actions_a_SOURCES = \ - action.cpp +noinst_LTLIBRARIES = libenigma_actions.la +libenigma_actions_la_SOURCES = \ + action.cpp \ + action.h + +BUILT_SOURCES = actionids.h CLEANFILES = actionids.h action.cpp: actionids.h -actionids.h: - python ./parseactions.py include ../gui/*.h > actionids.h - python ./parseactions.py parse ../gui/*.h >> actionids.h +actionids.h: $(top_srcdir)/lib/gui/*.h + $(PYTHON) $(srcdir)/parseactions.py include $(top_srcdir)/lib/gui/*.h > $@ + $(PYTHON) $(srcdir)/parseactions.py parse $(top_srcdir)/lib/gui/*.h >> $@ diff --git a/lib/actions/action.h b/lib/actions/action.h index cbf5370a..edcfac6f 100644 --- a/lib/actions/action.h +++ b/lib/actions/action.h @@ -3,10 +3,6 @@ #include - /* avoid warnigs :) */ -#include -#undef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200112L #include #include #include diff --git a/lib/actions/parseactions.py b/lib/actions/parseactions.py index 2462a751..cad432a7 100644 --- a/lib/actions/parseactions.py +++ b/lib/actions/parseactions.py @@ -89,7 +89,7 @@ def do_file(f, mode): if mode == "include": # hack hack hack!! - print "#include " + print "#include " else: print "\t// " + f diff --git a/lib/base/Makefile.am b/lib/base/Makefile.am index df6d2b85..5fd3eaf2 100644 --- a/lib/base/Makefile.am +++ b/lib/base/Makefile.am @@ -1,9 +1,11 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_base.a +noinst_LTLIBRARIES = libenigma_base.la -libenigma_base_a_SOURCES = \ +libenigma_base_la_SOURCES = \ buffer.cpp ebase.cpp eerror.cpp elock.cpp \ init.cpp message.cpp thread.cpp \ smartptr.cpp estring.cpp connection.cpp \ diff --git a/lib/base/console.h b/lib/base/console.h index e730b40e..60540da0 100644 --- a/lib/base/console.h +++ b/lib/base/console.h @@ -1,7 +1,6 @@ #ifndef __LIB_BASE_CONSOLE_H__ #define __LIB_BASE_CONSOLE_H__ -#include "Python.h" #include #include #include diff --git a/lib/components/Makefile.am b/lib/components/Makefile.am index e6d21d7a..960e101c 100644 --- a/lib/components/Makefile.am +++ b/lib/components/Makefile.am @@ -1,6 +1,8 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_components.a +noinst_LTLIBRARIES = libenigma_components.la -libenigma_components_a_SOURCES = scan.cpp file_eraser.cpp +libenigma_components_la_SOURCES = scan.cpp file_eraser.cpp diff --git a/lib/driver/Makefile.am b/lib/driver/Makefile.am index 244c1324..4b8fc086 100644 --- a/lib/driver/Makefile.am +++ b/lib/driver/Makefile.am @@ -1,7 +1,9 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_driver.a +noinst_LTLIBRARIES = libenigma_driver.la -libenigma_driver_a_SOURCES = \ +libenigma_driver_la_SOURCES = \ rc.cpp rcinput.cpp rcconsole.cpp avswitch.cpp rfmod.cpp etimezone.cpp misc_options.cpp diff --git a/lib/dvb/Makefile.am b/lib/dvb/Makefile.am index ee81c216..cef71405 100644 --- a/lib/dvb/Makefile.am +++ b/lib/dvb/Makefile.am @@ -1,11 +1,13 @@ SUBDIRS = lowlevel AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_dvb.a +noinst_LTLIBRARIES = libenigma_dvb.la -libenigma_dvb_a_SOURCES = dvb.cpp demux.cpp frontend.cpp esection.cpp db.cpp \ +libenigma_dvb_la_SOURCES = dvb.cpp demux.cpp frontend.cpp esection.cpp db.cpp \ sec.cpp scan.cpp crc32.cpp pmt.cpp decoder.cpp eit.cpp rotor_calc.cpp \ epgcache.cpp dvbtime.cpp metaparser.cpp volume.cpp tstools.cpp pvrparse.cpp \ pesparse.cpp teletext.cpp radiotext.cpp subtitle.cpp diff --git a/lib/dvb_ci/Makefile.am b/lib/dvb_ci/Makefile.am index e98636e0..153f8c0b 100644 --- a/lib/dvb_ci/Makefile.am +++ b/lib/dvb_ci/Makefile.am @@ -1,9 +1,11 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_dvb_ci.a +noinst_LTLIBRARIES = libenigma_dvb_ci.la -libenigma_dvb_ci_a_SOURCES = dvbci.cpp dvbci_session.cpp dvbci_resmgr.cpp \ +libenigma_dvb_ci_la_SOURCES = dvbci.cpp dvbci_session.cpp dvbci_resmgr.cpp \ dvbci_appmgr.cpp dvbci_camgr.cpp \ dvbci_datetimemgr.cpp dvbci_mmi.cpp \ dvbci_ui.cpp diff --git a/lib/gdi/Makefile.am b/lib/gdi/Makefile.am index 192a96f6..192990b9 100644 --- a/lib/gdi/Makefile.am +++ b/lib/gdi/Makefile.am @@ -1,15 +1,15 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include -I$(top_srcdir)/lib/gdi/ati + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_gdi.a +noinst_LTLIBRARIES = libenigma_gdi.la -libenigma_gdi_a_SOURCES = \ +libenigma_gdi_la_SOURCES = \ region.cpp grc.cpp epng.cpp erect.cpp fb.cpp font.cpp font_arabic.cpp gfbdc.cpp \ glcddc.cpp gpixmap.cpp lcd.cpp gfont.cpp accel.cpp picload.cpp picexif.cpp \ compositing.cpp bcm.cpp if WITH_SDL -libenigma_gdi_a_SOURCES += sdl.cpp +libenigma_gdi_la_SOURCES += sdl.cpp endif - -# ati/2dablt.cpp ati/2dcore.cpp ati/ati_core.cpp ati/test.cpp ati/2dutil.cpp diff --git a/lib/gui/Makefile.am b/lib/gui/Makefile.am index 8293b2e2..290eaab9 100644 --- a/lib/gui/Makefile.am +++ b/lib/gui/Makefile.am @@ -1,10 +1,11 @@ AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -I$(top_srcdir)/src + -include Python.h -noinst_LIBRARIES = libenigma_gui.a +noinst_LTLIBRARIES = libenigma_gui.la -libenigma_gui_a_SOURCES = \ +libenigma_gui_la_SOURCES = \ ebutton.cpp elabel.cpp eslider.cpp ewidget.cpp ewidgetdesktop.cpp \ ewindow.cpp ewindowstyle.cpp elistbox.cpp elistboxcontent.cpp \ epixmap.cpp ewindowstyleskinned.cpp einput.cpp einputstring.cpp einputnumber.cpp \ diff --git a/lib/mmi/Makefile.am b/lib/mmi/Makefile.am index 4a514fce..f72d1586 100644 --- a/lib/mmi/Makefile.am +++ b/lib/mmi/Makefile.am @@ -1,6 +1,8 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_mmi.a +noinst_LTLIBRARIES = libenigma_mmi.la -libenigma_mmi_a_SOURCES = mmi_ui.cpp +libenigma_mmi_la_SOURCES = mmi_ui.cpp diff --git a/lib/nav/Makefile.am b/lib/nav/Makefile.am index 28adfe6b..93468699 100644 --- a/lib/nav/Makefile.am +++ b/lib/nav/Makefile.am @@ -1,9 +1,11 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_nav.a +noinst_LTLIBRARIES = libenigma_nav.la -libenigma_nav_a_SOURCES = \ +libenigma_nav_la_SOURCES = \ core.cpp pcore.cpp diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index 72191edc..03dcedb9 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -1,12 +1,13 @@ AM_CPPFLAGS = \ + -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -I$(top_srcdir)/src + -include Python.h SUBDIRS = Components Tools Screens Plugins -noinst_LIBRARIES = libenigma_python.a +noinst_LTLIBRARIES = libenigma_python.la -libenigma_python_a_SOURCES = \ +libenigma_python_la_SOURCES = \ python.cpp enigma_python_wrap.cxx connections.cpp enigma_python_wrap.cxx: enigma_python.i diff --git a/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am b/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am index fdd9c3ed..e79688b8 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am +++ b/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am @@ -1,3 +1,7 @@ +CPPFLAGS += \ + -I$(top_srcdir) \ + -include Python.h + OBJS = servicedvd.cpp -include $(OBJS:.cpp=.d) diff --git a/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am b/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am index 8e80e183..914371e5 100644 --- a/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am +++ b/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am @@ -1,3 +1,7 @@ +CPPFLAGS += \ + -I$(top_srcdir) \ + -include Python.h + OBJS = socket_mmi.cpp -include $(OBJS:.cpp=.d) diff --git a/lib/python/connections.h b/lib/python/connections.h index ad76198a..b4cd1c79 100644 --- a/lib/python/connections.h +++ b/lib/python/connections.h @@ -3,11 +3,6 @@ #include - /* avoid warnigs :) */ -#include -#undef _POSIX_C_SOURCE -#define _POSIX_C_SOURCE 200112L - #include class PSignal diff --git a/lib/python/python.h b/lib/python/python.h index 18fdac78..f5b6e4d8 100644 --- a/lib/python/python.h +++ b/lib/python/python.h @@ -4,7 +4,6 @@ #define __lib_python_python_class_h #endif -#include #include #include diff --git a/lib/service/Makefile.am b/lib/service/Makefile.am index 52d7af2a..c4dabebc 100644 --- a/lib/service/Makefile.am +++ b/lib/service/Makefile.am @@ -1,9 +1,11 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h -noinst_LIBRARIES = libenigma_service.a +noinst_LTLIBRARIES = libenigma_service.la -libenigma_service_a_SOURCES = \ +libenigma_service_la_SOURCES = \ listboxservice.cpp service.cpp servicemp3.cpp servicedvb.cpp servicefs.cpp \ event.cpp servicedvbrecord.cpp diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 new file mode 100644 index 00000000..2152a80a --- /dev/null +++ b/m4/ax_pthread.m4 @@ -0,0 +1,283 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_pthread.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) +# +# DESCRIPTION +# +# This macro figures out how to build C programs using POSIX threads. It +# sets the PTHREAD_LIBS output variable to the threads library and linker +# flags, and the PTHREAD_CFLAGS output variable to any special C compiler +# flags that are needed. (The user can also force certain compiler +# flags/libs to be tested by setting these environment variables.) +# +# Also sets PTHREAD_CC to any special C compiler that is needed for +# multi-threaded programs (defaults to the value of CC otherwise). (This +# is necessary on AIX to use the special cc_r compiler alias.) +# +# NOTE: You are assumed to not only compile your program with these flags, +# but also link it with them as well. e.g. you should link with +# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS +# +# If you are only building threads programs, you may wish to use these +# variables in your default LIBS, CFLAGS, and CC: +# +# LIBS="$PTHREAD_LIBS $LIBS" +# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +# CC="$PTHREAD_CC" +# +# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant +# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name +# (e.g. PTHREAD_CREATE_UNDETACHED on AIX). +# +# ACTION-IF-FOUND is a list of shell commands to run if a threads library +# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it +# is not found. If ACTION-IF-FOUND is not specified, the default action +# will define HAVE_PTHREAD. +# +# Please let the authors know if this macro fails on any platform, or if +# you have any other suggestions or comments. This macro was based on work +# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help +# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by +# Alejandro Forero Cuervo to the autoconf macro repository. We are also +# grateful for the helpful feedback of numerous users. +# +# LICENSE +# +# Copyright (c) 2008 Steven G. Johnson +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 11 + +AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) +AC_DEFUN([AX_PTHREAD], [ +AC_REQUIRE([AC_CANONICAL_HOST]) +AC_LANG_SAVE +AC_LANG_C +ax_pthread_ok=no + +# We used to check for pthread.h first, but this fails if pthread.h +# requires special compiler flags (e.g. on True64 or Sequent). +# It gets checked for in the link test anyway. + +# First of all, check if the user has set any of the PTHREAD_LIBS, +# etcetera environment variables, and if threads linking works using +# them: +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) + AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes) + AC_MSG_RESULT($ax_pthread_ok) + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" +fi + +# We must check for the threads library under a number of different +# names; the ordering is very important because some systems +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the +# libraries is broken (non-POSIX). + +# Create a list of thread flags to try. Items starting with a "-" are +# C compiler flags, and other items are library names, except for "none" +# which indicates that we try without any flags at all, and "pthread-config" +# which is a program returning the flags for the Pth emulation library. + +ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" + +# The ordering *is* (sometimes) important. Some notes on the +# individual items follow: + +# pthreads: AIX (must check this before -lpthread) +# none: in case threads are in libc; should be tried before -Kthread and +# other compiler flags to prevent continual compiler warnings +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) +# -pthreads: Solaris/gcc +# -mthreads: Mingw32/gcc, Lynx/gcc +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it +# doesn't hurt to check since this sometimes defines pthreads too; +# also defines -D_REENTRANT) +# ... -mt is also the pthreads flag for HP/aCC +# pthread: Linux, etcetera +# --thread-safe: KAI C++ +# pthread-config: use pthread-config program (for GNU Pth library) + +case "${host_cpu}-${host_os}" in + *solaris*) + + # On Solaris (at least, for some versions), libc contains stubbed + # (non-functional) versions of the pthreads routines, so link-based + # tests will erroneously succeed. (We need to link with -pthreads/-mt/ + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather + # a function called by this macro, so we could check for that, but + # who knows whether they'll stub that too in a future libc.) So, + # we'll just look for -pthreads and -lpthread first: + + ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" + ;; + + *-darwin*) + ax_pthread_flags="-pthread $ax_pthread_flags" + ;; +esac + +if test x"$ax_pthread_ok" = xno; then +for flag in $ax_pthread_flags; do + + case $flag in + none) + AC_MSG_CHECKING([whether pthreads work without any flags]) + ;; + + -*) + AC_MSG_CHECKING([whether pthreads work with $flag]) + PTHREAD_CFLAGS="$flag" + ;; + + pthread-config) + AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no) + if test x"$ax_pthread_config" = xno; then continue; fi + PTHREAD_CFLAGS="`pthread-config --cflags`" + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" + ;; + + *) + AC_MSG_CHECKING([for the pthreads library -l$flag]) + PTHREAD_LIBS="-l$flag" + ;; + esac + + save_LIBS="$LIBS" + save_CFLAGS="$CFLAGS" + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Check for various functions. We must include pthread.h, + # since some functions may be macros. (On the Sequent, we + # need a special flag -Kthread to make this header compile.) + # We check for pthread_join because it is in -lpthread on IRIX + # while pthread_create is in libc. We check for pthread_attr_init + # due to DEC craziness with -lpthreads. We check for + # pthread_cleanup_push because it is one of the few pthread + # functions on Solaris that doesn't have a non-functional libc stub. + # We try pthread_create on general principles. + AC_TRY_LINK([#include + static void routine(void* a) {a=0;} + static void* start_routine(void* a) {return a;}], + [pthread_t th; pthread_attr_t attr; + pthread_create(&th,0,start_routine,0); + pthread_join(th, 0); + pthread_attr_init(&attr); + pthread_cleanup_push(routine, 0); + pthread_cleanup_pop(0); ], + [ax_pthread_ok=yes]) + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + AC_MSG_RESULT($ax_pthread_ok) + if test "x$ax_pthread_ok" = xyes; then + break; + fi + + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" +done +fi + +# Various other checks: +if test "x$ax_pthread_ok" = xyes; then + save_LIBS="$LIBS" + LIBS="$PTHREAD_LIBS $LIBS" + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. + AC_MSG_CHECKING([for joinable pthread attribute]) + attr_name=unknown + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do + AC_TRY_LINK([#include ], [int attr=$attr; return attr;], + [attr_name=$attr; break]) + done + AC_MSG_RESULT($attr_name) + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, + [Define to necessary symbol if this constant + uses a non-standard name on your system.]) + fi + + AC_MSG_CHECKING([if more special flags are required for pthreads]) + flag=no + case "${host_cpu}-${host_os}" in + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + esac + AC_MSG_RESULT(${flag}) + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: must compile with xlc_r or cc_r + if test x"$GCC" != xyes; then + AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) + else + PTHREAD_CC=$CC + fi +else + PTHREAD_CC="$CC" +fi + +AC_SUBST(PTHREAD_LIBS) +AC_SUBST(PTHREAD_CFLAGS) +AC_SUBST(PTHREAD_CC) + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) + : +else + ax_pthread_ok=no + $2 +fi +AC_LANG_RESTORE +])dnl AX_PTHREAD diff --git a/m4/tuxbox.m4 b/m4/tuxbox.m4 index 1232fda8..168157a6 100644 --- a/m4/tuxbox.m4 +++ b/m4/tuxbox.m4 @@ -1,74 +1,3 @@ -AC_DEFUN([TUXBOX_APPS],[ - -INSTALL="$INSTALL -p" - -AC_USE_SYSTEM_EXTENSIONS -AC_SYS_LARGEFILE - -AC_ARG_WITH(target, - [ --with-target=TARGET target for compilation [[native,cdk]]], - [TARGET="$withval"],[TARGET="native"]) - -AC_ARG_WITH(targetprefix, - [ --with-targetprefix=PATH prefix relative to target root (only applicable in cdk mode)], - [targetprefix="$withval"],[targetprefix="NONE"]) - -AC_ARG_WITH(debug, - [ --without-debug disable debugging code], - [DEBUG="$withval"],[DEBUG="yes"]) - -if test "$DEBUG" = "yes"; then - DEBUG_CFLAGS="-g3 -ggdb" - AC_DEFINE(DEBUG,1,[Enable debug messages]) -fi - -AC_MSG_CHECKING(target) - -if test "$TARGET" = "native"; then - AC_MSG_RESULT(native) - - if test "$CFLAGS" = "" -a "$CXXFLAGS" = ""; then - CFLAGS="-Wall -O2 -pipe $DEBUG_CFLAGS" - CXXFLAGS="-Wall -O2 -pipe $DEBUG_CFLAGS" - fi - if test "$prefix" = "NONE"; then - prefix=/usr/local - fi - targetprefix=$prefix -elif test "$TARGET" = "cdk"; then - AC_MSG_RESULT(cdk) - - if test "$CC" = "" -a "$CXX" = ""; then - CC=powerpc-tuxbox-linux-gnu-gcc CXX=powerpc-tuxbox-linux-gnu-g++ - fi - if test "$CFLAGS" = "" -a "$CXXFLAGS" = ""; then - CFLAGS="-Wall -Os -mcpu=823 -pipe $DEBUG_CFLAGS" - CXXFLAGS="-Wall -Os -mcpu=823 -pipe $DEBUG_CFLAGS" - fi - if test "$prefix" = "NONE"; then - AC_MSG_ERROR(invalid prefix, you need to specify one in cdk mode) - fi - if test "$targetprefix" = "NONE"; then - targetprefix="" - fi - if test "$host_alias" = ""; then - cross_compiling=yes - host_alias=powerpc-tuxbox-linux-gnu - fi -else - AC_MSG_RESULT(none) - AC_MSG_ERROR([invalid target $TARGET, choose on from native,cdk]); -fi - -AC_CANONICAL_BUILD -AC_CANONICAL_HOST - -check_path () { - return $(perl -e "if(\"$1\"=~m#^/usr/(local/)?bin#){print \"0\"}else{print \"1\";}") -} - -]) - AC_DEFUN([TUXBOX_APPS_DIRECTORY_ONE],[ AC_ARG_WITH($1,[ $6$7 [[PREFIX$4$5]]],[ _$2=$withval @@ -92,22 +21,6 @@ AC_DEFINE_UNQUOTED($2,"$_$2",$7) ]) AC_DEFUN([TUXBOX_APPS_DIRECTORY],[ -AC_REQUIRE([TUXBOX_APPS]) - -if test "$TARGET" = "cdk"; then - datadir="\${prefix}/share" - tuxboxdatadir="\${prefix}/share/tuxbox" - zoneinfodir="\${datadir}/zoneinfo" - sysconfdir="\${prefix}/etc" - localstatedir="\${prefix}/var" - localedir="\${prefix}/var" - libdir="\${prefix}/lib" - targetdatadir="\${targetprefix}/share" - targetsysconfdir="\${targetprefix}/etc" - targetlocalstatedir="\${targetprefix}/var" - targetlibdir="\${targetprefix}/lib" -fi - TUXBOX_APPS_DIRECTORY_ONE(configdir,CONFIGDIR,sysconfdir,/etc,, [--with-configdir=PATH ],[where to find the config files]) @@ -165,52 +78,6 @@ else fi ]) -AC_DEFUN([_TUXBOX_APPS_LIB_CONFIG],[ -AC_PATH_PROG($1_CONFIG,$2,no) -if test "$$1_CONFIG" != "no"; then - if test "$TARGET" = "cdk" && check_path "$$1_CONFIG"; then - AC_MSG_$3([could not find a suitable version of $2]); - else - $1_CFLAGS=$($$1_CONFIG --cflags) - $1_LIBS=$($$1_CONFIG --libs) - fi -fi - -AC_SUBST($1_CFLAGS) -AC_SUBST($1_LIBS) -]) - -AC_DEFUN([TUXBOX_APPS_LIB_CONFIG],[ -_TUXBOX_APPS_LIB_CONFIG($1,$2,ERROR) -if test "$$1_CONFIG" = "no"; then - AC_MSG_ERROR([could not find $2]); -fi -]) - -AC_DEFUN([TUXBOX_APPS_LIB_CONFIG_CHECK],[ -_TUXBOX_APPS_LIB_CONFIG($1,$2,WARN) -]) - -AC_DEFUN([_TUXBOX_APPS_LIB_SYMBOL],[ -AC_CHECK_LIB($2,$3,HAVE_$1="yes",HAVE_$1="no") -if test "$HAVE_$1" = "yes"; then - $1_LIBS=-l$2 -fi - -AC_SUBST($1_LIBS) -]) - -AC_DEFUN([TUXBOX_APPS_LIB_SYMBOL],[ -_TUXBOX_APPS_LIB_SYMBOL($1,$2,$3,ERROR) -if test "$HAVE_$1" = "no"; then - AC_MSG_ERROR([could not find $2]); -fi -]) - -AC_DEFUN([TUXBOX_APPS_LIB_CONFIG_SYMBOL],[ -_TUXBOX_APPS_LIB_SYMBOL($1,$2,$3,WARN) -]) - AC_DEFUN([TUXBOX_APPS_GETTEXT],[ AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && @@ -301,25 +168,3 @@ AC_SUBST(UPDATEPOFILES) AC_SUBST(DUMMYPOFILES) AC_SUBST(CATALOGS) ]) - -dnl backward compatiblity -AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], -[AH_VERBATIM([_GNU_SOURCE], -[/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# undef _GNU_SOURCE -#endif])dnl -AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl -AC_BEFORE([$0], [AC_RUN_IFELSE])dnl -AC_DEFINE([_GNU_SOURCE]) -]) - -AC_DEFUN([AC_PROG_EGREP], -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi]) - EGREP=$ac_cv_prog_egrep - AC_SUBST([EGREP]) -]) diff --git a/main/Makefile.am b/main/Makefile.am index fa889c0a..4eebe996 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -1,5 +1,7 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/include + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + -include Python.h bin_PROGRAMS = enigma2 @@ -39,38 +41,11 @@ version.h: entries fi; \ fi; -enigma2_LDADD_WHOLE = \ - $(top_builddir)/lib/actions/libenigma_actions.a \ - $(top_builddir)/lib/base/libenigma_base.a \ - $(top_builddir)/lib/components/libenigma_components.a \ - $(top_builddir)/lib/driver/libenigma_driver.a \ - $(top_builddir)/lib/mmi/libenigma_mmi.a \ - $(top_builddir)/lib/dvb/libenigma_dvb.a \ - $(top_builddir)/lib/dvb_ci/libenigma_dvb_ci.a \ - $(top_builddir)/lib/gdi/libenigma_gdi.a \ - $(top_builddir)/lib/gui/libenigma_gui.a \ - $(top_builddir)/lib/python/libenigma_python.a \ - $(top_builddir)/lib/nav/libenigma_nav.a \ - $(top_builddir)/lib/service/libenigma_service.a - enigma2_LDADD = \ - @FREETYPE_LIBS@ \ - @ID3TAG_LIBS@ \ - @MAD_LIBS@ \ - @PNG_LIBS@ \ - @SDL_LIBS@ \ - @SIGC_LIBS@ \ - @DVBSI_LIBS@ \ - @FRIBIDI_LIBS@ \ - @GSTREAMER_LIBS@ \ - @GSTREAMERPBUTILS_LIBS@ \ - @JPEG_LIBS@ \ + $(top_builddir)/lib/libenigma.la \ + @BASE_LIBS@ \ @LIBUNGIF_LIBS@ \ - @XML2_LIBS@ \ - @XMLCCWRAP_LIBS@ \ - -ldl -lpthread -lcrypt -lresolv -lrt - -enigma2$(EXEEXT): $(enigma2_OBJECTS) $(enigma2_DEPENDENCIES) $(enigma2_LDADD_WHOLE) -# @rm -f enigma2$(EXEEXT) - $(CXXLINK) $(enigma2_LDFLAGS) $(enigma2_OBJECTS) -Wl,--export-dynamic -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS) -# g++ -o enigma2$(EXEEXT) $(enigma2_LDFLAGS) $(enigma2_OBJECTS) -Wl,--export-dynamic -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS) + @LIBXINE_LIBS@ \ + @PTHREAD_LIBS@ \ + @SDL_LIBS@ \ + @LIBS@ diff --git a/tools/Makefile.am b/tools/Makefile.am index 4e1e8efd..a0121874 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,4 +1,4 @@ lib_LTLIBRARIES = libopen.la libopen_la_SOURCES = libopen.c -libopen_la_LIBADD = -ldl +libopen_la_LIBADD = @LIBDL_LIBS@ -- cgit v1.2.3 From 62455fd662f08b1f81cbb08ccb2c199cde0b9e97 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Mon, 25 Oct 2010 22:29:45 +0000 Subject: clean up build #2 * use swig macros from autoconf archive * generate and use enigma2_config.h (include from command-line) * check for dbox/fp.h and dbox/lcd-ks0713.h * clean up checks for libdreamdvd and lib*gif * fix some dependencies for generated files and header files --- configure.ac | 24 ++-- lib/actions/Makefile.am | 10 +- lib/base/Makefile.am | 47 ++++++-- lib/components/Makefile.am | 9 +- lib/driver/Makefile.am | 21 +++- lib/dvb/Makefile.am | 59 ++++++++- lib/dvb_ci/Makefile.am | 25 +++- lib/gdi/Makefile.am | 44 ++++++- lib/gui/Makefile.am | 45 ++++++- lib/mmi/Makefile.am | 7 +- lib/nav/Makefile.am | 10 +- lib/python/Makefile.am | 23 +++- .../Plugins/Extensions/DVDPlayer/src/Makefile.am | 3 +- .../Plugins/Extensions/SocketMMI/src/Makefile.am | 3 +- lib/service/Makefile.am | 3 +- m4/ax_pkg_swig.m4 | 133 +++++++++++++++++++++ m4/ax_swig_enable_cxx.m4 | 53 ++++++++ m4/ax_swig_python.m4 | 64 ++++++++++ main/Makefile.am | 4 +- 19 files changed, 518 insertions(+), 69 deletions(-) create mode 100644 m4/ax_pkg_swig.m4 create mode 100644 m4/ax_swig_enable_cxx.m4 create mode 100644 m4/ax_swig_python.m4 (limited to 'lib/python/Makefile.am') diff --git a/configure.ac b/configure.ac index 91de157a..b7faa7dc 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,6 @@ AC_INIT([enigma2],[2.8.0],[enigma2-devel@lists.elitedvb.net]) AM_INIT_AUTOMAKE([dist-bzip2 no-define silent-rules]) +AC_CONFIG_HEADERS([enigma2_config.h]) AC_USE_SYSTEM_EXTENSIONS AC_SYS_LARGEFILE @@ -17,36 +18,27 @@ AC_ARG_WITH(libsdl, [[with_sdl=no]] ) -AC_CHECK_HEADER(dreamdvd/ddvdlib.h,have_ddvdlib="yes",have_ddvdlib="no") -if test x"${have_ddvdlib}" = xyes ; then - AC_DEFINE(HAVE_DDVDLIB, 1,[Define if ddvdlib is available]) -else - AC_MSG_NOTICE([ddvdlib not found... dont build dvd plugin]) -fi -AM_CONDITIONAL(HAVE_DDVDLIB, test "$have_ddvdlib" = "yes") +AC_CHECK_HEADERS([dbox/fp.h dbox/lcd-ks0713.h]) AM_PATH_PYTHON AX_PYTHON_DEVEL +AX_PKG_SWIG +AX_SWIG_ENABLE_CXX +AX_SWIG_PYTHON AX_PTHREAD TUXBOX_APPS_DVB PKG_CHECK_MODULES(BASE, [freetype2 fribidi gstreamer-0.10 gstreamer-pbutils-0.10 libdvbsi++ libpng libxml-2.0 sigc++-1.2]) +PKG_CHECK_MODULES(LIBDDVD, libdreamdvd, HAVE_DDVDLIB="yes", HAVE_DDVDLIB="no") +AM_CONDITIONAL(HAVE_DDVDLIB, test "$HAVE_DDVDLIB" = "yes") PKG_CHECK_MODULES(LIBXINE, libxine, HAVE_LIBXINE="yes", HAVE_LIBXINE="no") AC_CHECK_LIB([dl], [dlopen], [LIBDL_LIBS="-ldl"]) AC_SUBST(LIBDL_LIBS) AC_CHECK_LIB([jpeg], [jpeg_set_defaults]) AC_CHECK_LIB([xmlccwrap], [exit]) - -AC_CHECK_HEADERS(gif_lib.h, - AC_CHECK_LIB(ungif,DGifOpen, - [AC_DEFINE(HAVE_LIBUNGIF,1,[Define if you have libgif/libungif including devel headers]) - LIBUNGIF_LIBS="-lungif"], - [AC_CHECK_LIB(gif,DGifOpen, - [AC_DEFINE(HAVE_LIUNBGIF,1) - LIBUNGIF_LIBS="-lgif"])])) -AC_SUBST(LIBUNGIF_LIBS) +AC_CHECK_LIB([ungif], [DGifOpen], , [AC_CHECK_LIB([gif], [DGifOpen])]) if test "$with_sdl" = "yes" ; then PKG_CHECK_MODULES(SDL, sdl) diff --git a/lib/actions/Makefile.am b/lib/actions/Makefile.am index 45f0177b..9f62e2e7 100644 --- a/lib/actions/Makefile.am +++ b/lib/actions/Makefile.am @@ -1,7 +1,8 @@ AM_CPPFLAGS = \ -I$(top_builddir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h EXTRA_DIST = parseactions.py @@ -11,11 +12,12 @@ libenigma_actions_la_SOURCES = \ action.cpp \ action.h +nodist_libenigma_actions_la_SOURCES = \ + actionids.h + BUILT_SOURCES = actionids.h CLEANFILES = actionids.h -action.cpp: actionids.h - -actionids.h: $(top_srcdir)/lib/gui/*.h +actionids.h: $(srcdir)/parseactions.py $(top_srcdir)/lib/gui/*.h $(PYTHON) $(srcdir)/parseactions.py include $(top_srcdir)/lib/gui/*.h > $@ $(PYTHON) $(srcdir)/parseactions.py parse $(top_srcdir)/lib/gui/*.h >> $@ diff --git a/lib/base/Makefile.am b/lib/base/Makefile.am index 5fd3eaf2..498244fb 100644 --- a/lib/base/Makefile.am +++ b/lib/base/Makefile.am @@ -1,14 +1,47 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_base.la libenigma_base_la_SOURCES = \ - buffer.cpp ebase.cpp eerror.cpp elock.cpp \ - init.cpp message.cpp thread.cpp \ - smartptr.cpp estring.cpp connection.cpp \ - filepush.cpp encoding.cpp console.cpp rawfile.cpp \ - nconfig.cpp ioprio.cpp etpm.cpp - + buffer.cpp \ + buffer.h \ + connection.cpp \ + console.cpp \ + console.h \ + ebase.cpp \ + ebase.h \ + eerror.cpp \ + eerror.h \ + elock.cpp \ + elock.h \ + encoding.cpp \ + encoding.h \ + eptrlist.h \ + estring.cpp \ + estring.h \ + etpm.cpp \ + etpm.h \ + filepush.cpp \ + filepush.h \ + i18n.h \ + init.cpp \ + init.h \ + init_num.h \ + ioprio.cpp \ + ioprio.h \ + message.cpp \ + message.h \ + nconfig.cpp \ + nconfig.h \ + object.h \ + rawfile.cpp \ + rawfile.h \ + ringbuffer.h \ + smartptr.cpp \ + smartptr.h \ + thread.cpp \ + thread.h diff --git a/lib/components/Makefile.am b/lib/components/Makefile.am index 960e101c..cef5890e 100644 --- a/lib/components/Makefile.am +++ b/lib/components/Makefile.am @@ -1,8 +1,13 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_components.la -libenigma_components_la_SOURCES = scan.cpp file_eraser.cpp +libenigma_components_la_SOURCES = \ + file_eraser.cpp \ + file_eraser.h \ + scan.cpp \ + scan.h diff --git a/lib/driver/Makefile.am b/lib/driver/Makefile.am index 4b8fc086..74d24fab 100644 --- a/lib/driver/Makefile.am +++ b/lib/driver/Makefile.am @@ -1,9 +1,26 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_driver.la libenigma_driver_la_SOURCES = \ - rc.cpp rcinput.cpp rcconsole.cpp avswitch.cpp rfmod.cpp etimezone.cpp misc_options.cpp + avswitch.cpp \ + avswitch.h \ + etimezone.cpp \ + etimezone.h \ + input_fake.h \ + misc_options.cpp \ + misc_options.h \ + rc.cpp \ + rc.h \ + rcconsole.cpp \ + rcconsole.h \ + rcdbox.h \ + rcdreambox2.h \ + rcinput.cpp \ + rcinput.h \ + rfmod.cpp \ + rfmod.h diff --git a/lib/dvb/Makefile.am b/lib/dvb/Makefile.am index cef71405..91464982 100644 --- a/lib/dvb/Makefile.am +++ b/lib/dvb/Makefile.am @@ -3,12 +3,59 @@ SUBDIRS = lowlevel AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_dvb.la -libenigma_dvb_la_SOURCES = dvb.cpp demux.cpp frontend.cpp esection.cpp db.cpp \ - sec.cpp scan.cpp crc32.cpp pmt.cpp decoder.cpp eit.cpp rotor_calc.cpp \ - epgcache.cpp dvbtime.cpp metaparser.cpp volume.cpp tstools.cpp pvrparse.cpp \ - pesparse.cpp teletext.cpp radiotext.cpp subtitle.cpp - +libenigma_dvb_la_SOURCES = \ + crc32.cpp \ + crc32.h \ + db.cpp \ + db.h \ + decoder.cpp \ + decoder.h \ + demux.cpp \ + demux.h \ + dvb.cpp \ + dvb.h \ + dvbtime.cpp \ + dvbtime.h \ + eit.cpp \ + eit.h \ + epgcache.cpp \ + epgcache.h \ + esection.cpp \ + esection.h \ + frontend.cpp \ + frontend.h \ + frontendparms.h \ + idemux.h \ + idvb.h \ + isection.h \ + list.h \ + metaparser.cpp \ + metaparser.h \ + pesparse.cpp \ + pesparse.h \ + pmt.cpp \ + pmt.h \ + pvrparse.cpp \ + pvrparse.h \ + radiotext.cpp \ + radiotext.h \ + rotor_calc.cpp \ + rotor_calc.h \ + scan.cpp \ + scan.h \ + sec.cpp \ + sec.h \ + specs.h \ + subtitle.cpp \ + subtitle.h \ + teletext.cpp \ + teletext.h \ + tstools.cpp \ + tstools.h \ + volume.cpp \ + volume.h diff --git a/lib/dvb_ci/Makefile.am b/lib/dvb_ci/Makefile.am index 153f8c0b..af839e73 100644 --- a/lib/dvb_ci/Makefile.am +++ b/lib/dvb_ci/Makefile.am @@ -1,12 +1,25 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_dvb_ci.la -libenigma_dvb_ci_la_SOURCES = dvbci.cpp dvbci_session.cpp dvbci_resmgr.cpp \ - dvbci_appmgr.cpp dvbci_camgr.cpp \ - dvbci_datetimemgr.cpp dvbci_mmi.cpp \ - dvbci_ui.cpp - +libenigma_dvb_ci_la_SOURCES = \ + dvbci.cpp \ + dvbci.h \ + dvbci_appmgr.cpp \ + dvbci_appmgr.h \ + dvbci_camgr.cpp \ + dvbci_camgr.h \ + dvbci_datetimemgr.cpp \ + dvbci_datetimemgr.h \ + dvbci_mmi.cpp \ + dvbci_mmi.h \ + dvbci_resmgr.cpp \ + dvbci_resmgr.h \ + dvbci_session.cpp \ + dvbci_session.h \ + dvbci_ui.cpp \ + dvbci_ui.h diff --git a/lib/gdi/Makefile.am b/lib/gdi/Makefile.am index 192990b9..f1f69ef5 100644 --- a/lib/gdi/Makefile.am +++ b/lib/gdi/Makefile.am @@ -1,15 +1,49 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_gdi.la libenigma_gdi_la_SOURCES = \ - region.cpp grc.cpp epng.cpp erect.cpp fb.cpp font.cpp font_arabic.cpp gfbdc.cpp \ - glcddc.cpp gpixmap.cpp lcd.cpp gfont.cpp accel.cpp picload.cpp picexif.cpp \ - compositing.cpp bcm.cpp + accel.cpp \ + accel.h \ + bcm.cpp \ + compositing.cpp \ + compositing.h \ + epng.cpp \ + epng.h \ + epoint.h \ + erect.cpp \ + erect.h \ + esize.h \ + fb.cpp \ + fb.h \ + font.cpp \ + font.h \ + font_arabic.cpp \ + gfbdc.cpp \ + gfbdc.h \ + gfont.cpp \ + gfont.h \ + glcddc.cpp \ + glcddc.h \ + gpixmap.cpp \ + gpixmap.h \ + grc.cpp \ + grc.h \ + lcd.cpp \ + lcd.h \ + picexif.cpp \ + picexif.h \ + picload.cpp \ + picload.h \ + region.cpp \ + region.h if WITH_SDL -libenigma_gdi_la_SOURCES += sdl.cpp +libenigma_gdi_la_SOURCES += \ + sdl.cpp \ + sdl.h endif diff --git a/lib/gui/Makefile.am b/lib/gui/Makefile.am index 290eaab9..39c05d9a 100644 --- a/lib/gui/Makefile.am +++ b/lib/gui/Makefile.am @@ -1,12 +1,47 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_gui.la libenigma_gui_la_SOURCES = \ - ebutton.cpp elabel.cpp eslider.cpp ewidget.cpp ewidgetdesktop.cpp \ - ewindow.cpp ewindowstyle.cpp elistbox.cpp elistboxcontent.cpp \ - epixmap.cpp ewindowstyleskinned.cpp einput.cpp einputstring.cpp einputnumber.cpp \ - ewidgetanimation.cpp epositiongauge.cpp evideo.cpp esubtitle.cpp ecanvas.cpp + ebutton.cpp \ + ebutton.h \ + ecanvas.cpp \ + ecanvas.h \ + einput.cpp \ + einput.h \ + einputnumber.cpp \ + einputnumber.h \ + einputstring.cpp \ + einputstring.h \ + elabel.cpp \ + elabel.h \ + elistbox.cpp \ + elistbox.h \ + elistboxcontent.cpp \ + elistboxcontent.h \ + epixmap.cpp \ + epixmap.h \ + epositiongauge.cpp \ + epositiongauge.h \ + eslider.cpp \ + eslider.h \ + esubtitle.cpp \ + esubtitle.h \ + evideo.cpp \ + evideo.h \ + ewidget.cpp \ + ewidget.h \ + ewidgetanimation.cpp \ + ewidgetanimation.h \ + ewidgetdesktop.cpp \ + ewidgetdesktop.h \ + ewindow.cpp \ + ewindow.h \ + ewindowstyle.cpp \ + ewindowstyle.h \ + ewindowstyleskinned.cpp \ + ewindowstyleskinned.h diff --git a/lib/mmi/Makefile.am b/lib/mmi/Makefile.am index f72d1586..a082949d 100644 --- a/lib/mmi/Makefile.am +++ b/lib/mmi/Makefile.am @@ -1,8 +1,11 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_mmi.la -libenigma_mmi_la_SOURCES = mmi_ui.cpp +libenigma_mmi_la_SOURCES = \ + mmi_ui.cpp \ + mmi_ui.h diff --git a/lib/nav/Makefile.am b/lib/nav/Makefile.am index 93468699..c6d1c927 100644 --- a/lib/nav/Makefile.am +++ b/lib/nav/Makefile.am @@ -1,11 +1,13 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_nav.la libenigma_nav_la_SOURCES = \ - core.cpp pcore.cpp - - + core.cpp \ + core.h \ + pcore.cpp \ + pcore.h diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index 03dcedb9..3c213a17 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -1,18 +1,30 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h SUBDIRS = Components Tools Screens Plugins noinst_LTLIBRARIES = libenigma_python.la libenigma_python_la_SOURCES = \ - python.cpp enigma_python_wrap.cxx connections.cpp + connections.cpp \ + connections.h \ + python.cpp \ + python.h \ + swig.h -enigma_python_wrap.cxx: enigma_python.i - swig -I$(top_srcdir)/ -c++ -python -O -nortti -nothreads enigma_python.i - python enigma_py_patcher.py +nodist_libenigma_python_la_SOURCES = \ + enigma_python_wrap.cxx + +EXTRA_DIST = \ + enigma_py_patcher.py \ + enigma_python.i + +enigma_python_wrap.cxx: $(srcdir)/enigma_python.i + $(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -O -nortti -nothreads -o $@ $< + $(PYTHON) $(srcdir)/enigma_py_patcher.py enigma.py: enigma_python_wrap.cxx @@ -22,3 +34,4 @@ installdir = $(pkglibdir)/python install_PYTHON = \ enigma.py + diff --git a/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am b/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am index e79688b8..5bfc8afa 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am +++ b/lib/python/Plugins/Extensions/DVDPlayer/src/Makefile.am @@ -1,6 +1,7 @@ CPPFLAGS += \ -I$(top_srcdir) \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h OBJS = servicedvd.cpp diff --git a/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am b/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am index 914371e5..9fb72097 100644 --- a/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am +++ b/lib/python/Plugins/Extensions/SocketMMI/src/Makefile.am @@ -1,6 +1,7 @@ CPPFLAGS += \ -I$(top_srcdir) \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h OBJS = socket_mmi.cpp diff --git a/lib/service/Makefile.am b/lib/service/Makefile.am index c4dabebc..78d9b646 100644 --- a/lib/service/Makefile.am +++ b/lib/service/Makefile.am @@ -1,7 +1,8 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h noinst_LTLIBRARIES = libenigma_service.la diff --git a/m4/ax_pkg_swig.m4 b/m4/ax_pkg_swig.m4 new file mode 100644 index 00000000..81226fb3 --- /dev/null +++ b/m4/ax_pkg_swig.m4 @@ -0,0 +1,133 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) +# +# DESCRIPTION +# +# This macro searches for a SWIG installation on your system. If found, +# then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is +# found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. +# +# You can use the optional first argument to check if the version of the +# available SWIG is greater than or equal to the value of the argument. It +# should have the format: N[.N[.N]] (N is a number between 0 and 999. Only +# the first N is mandatory.) If the version argument is given (e.g. +# 1.3.17), AX_PKG_SWIG checks that the swig package is this version number +# or higher. +# +# As usual, action-if-found is executed if SWIG is found, otherwise +# action-if-not-found is executed. +# +# In configure.in, use as: +# +# AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) +# AX_SWIG_ENABLE_CXX +# AX_SWIG_MULTI_MODULE_SUPPORT +# AX_SWIG_PYTHON +# +# LICENSE +# +# Copyright (c) 2008 Sebastian Huber +# Copyright (c) 2008 Alan W. Irwin +# Copyright (c) 2008 Rafael Laboissiere +# Copyright (c) 2008 Andrew Collier +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 7 + +AC_DEFUN([AX_PKG_SWIG],[ + AC_PATH_PROG([SWIG],[swig]) + if test -z "$SWIG" ; then + m4_ifval([$3],[$3],[:]) + elif test -n "$1" ; then + AC_MSG_CHECKING([SWIG version]) + [swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`] + AC_MSG_RESULT([$swig_version]) + if test -n "$swig_version" ; then + # Calculate the required version number components + [required=$1] + [required_major=`echo $required | sed 's/[^0-9].*//'`] + if test -z "$required_major" ; then + [required_major=0] + fi + [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] + [required_minor=`echo $required | sed 's/[^0-9].*//'`] + if test -z "$required_minor" ; then + [required_minor=0] + fi + [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] + [required_patch=`echo $required | sed 's/[^0-9].*//'`] + if test -z "$required_patch" ; then + [required_patch=0] + fi + # Calculate the available version number components + [available=$swig_version] + [available_major=`echo $available | sed 's/[^0-9].*//'`] + if test -z "$available_major" ; then + [available_major=0] + fi + [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] + [available_minor=`echo $available | sed 's/[^0-9].*//'`] + if test -z "$available_minor" ; then + [available_minor=0] + fi + [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] + [available_patch=`echo $available | sed 's/[^0-9].*//'`] + if test -z "$available_patch" ; then + [available_patch=0] + fi + # Convert the version tuple into a single number for easier comparison. + # Using base 100 should be safe since SWIG internally uses BCD values + # to encode its version number. + required_swig_vernum=`expr $required_major \* 10000 \ + \+ $required_minor \* 100 \+ $required_patch` + available_swig_vernum=`expr $available_major \* 10000 \ + \+ $available_minor \* 100 \+ $available_patch` + + if test $available_swig_vernum -lt $required_swig_vernum; then + AC_MSG_WARN([SWIG version >= $1 is required. You have $swig_version.]) + SWIG='' + m4_ifval([$3],[$3],[]) + else + AC_MSG_CHECKING([for SWIG library]) + SWIG_LIB=`$SWIG -swiglib` + AC_MSG_RESULT([$SWIG_LIB]) + m4_ifval([$2],[$2],[]) + fi + else + AC_MSG_WARN([cannot determine SWIG version]) + SWIG='' + m4_ifval([$3],[$3],[]) + fi + fi + AC_SUBST([SWIG_LIB]) +]) diff --git a/m4/ax_swig_enable_cxx.m4 b/m4/ax_swig_enable_cxx.m4 new file mode 100644 index 00000000..348c15d4 --- /dev/null +++ b/m4/ax_swig_enable_cxx.m4 @@ -0,0 +1,53 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_swig_enable_cxx.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_SWIG_ENABLE_CXX +# +# DESCRIPTION +# +# Enable SWIG C++ support. This affects all invocations of $(SWIG). +# +# LICENSE +# +# Copyright (c) 2008 Sebastian Huber +# Copyright (c) 2008 Alan W. Irwin +# Copyright (c) 2008 Rafael Laboissiere +# Copyright (c) 2008 Andrew Collier +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 6 + +AU_ALIAS([SWIG_ENABLE_CXX], [AX_SWIG_ENABLE_CXX]) +AC_DEFUN([AX_SWIG_ENABLE_CXX],[ + AC_REQUIRE([AX_PKG_SWIG]) + AC_REQUIRE([AC_PROG_CXX]) + SWIG="$SWIG -c++" +]) diff --git a/m4/ax_swig_python.m4 b/m4/ax_swig_python.m4 new file mode 100644 index 00000000..8fd3df5a --- /dev/null +++ b/m4/ax_swig_python.m4 @@ -0,0 +1,64 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_swig_python.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_SWIG_PYTHON([use-shadow-classes = {no, yes}]) +# +# DESCRIPTION +# +# Checks for Python and provides the $(AX_SWIG_PYTHON_CPPFLAGS), and +# $(AX_SWIG_PYTHON_OPT) output variables. +# +# $(AX_SWIG_PYTHON_OPT) contains all necessary SWIG options to generate +# code for Python. Shadow classes are enabled unless the value of the +# optional first argument is exactly 'no'. If you need multi module +# support (provided by the AX_SWIG_MULTI_MODULE_SUPPORT macro) use +# $(AX_SWIG_PYTHON_LIBS) to link against the appropriate library. It +# contains the SWIG Python runtime library that is needed by the type +# check system for example. +# +# LICENSE +# +# Copyright (c) 2008 Sebastian Huber +# Copyright (c) 2008 Alan W. Irwin +# Copyright (c) 2008 Rafael Laboissiere +# Copyright (c) 2008 Andrew Collier +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 7 + +AU_ALIAS([SWIG_PYTHON], [AX_SWIG_PYTHON]) +AC_DEFUN([AX_SWIG_PYTHON],[ + AC_REQUIRE([AX_PKG_SWIG]) + AC_REQUIRE([AX_PYTHON_DEVEL]) + test "x$1" != "xno" || swig_shadow=" -noproxy" + AC_SUBST([AX_SWIG_PYTHON_OPT],[-python$swig_shadow]) + AC_SUBST([AX_SWIG_PYTHON_CPPFLAGS],[$PYTHON_CPPFLAGS]) +]) diff --git a/main/Makefile.am b/main/Makefile.am index 4eebe996..9f2b1182 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -1,7 +1,8 @@ AM_CPPFLAGS = \ -I$(top_srcdir) \ -I$(top_srcdir)/include \ - -include Python.h + -include Python.h \ + -include $(top_builddir)/enigma2_config.h bin_PROGRAMS = enigma2 @@ -44,7 +45,6 @@ version.h: entries enigma2_LDADD = \ $(top_builddir)/lib/libenigma.la \ @BASE_LIBS@ \ - @LIBUNGIF_LIBS@ \ @LIBXINE_LIBS@ \ @PTHREAD_LIBS@ \ @SDL_LIBS@ \ -- cgit v1.2.3 From 96b320d3d1b921cad7a94027b449dacd49470117 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Fri, 29 Oct 2010 00:05:46 +0200 Subject: build and link static libraries without libtool --- lib/Makefile.am | 17 ----------------- lib/actions/Makefile.am | 6 +++--- lib/base/Makefile.am | 4 ++-- lib/components/Makefile.am | 4 ++-- lib/driver/Makefile.am | 4 ++-- lib/dvb/Makefile.am | 4 ++-- lib/dvb_ci/Makefile.am | 4 ++-- lib/gdi/Makefile.am | 6 +++--- lib/gui/Makefile.am | 4 ++-- lib/mmi/Makefile.am | 4 ++-- lib/nav/Makefile.am | 4 ++-- lib/python/Makefile.am | 6 +++--- lib/service/Makefile.am | 6 +++--- main/Makefile.am | 23 ++++++++++++++++++++++- 14 files changed, 50 insertions(+), 46 deletions(-) (limited to 'lib/python/Makefile.am') diff --git a/lib/Makefile.am b/lib/Makefile.am index f5617486..bd89aeef 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,18 +1 @@ SUBDIRS = actions base components dvb dvb_ci gdi service driver nav gui python mmi - -noinst_LTLIBRARIES = libenigma.la - -libenigma_la_SOURCES = -libenigma_la_LIBADD = \ - $(top_builddir)/lib/actions/libenigma_actions.la \ - $(top_builddir)/lib/base/libenigma_base.la \ - $(top_builddir)/lib/components/libenigma_components.la \ - $(top_builddir)/lib/driver/libenigma_driver.la \ - $(top_builddir)/lib/mmi/libenigma_mmi.la \ - $(top_builddir)/lib/dvb/libenigma_dvb.la \ - $(top_builddir)/lib/dvb_ci/libenigma_dvb_ci.la \ - $(top_builddir)/lib/gdi/libenigma_gdi.la \ - $(top_builddir)/lib/gui/libenigma_gui.la \ - $(top_builddir)/lib/python/libenigma_python.la \ - $(top_builddir)/lib/nav/libenigma_nav.la \ - $(top_builddir)/lib/service/libenigma_service.la diff --git a/lib/actions/Makefile.am b/lib/actions/Makefile.am index 83f57d3d..75357868 100644 --- a/lib/actions/Makefile.am +++ b/lib/actions/Makefile.am @@ -7,13 +7,13 @@ AM_CPPFLAGS = \ EXTRA_DIST = parseactions.py -noinst_LTLIBRARIES = libenigma_actions.la +noinst_LIBRARIES = libenigma_actions.a -libenigma_actions_la_SOURCES = \ +libenigma_actions_a_SOURCES = \ action.cpp \ action.h -nodist_libenigma_actions_la_SOURCES = \ +nodist_libenigma_actions_a_SOURCES = \ actionids.h BUILT_SOURCES = actionids.h diff --git a/lib/base/Makefile.am b/lib/base/Makefile.am index 230a37ae..652ef9cd 100644 --- a/lib/base/Makefile.am +++ b/lib/base/Makefile.am @@ -4,9 +4,9 @@ AM_CPPFLAGS = \ -include Python.h \ -include $(top_builddir)/enigma2_config.h -noinst_LTLIBRARIES = libenigma_base.la +noinst_LIBRARIES = libenigma_base.a -libenigma_base_la_SOURCES = \ +libenigma_base_a_SOURCES = \ buffer.cpp \ buffer.h \ connection.cpp \ diff --git a/lib/components/Makefile.am b/lib/components/Makefile.am index cef5890e..e873e525 100644 --- a/lib/components/Makefile.am +++ b/lib/components/Makefile.am @@ -4,9 +4,9 @@ AM_CPPFLAGS = \ -include Python.h \ -include $(top_builddir)/enigma2_config.h -noinst_LTLIBRARIES = libenigma_components.la +noinst_LIBRARIES = libenigma_components.a -libenigma_components_la_SOURCES = \ +libenigma_components_a_SOURCES = \ file_eraser.cpp \ file_eraser.h \ scan.cpp \ diff --git a/lib/driver/Makefile.am b/lib/driver/Makefile.am index 74d24fab..63a205a8 100644 --- a/lib/driver/Makefile.am +++ b/lib/driver/Makefile.am @@ -4,9 +4,9 @@ AM_CPPFLAGS = \ -include Python.h \ -include $(top_builddir)/enigma2_config.h -noinst_LTLIBRARIES = libenigma_driver.la +noinst_LIBRARIES = libenigma_driver.a -libenigma_driver_la_SOURCES = \ +libenigma_driver_a_SOURCES = \ avswitch.cpp \ avswitch.h \ etimezone.cpp \ diff --git a/lib/dvb/Makefile.am b/lib/dvb/Makefile.am index 91464982..74b43d0a 100644 --- a/lib/dvb/Makefile.am +++ b/lib/dvb/Makefile.am @@ -6,9 +6,9 @@ AM_CPPFLAGS = \ -include Python.h \ -include $(top_builddir)/enigma2_config.h -noinst_LTLIBRARIES = libenigma_dvb.la +noinst_LIBRARIES = libenigma_dvb.a -libenigma_dvb_la_SOURCES = \ +libenigma_dvb_a_SOURCES = \ crc32.cpp \ crc32.h \ db.cpp \ diff --git a/lib/dvb_ci/Makefile.am b/lib/dvb_ci/Makefile.am index af839e73..c53c4da5 100644 --- a/lib/dvb_ci/Makefile.am +++ b/lib/dvb_ci/Makefile.am @@ -4,9 +4,9 @@ AM_CPPFLAGS = \ -include Python.h \ -include $(top_builddir)/enigma2_config.h -noinst_LTLIBRARIES = libenigma_dvb_ci.la +noinst_LIBRARIES = libenigma_dvb_ci.a -libenigma_dvb_ci_la_SOURCES = \ +libenigma_dvb_ci_a_SOURCES = \ dvbci.cpp \ dvbci.h \ dvbci_appmgr.cpp \ diff --git a/lib/gdi/Makefile.am b/lib/gdi/Makefile.am index 5f2aee9b..a47855ff 100644 --- a/lib/gdi/Makefile.am +++ b/lib/gdi/Makefile.am @@ -7,9 +7,9 @@ AM_CPPFLAGS = \ AM_CXXFLAGS = \ $(LIBSDL_CFLAGS) -noinst_LTLIBRARIES = libenigma_gdi.la +noinst_LIBRARIES = libenigma_gdi.a -libenigma_gdi_la_SOURCES = \ +libenigma_gdi_a_SOURCES = \ accel.cpp \ accel.h \ bcm.cpp \ @@ -46,7 +46,7 @@ libenigma_gdi_la_SOURCES = \ region.h if HAVE_LIBSDL -libenigma_gdi_la_SOURCES += \ +libenigma_gdi_a_SOURCES += \ sdl.cpp \ sdl.h endif diff --git a/lib/gui/Makefile.am b/lib/gui/Makefile.am index 39c05d9a..30b00bfb 100644 --- a/lib/gui/Makefile.am +++ b/lib/gui/Makefile.am @@ -4,9 +4,9 @@ AM_CPPFLAGS = \ -include Python.h \ -include $(top_builddir)/enigma2_config.h -noinst_LTLIBRARIES = libenigma_gui.la +noinst_LIBRARIES = libenigma_gui.a -libenigma_gui_la_SOURCES = \ +libenigma_gui_a_SOURCES = \ ebutton.cpp \ ebutton.h \ ecanvas.cpp \ diff --git a/lib/mmi/Makefile.am b/lib/mmi/Makefile.am index a082949d..9c821c97 100644 --- a/lib/mmi/Makefile.am +++ b/lib/mmi/Makefile.am @@ -4,8 +4,8 @@ AM_CPPFLAGS = \ -include Python.h \ -include $(top_builddir)/enigma2_config.h -noinst_LTLIBRARIES = libenigma_mmi.la +noinst_LIBRARIES = libenigma_mmi.a -libenigma_mmi_la_SOURCES = \ +libenigma_mmi_a_SOURCES = \ mmi_ui.cpp \ mmi_ui.h diff --git a/lib/nav/Makefile.am b/lib/nav/Makefile.am index c6d1c927..fc3dadc7 100644 --- a/lib/nav/Makefile.am +++ b/lib/nav/Makefile.am @@ -4,9 +4,9 @@ AM_CPPFLAGS = \ -include Python.h \ -include $(top_builddir)/enigma2_config.h -noinst_LTLIBRARIES = libenigma_nav.la +noinst_LIBRARIES = libenigma_nav.a -libenigma_nav_la_SOURCES = \ +libenigma_nav_a_SOURCES = \ core.cpp \ core.h \ pcore.cpp \ diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index 3c213a17..5cbda780 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -6,16 +6,16 @@ AM_CPPFLAGS = \ SUBDIRS = Components Tools Screens Plugins -noinst_LTLIBRARIES = libenigma_python.la +noinst_LIBRARIES = libenigma_python.a -libenigma_python_la_SOURCES = \ +libenigma_python_a_SOURCES = \ connections.cpp \ connections.h \ python.cpp \ python.h \ swig.h -nodist_libenigma_python_la_SOURCES = \ +nodist_libenigma_python_a_SOURCES = \ enigma_python_wrap.cxx EXTRA_DIST = \ diff --git a/lib/service/Makefile.am b/lib/service/Makefile.am index 18c012a5..a19b8b1b 100644 --- a/lib/service/Makefile.am +++ b/lib/service/Makefile.am @@ -7,9 +7,9 @@ AM_CPPFLAGS = \ AM_CXXFLAGS = \ $(LIBXINE_CFLAGS) -noinst_LTLIBRARIES = libenigma_service.la +noinst_LIBRARIES = libenigma_service.a -libenigma_service_la_SOURCES = \ +libenigma_service_a_SOURCES = \ event.cpp \ event.h \ iservice.h \ @@ -27,7 +27,7 @@ libenigma_service_la_SOURCES = \ servicemp3.h if HAVE_LIBXINE -libenigma_service_la_SOURCES += \ +libenigma_service_a_SOURCES += \ servicexine.cpp \ servicexine.h endif diff --git a/main/Makefile.am b/main/Makefile.am index 33bebdf0..c96f9066 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -22,8 +22,21 @@ EXTRA_DIST = \ enigma-playlist.cpp \ enigma-scan.cpp +enigma2_LDADD_WHOLE = \ + $(top_builddir)/lib/actions/libenigma_actions.a \ + $(top_builddir)/lib/base/libenigma_base.a \ + $(top_builddir)/lib/components/libenigma_components.a \ + $(top_builddir)/lib/driver/libenigma_driver.a \ + $(top_builddir)/lib/mmi/libenigma_mmi.a \ + $(top_builddir)/lib/dvb/libenigma_dvb.a \ + $(top_builddir)/lib/dvb_ci/libenigma_dvb_ci.a \ + $(top_builddir)/lib/gdi/libenigma_gdi.a \ + $(top_builddir)/lib/gui/libenigma_gui.a \ + $(top_builddir)/lib/python/libenigma_python.a \ + $(top_builddir)/lib/nav/libenigma_nav.a \ + $(top_builddir)/lib/service/libenigma_service.a + enigma2_LDADD = \ - $(top_builddir)/lib/libenigma.la \ @BASE_LIBS@ \ @LIBGIF_LIBS@ \ @LIBJPEG_LIBS@ \ @@ -33,6 +46,10 @@ enigma2_LDADD = \ @PTHREAD_LIBS@ \ @PYTHON_LDFLAGS@ +enigma2_LDFLAGS = -Wl,--export-dynamic + +BUILT_SOURCES = version.h + GIT_DIR = $(top_srcdir)/.git version.h: @@ -52,3 +69,7 @@ version.h: dist-hook: echo "#define ENIGMA2_LAST_CHANGE_DATE \"`date --rfc-3339=date`\"" > version.h; echo "#define ENIGMA2_BRANCH \"$(PACKAGE_VERSION)\"" >> version.h; + +enigma2$(EXEEXT): $(enigma2_OBJECTS) $(enigma2_DEPENDENCIES) $(enigma2_LDADD_WHOLE) + $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(enigma2_LDFLAGS) $(enigma2_OBJECTS) \ + -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS) -- cgit v1.2.3 From 84d23f2ac49ec7ffb7315859c801d6393090b630 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Fri, 29 Oct 2010 02:08:32 +0200 Subject: install header files --- include/Makefile.am | 2 +- lib/actions/Makefile.am | 7 +++++-- lib/base/Makefile.am | 41 +++++++++++++++++++++------------------- lib/components/Makefile.am | 5 ++++- lib/driver/Makefile.am | 15 +++++++++------ lib/dvb/Makefile.am | 45 +++++++++++++++++++++++--------------------- lib/dvb/lowlevel/Makefile.am | 3 ++- lib/dvb_ci/Makefile.am | 17 ++++++++++------- lib/gdi/Makefile.am | 36 +++++++++++++++++++---------------- lib/gui/Makefile.am | 39 ++++++++++++++++++++------------------ lib/mmi/Makefile.am | 5 ++++- lib/nav/Makefile.am | 5 ++++- lib/python/Makefile.am | 9 +++++++-- lib/service/Makefile.am | 18 +++++++++++------- 14 files changed, 144 insertions(+), 103 deletions(-) (limited to 'lib/python/Makefile.am') diff --git a/include/Makefile.am b/include/Makefile.am index d0c682f6..ada16cae 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,3 +1,3 @@ -EXTRA_DIST = \ +pkginclude_HEADERS = \ connection.h \ libsig_comp.h diff --git a/lib/actions/Makefile.am b/lib/actions/Makefile.am index 75357868..7aa466ba 100644 --- a/lib/actions/Makefile.am +++ b/lib/actions/Makefile.am @@ -10,10 +10,13 @@ EXTRA_DIST = parseactions.py noinst_LIBRARIES = libenigma_actions.a libenigma_actions_a_SOURCES = \ - action.cpp \ + action.cpp + +actionsincludedir = $(pkgincludedir)/lib/actions +actionsinclude_HEADERS = \ action.h -nodist_libenigma_actions_a_SOURCES = \ +nodist_actionsinclude_HEADERS = \ actionids.h BUILT_SOURCES = actionids.h diff --git a/lib/base/Makefile.am b/lib/base/Makefile.am index 652ef9cd..becb032e 100644 --- a/lib/base/Makefile.am +++ b/lib/base/Makefile.am @@ -8,45 +8,48 @@ noinst_LIBRARIES = libenigma_base.a libenigma_base_a_SOURCES = \ buffer.cpp \ - buffer.h \ connection.cpp \ console.cpp \ - console.h \ ebase.cpp \ - ebase.h \ eenv.cpp \ - eenv.h \ eerror.cpp \ - eerror.h \ elock.cpp \ - elock.h \ encoding.cpp \ + estring.cpp \ + etpm.cpp \ + filepush.cpp \ + init.cpp \ + ioprio.cpp \ + message.cpp \ + nconfig.cpp \ + rawfile.cpp \ + smartptr.cpp \ + thread.cpp + +EXTRA_DIST = \ + eenv.cpp.in + +baseincludedir = $(pkgincludedir)/lib/base +baseinclude_HEADERS = \ + buffer.h \ + console.h \ + ebase.h \ + eenv.h \ + eerror.h \ + elock.h \ encoding.h \ eptrlist.h \ - estring.cpp \ estring.h \ - etpm.cpp \ etpm.h \ - filepush.cpp \ filepush.h \ i18n.h \ - init.cpp \ init.h \ init_num.h \ - ioprio.cpp \ ioprio.h \ - message.cpp \ message.h \ - nconfig.cpp \ nconfig.h \ object.h \ - rawfile.cpp \ rawfile.h \ ringbuffer.h \ - smartptr.cpp \ smartptr.h \ - thread.cpp \ thread.h - -EXTRA_DIST = \ - eenv.cpp.in diff --git a/lib/components/Makefile.am b/lib/components/Makefile.am index e873e525..364c6945 100644 --- a/lib/components/Makefile.am +++ b/lib/components/Makefile.am @@ -8,6 +8,9 @@ noinst_LIBRARIES = libenigma_components.a libenigma_components_a_SOURCES = \ file_eraser.cpp \ + scan.cpp + +componentsincludedir = $(pkgincludedir)/lib/components +componentsinclude_HEADERS = \ file_eraser.h \ - scan.cpp \ scan.h diff --git a/lib/driver/Makefile.am b/lib/driver/Makefile.am index 63a205a8..88d9bec5 100644 --- a/lib/driver/Makefile.am +++ b/lib/driver/Makefile.am @@ -8,19 +8,22 @@ noinst_LIBRARIES = libenigma_driver.a libenigma_driver_a_SOURCES = \ avswitch.cpp \ - avswitch.h \ etimezone.cpp \ + misc_options.cpp \ + rc.cpp \ + rcconsole.cpp \ + rcinput.cpp \ + rfmod.cpp + +driverincludedir = $(pkgincludedir)/lib/driver +driverinclude_HEADERS = \ + avswitch.h \ etimezone.h \ input_fake.h \ - misc_options.cpp \ misc_options.h \ - rc.cpp \ rc.h \ - rcconsole.cpp \ rcconsole.h \ rcdbox.h \ rcdreambox2.h \ - rcinput.cpp \ rcinput.h \ - rfmod.cpp \ rfmod.h diff --git a/lib/dvb/Makefile.am b/lib/dvb/Makefile.am index 74b43d0a..9b337556 100644 --- a/lib/dvb/Makefile.am +++ b/lib/dvb/Makefile.am @@ -10,52 +10,55 @@ noinst_LIBRARIES = libenigma_dvb.a libenigma_dvb_a_SOURCES = \ crc32.cpp \ - crc32.h \ db.cpp \ - db.h \ decoder.cpp \ - decoder.h \ demux.cpp \ - demux.h \ dvb.cpp \ - dvb.h \ dvbtime.cpp \ - dvbtime.h \ eit.cpp \ - eit.h \ epgcache.cpp \ - epgcache.h \ esection.cpp \ - esection.h \ frontend.cpp \ + metaparser.cpp \ + pesparse.cpp \ + pmt.cpp \ + pvrparse.cpp \ + radiotext.cpp \ + rotor_calc.cpp \ + scan.cpp \ + sec.cpp \ + subtitle.cpp \ + teletext.cpp \ + tstools.cpp \ + volume.cpp + +dvbincludedir = $(pkgincludedir)/lib/dvb +dvbinclude_HEADERS = \ + crc32.h \ + db.h \ + decoder.h \ + demux.h \ + dvb.h \ + dvbtime.h \ + eit.h \ + epgcache.h \ + esection.h \ frontend.h \ frontendparms.h \ idemux.h \ idvb.h \ isection.h \ list.h \ - metaparser.cpp \ metaparser.h \ - pesparse.cpp \ pesparse.h \ - pmt.cpp \ pmt.h \ - pvrparse.cpp \ pvrparse.h \ - radiotext.cpp \ radiotext.h \ - rotor_calc.cpp \ rotor_calc.h \ - scan.cpp \ scan.h \ - sec.cpp \ sec.h \ specs.h \ - subtitle.cpp \ subtitle.h \ - teletext.cpp \ teletext.h \ - tstools.cpp \ tstools.h \ - volume.cpp \ volume.h diff --git a/lib/dvb/lowlevel/Makefile.am b/lib/dvb/lowlevel/Makefile.am index 98e89f90..1108097e 100644 --- a/lib/dvb/lowlevel/Makefile.am +++ b/lib/dvb/lowlevel/Makefile.am @@ -1,3 +1,4 @@ -EXTRA_DIST = \ +lowlevelincludedir = $(pkgincludedir)/lib/dvb/lowlevel +lowlevelinclude_HEADERS = \ eit.h \ mhw.h diff --git a/lib/dvb_ci/Makefile.am b/lib/dvb_ci/Makefile.am index c53c4da5..9ef72492 100644 --- a/lib/dvb_ci/Makefile.am +++ b/lib/dvb_ci/Makefile.am @@ -8,18 +8,21 @@ noinst_LIBRARIES = libenigma_dvb_ci.a libenigma_dvb_ci_a_SOURCES = \ dvbci.cpp \ - dvbci.h \ dvbci_appmgr.cpp \ - dvbci_appmgr.h \ dvbci_camgr.cpp \ - dvbci_camgr.h \ dvbci_datetimemgr.cpp \ - dvbci_datetimemgr.h \ dvbci_mmi.cpp \ - dvbci_mmi.h \ dvbci_resmgr.cpp \ - dvbci_resmgr.h \ dvbci_session.cpp \ + dvbci_ui.cpp + +dvbciincludedir = $(pkgincludedir)/lib/dvb_ci +dvbciinclude_HEADERS = \ + dvbci.h \ + dvbci_appmgr.h \ + dvbci_camgr.h \ + dvbci_datetimemgr.h \ + dvbci_mmi.h \ + dvbci_resmgr.h \ dvbci_session.h \ - dvbci_ui.cpp \ dvbci_ui.h diff --git a/lib/gdi/Makefile.am b/lib/gdi/Makefile.am index a47855ff..febbab22 100644 --- a/lib/gdi/Makefile.am +++ b/lib/gdi/Makefile.am @@ -11,42 +11,46 @@ noinst_LIBRARIES = libenigma_gdi.a libenigma_gdi_a_SOURCES = \ accel.cpp \ - accel.h \ bcm.cpp \ compositing.cpp \ - compositing.h \ epng.cpp \ + erect.cpp \ + fb.cpp \ + font.cpp \ + font_arabic.cpp \ + gfbdc.cpp \ + gfont.cpp \ + glcddc.cpp \ + gpixmap.cpp \ + grc.cpp \ + lcd.cpp \ + picexif.cpp \ + picload.cpp \ + region.cpp + +gdiincludedir = $(pkgincludedir)/lib/gdi +gdiinclude_HEADERS = \ + accel.h \ + compositing.h \ epng.h \ epoint.h \ - erect.cpp \ erect.h \ esize.h \ - fb.cpp \ fb.h \ - font.cpp \ font.h \ - font_arabic.cpp \ - gfbdc.cpp \ gfbdc.h \ - gfont.cpp \ gfont.h \ - glcddc.cpp \ glcddc.h \ - gpixmap.cpp \ gpixmap.h \ - grc.cpp \ grc.h \ - lcd.cpp \ lcd.h \ - picexif.cpp \ picexif.h \ - picload.cpp \ picload.h \ - region.cpp \ region.h if HAVE_LIBSDL libenigma_gdi_a_SOURCES += \ - sdl.cpp \ + sdl.cpp +gdiinclude_HEADERS += \ sdl.h endif diff --git a/lib/gui/Makefile.am b/lib/gui/Makefile.am index 30b00bfb..9d31bf73 100644 --- a/lib/gui/Makefile.am +++ b/lib/gui/Makefile.am @@ -8,40 +8,43 @@ noinst_LIBRARIES = libenigma_gui.a libenigma_gui_a_SOURCES = \ ebutton.cpp \ - ebutton.h \ ecanvas.cpp \ - ecanvas.h \ einput.cpp \ - einput.h \ einputnumber.cpp \ - einputnumber.h \ einputstring.cpp \ - einputstring.h \ elabel.cpp \ - elabel.h \ elistbox.cpp \ - elistbox.h \ elistboxcontent.cpp \ - elistboxcontent.h \ epixmap.cpp \ - epixmap.h \ epositiongauge.cpp \ - epositiongauge.h \ eslider.cpp \ - eslider.h \ esubtitle.cpp \ - esubtitle.h \ evideo.cpp \ - evideo.h \ ewidget.cpp \ - ewidget.h \ ewidgetanimation.cpp \ - ewidgetanimation.h \ ewidgetdesktop.cpp \ - ewidgetdesktop.h \ ewindow.cpp \ - ewindow.h \ ewindowstyle.cpp \ + ewindowstyleskinned.cpp + +guiincludedir = $(pkgincludedir)/lib/gui +guiinclude_HEADERS = \ + ebutton.h \ + ecanvas.h \ + einput.h \ + einputnumber.h \ + einputstring.h \ + elabel.h \ + elistbox.h \ + elistboxcontent.h \ + epixmap.h \ + epositiongauge.h \ + eslider.h \ + esubtitle.h \ + evideo.h \ + ewidget.h \ + ewidgetanimation.h \ + ewidgetdesktop.h \ + ewindow.h \ ewindowstyle.h \ - ewindowstyleskinned.cpp \ ewindowstyleskinned.h diff --git a/lib/mmi/Makefile.am b/lib/mmi/Makefile.am index 9c821c97..392c52c2 100644 --- a/lib/mmi/Makefile.am +++ b/lib/mmi/Makefile.am @@ -7,5 +7,8 @@ AM_CPPFLAGS = \ noinst_LIBRARIES = libenigma_mmi.a libenigma_mmi_a_SOURCES = \ - mmi_ui.cpp \ + mmi_ui.cpp + +mmiincludedir = $(pkgincludedir)/lib/mmi +mmiinclude_HEADERS = \ mmi_ui.h diff --git a/lib/nav/Makefile.am b/lib/nav/Makefile.am index fc3dadc7..3d57d6ac 100644 --- a/lib/nav/Makefile.am +++ b/lib/nav/Makefile.am @@ -8,6 +8,9 @@ noinst_LIBRARIES = libenigma_nav.a libenigma_nav_a_SOURCES = \ core.cpp \ + pcore.cpp + +navincludedir = $(pkgincludedir)/lib/nav +navinclude_HEADERS = \ core.h \ - pcore.cpp \ pcore.h diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index 5cbda780..c432b823 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -10,16 +10,21 @@ noinst_LIBRARIES = libenigma_python.a libenigma_python_a_SOURCES = \ connections.cpp \ + python.cpp + +pythonincludedir = $(pkgincludedir)/lib/python +pythoninclude_HEADERS = \ connections.h \ - python.cpp \ python.h \ swig.h nodist_libenigma_python_a_SOURCES = \ enigma_python_wrap.cxx +noinst_PYTHON = \ + enigma_py_patcher.py + EXTRA_DIST = \ - enigma_py_patcher.py \ enigma_python.i enigma_python_wrap.cxx: $(srcdir)/enigma_python.i diff --git a/lib/service/Makefile.am b/lib/service/Makefile.am index a19b8b1b..edafd1a2 100644 --- a/lib/service/Makefile.am +++ b/lib/service/Makefile.am @@ -11,23 +11,27 @@ noinst_LIBRARIES = libenigma_service.a libenigma_service_a_SOURCES = \ event.cpp \ + listboxservice.cpp \ + service.cpp \ + servicedvb.cpp \ + servicedvbrecord.cpp \ + servicefs.cpp \ + servicemp3.cpp + +serviceincludedir = $(pkgincludedir)/lib/service +serviceinclude_HEADERS = \ event.h \ iservice.h \ - listboxservice.cpp \ listboxservice.h \ - service.cpp \ service.h \ - servicedvb.cpp \ servicedvb.h \ - servicedvbrecord.cpp \ servicedvbrecord.h \ - servicefs.cpp \ servicefs.h \ - servicemp3.cpp \ servicemp3.h if HAVE_LIBXINE libenigma_service_a_SOURCES += \ - servicexine.cpp \ + servicexine.cpp +serviceinclude_HEADERS += \ servicexine.h endif -- cgit v1.2.3 From 6865d5bb30ac60fa75e850aecff992d409696bb6 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 4 Nov 2010 17:32:26 +0100 Subject: use AM_V_* variables to improve silent build mode --- Makefile.am | 2 +- lib/actions/Makefile.am | 4 ++-- lib/python/Makefile.am | 4 ++-- main/Makefile.am | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/python/Makefile.am') diff --git a/Makefile.am b/Makefile.am index 6935fa6d..ab2d1639 100755 --- a/Makefile.am +++ b/Makefile.am @@ -15,4 +15,4 @@ CLEANFILES = index-enigma2.xml EXTRA_DIST = lamedb index-enigma2.xml: $(top_srcdir)/tools/genmetaindex.py $(top_srcdir)/lib/python/Plugins/*/*/meta/plugin_*.xml - $(PYTHON) $^ > $@ + $(AM_V_GEN)$(PYTHON) $^ > $@ diff --git a/lib/actions/Makefile.am b/lib/actions/Makefile.am index 7aa466ba..eb8327d7 100644 --- a/lib/actions/Makefile.am +++ b/lib/actions/Makefile.am @@ -23,5 +23,5 @@ BUILT_SOURCES = actionids.h CLEANFILES = actionids.h actionids.h: $(srcdir)/parseactions.py $(top_srcdir)/lib/gui/*.h - $(PYTHON) $(srcdir)/parseactions.py include $(top_srcdir)/lib/gui/*.h > $@ - $(PYTHON) $(srcdir)/parseactions.py parse $(top_srcdir)/lib/gui/*.h >> $@ + $(AM_V_GEN)$(PYTHON) $(srcdir)/parseactions.py include $(top_srcdir)/lib/gui/*.h > $@ + $(AM_V_at)$(PYTHON) $(srcdir)/parseactions.py parse $(top_srcdir)/lib/gui/*.h >> $@ diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index c432b823..ebd77e2d 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -28,8 +28,8 @@ EXTRA_DIST = \ enigma_python.i enigma_python_wrap.cxx: $(srcdir)/enigma_python.i - $(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -O -nortti -nothreads -o $@ $< - $(PYTHON) $(srcdir)/enigma_py_patcher.py + $(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -O -nortti -nothreads -o $@ $< + $(AM_V_at)$(PYTHON) $(srcdir)/enigma_py_patcher.py enigma.py: enigma_python_wrap.cxx diff --git a/main/Makefile.am b/main/Makefile.am index 782138e8..06e6e920 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -77,5 +77,5 @@ version-intermediate.h: endif enigma2$(EXEEXT): $(enigma2_OBJECTS) $(enigma2_DEPENDENCIES) $(enigma2_LDADD_WHOLE) - $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(enigma2_LDFLAGS) $(enigma2_OBJECTS) \ + $(AM_V_CXXLD)$(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(enigma2_LDFLAGS) $(enigma2_OBJECTS) \ -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS) -- cgit v1.2.3 From ef51b06206827b3a28cfed4a95aa38adc3aa4ce5 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Mon, 8 Nov 2010 15:00:11 +0100 Subject: swig: use auto-generated dependencies to refresh generated files when needed --- lib/python/Makefile.am | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'lib/python/Makefile.am') diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index ebd77e2d..cfadc69b 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -19,7 +19,7 @@ pythoninclude_HEADERS = \ swig.h nodist_libenigma_python_a_SOURCES = \ - enigma_python_wrap.cxx + enigma_python.cpp noinst_PYTHON = \ enigma_py_patcher.py @@ -27,13 +27,16 @@ noinst_PYTHON = \ EXTRA_DIST = \ enigma_python.i -enigma_python_wrap.cxx: $(srcdir)/enigma_python.i - $(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -O -nortti -nothreads -o $@ $< +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enigma_python.Pcpp@am__quote@ + +.i.cpp: + $(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -MT $@ -MD -MF $(DEPDIR)/$*.Tpo -I$(top_srcdir) -O -nortti -nothreads -o $@ $< + $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Pcpp $(AM_V_at)$(PYTHON) $(srcdir)/enigma_py_patcher.py -enigma.py: enigma_python_wrap.cxx +enigma.py: enigma_python.cpp -CLEANFILES = enigma.py enigma_python_wrap.cxx +CLEANFILES = enigma.py enigma_python.cpp installdir = $(pkglibdir)/python -- cgit v1.2.3 From 13adfe12a68b2c8ef6bea4e604b5870b3c661015 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Tue, 16 Nov 2010 20:34:43 +0100 Subject: $(am__mv) requires automake 1.11 or later, so use plain 'mv -f' instead --- lib/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/python/Makefile.am') diff --git a/lib/python/Makefile.am b/lib/python/Makefile.am index cfadc69b..666ba67d 100644 --- a/lib/python/Makefile.am +++ b/lib/python/Makefile.am @@ -31,7 +31,7 @@ EXTRA_DIST = \ .i.cpp: $(AM_V_GEN)$(SWIG) $(AX_SWIG_PYTHON_OPT) -MT $@ -MD -MF $(DEPDIR)/$*.Tpo -I$(top_srcdir) -O -nortti -nothreads -o $@ $< - $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Pcpp + $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Pcpp $(AM_V_at)$(PYTHON) $(srcdir)/enigma_py_patcher.py enigma.py: enigma_python.cpp -- cgit v1.2.3