--- trunk.orig/configure.ac 2008-02-15 13:06:30.000000000 +0100 +++ enigma-1.10/configure.ac 2008-02-22 21:15:40.000000000 +0100 @@ -65,6 +65,31 @@ CPPFLAGS="$CPPFLAGS -DMACOSX" fi +dnl ---------- maemo ---------- +if test "x$LINUX" = xyes; then + AC_MSG_CHECKING(for Maemo) + # the following line is probably not what we want, but it's working + if ! pkg-config --exists maemo-version-dev; then + MAEMO=yes + AC_MSG_RESULT(yes) + PKG_CHECK_MODULES(OSSO, [libosso >= 0.9.19], + AC_DEFINE(HAVE_LIBOSSO, [], [Whether libosso is present on the system]), + [AC_MSG_NOTICE([libosso not present.])]) + + AC_SUBST(OSSO_LIBS) + AC_SUBST(OSSO_CFLAGS) + CFLAGS="$CFLAGS -DMAEMO -DTOUCHSCREEN $OSSO_CFLAGS" + CXXFLAGS="$CXXFLAGS -DMAEMO -DTOUCHSCREEN $OSSO_CFLAGS" + LIBS="$LIBS $OSSO_LIBS" + else + AC_MSG_RESULT(no) + fi + # the following is currently not used + AC_SUBST(MAEMO) +fi + +AM_CONDITIONAL(MAEMO, test x$MAEMO = xyes) + dnl ---------- Texi2html ---------- AC_PATH_PROG(TEXI2HTML, texi2html, "") --- trunk.orig/Makefile.am 2008-02-15 13:06:30.000000000 +0100 +++ enigma-1.10/Makefile.am 2008-02-22 13:32:16.000000000 +0100 @@ -3,12 +3,18 @@ # tools -> lib-src/lua # src -> tools, lib-src # -SUBDIRS = m4 lib-src tools intl src data doc po etc +SUBDIRS = m4 lib-src tools intl src data po etc EXTRA_DIST = enigma CHANGES ACKNOWLEDGEMENTS docdir = @datadir@/doc/enigma doc_DATA = README CHANGES COPYING ACKNOWLEDGEMENTS +if MAEMO +doc_DATA += install_memcard.txt +else +SUBDIRS += doc +endif + ACLOCAL_AMFLAGS = -I m4 tolua: --- trunk.orig/src/main.cc 2008-02-15 13:04:14.000000000 +0100 +++ enigma-1.10/src/main.cc 2008-02-22 13:29:47.000000000 +0100 @@ -167,7 +167,11 @@ nosound = nomusic = show_help = show_version = do_log = do_assert = force_window = false; dumpinfo = makepreview = show_fps = false; gamename = ""; +#ifndef MAEMO datapath = ""; +#else + datapath = "/media/mmc2/enigma"; // default alternate datapath for maemo on memory card +#endif preffilename = PREFFILENAME; def (&nosound, "nosound"); --- trunk.orig/etc/Makefile.am 2008-02-15 13:06:25.000000000 +0100 +++ enigma-1.10/etc/Makefile.am 2008-02-22 13:35:48.000000000 +0100 @@ -1,4 +1,20 @@ # if !MINGW32 +if MAEMO +# install maemo compliant icons +scalabledir = $(prefix)/share/icons/hicolor/scalable/hildon +scalable_DATA = 64/enigma.png +smalldir = $(prefix)/share/icons/hicolor/26x26/hildon +small_DATA = 26/enigma.png +mediumdir = $(prefix)/share/icons/hicolor/40x40/hildon +medium_DATA = 40/enigma.png + +# Install .desktop file in xdg standard location +desktopdir = $(prefix)/share/applications/hildon +desktop_DATA = enigma.desktop + +ICONFILES = 26/enigma.png 40/enigma.png 64/enigma.png + +else # MAEMO # Comply with xdg icon theme specification icondir = $(prefix)/share/icons/hicolor/48x48/apps icon_DATA = enigma.png @@ -10,6 +26,10 @@ # Install .desktop file in xdg standard location desktopdir = $(prefix)/share/applications desktop_DATA = enigma.desktop + +ICONFILES = enigma.png + +endif # MAEMO # endif !MINGW32 EXTRA_DIST = \ @@ -22,7 +42,7 @@ mingw32-dist.sh \ nlcvt.pl \ enigma.desktop \ - enigma.png \ + $(ICONFILES) \ Info.plist \ enigma.icns \ mac-build.sh \