[Kde-imaging] extragear/libs/kipi-plugins

Gilles Caulier caulier.gilles at kdemail.net
Fri Sep 22 09:35:43 CEST 2006


Seb,

On my computer, i have installed current stable libgpod and .configure said 
taht all is ok. Of course, i cannot compile the plugin because we need the 
current svn implementation of libgpod.

Please fix the .configure rules to detect the right version of the library to 
prevent broken compilation.

Thanks in advance

Gilles Caulier

On Friday 22 September 2006 08:53, Seb Ruiz wrote:
> SVN commit 587284 by seb:
>
> Import of a kipi plugin to transfer photos to an iPod photo/video
> Requires libgpod > 0.3.2 (ie cvs version)
>
> Testing is welcomed, but I would advise not using it if you have a well
> established and important photo database which is already on the ipod.
>
> CCMAIL: kde-imaging at kde.org
>
>
>
>  M  +5 -1      Makefile.am
>  M  +12 -0     configure.in.bot
>  M  +60 -2     configure.in.in
>  A             ipodexport (directory)
>  A             ipodexport/Makefile.am
>  A             ipodexport/ipodexportdialog.cpp   [License: GPL (v2+)]
>  A             ipodexport/ipodexportdialog.h   [License: GPL (v2+)]
>  A             ipodexport/kipiplugin_ipodexport.desktop
>  A             ipodexport/plugin_ipodexport.cpp   [License: GPL (v2+)]
>  A             ipodexport/plugin_ipodexport.h   [License: GPL (v2+)]
>
>
> --- trunk/extragear/libs/kipi-plugins/Makefile.am #587283:587284
> @@ -20,10 +20,14 @@
>  RAWCONVERTERDIR = rawconverter
>  endif
>
> +if compile_IPODEXPORT
> +IPODEXPORTDIR = ipodexport
> +endif
> +
>  SUBDIRS = common printwizard calendar mpegencoder cdarchiving
> simpleviewerexport \ sendimages batchprocessimages wallpaper findimages
> galleryexport flickrexport \ jpeglossless timeadjust gpssync \
> -	      $(SLIDESHOWDIR) $(KAMERAKLIENTDIR) $(ACQUIREIMAGESDIR)
> $(RAWCONVERTERDIR) $(HTMLEXPORTDIR) +	      $(SLIDESHOWDIR)
> $(KAMERAKLIENTDIR) $(ACQUIREIMAGESDIR) $(RAWCONVERTERDIR) $(HTMLEXPORTDIR)
> $(IPODEXPORTDIR)
>
>  rcdir = $(kde_datadir)/kipi
>  rc_DATA = tips
> --- trunk/extragear/libs/kipi-plugins/configure.in.bot #587283:587284
> @@ -85,4 +85,16 @@
>    echo "-- libxstl found.................. YES"
>  fi
>
> +if test "x$have_libgpod" != "xyes"; then
> +  echo "-- libgpod found.................. NO"
> +  echo ""
> +  echo "iPodExport plugin needs the libgpod library. This plugin will not
> be compiled!" +  echo "To complile this plugin, please install libgpod
> development package." +  echo "libgpod website is at
> http://gtkpod.org/libgpod.html"
> +  echo ""
> +  all_tests=bad
> +else
> +  echo "-- libgpod found.................. YES"
> +fi
>
> +
> --- trunk/extragear/libs/kipi-plugins/configure.in.in #587283:587284
> @@ -139,6 +139,64 @@
>       DO_NOT_COMPILE="$DO_NOT_COMPILE kipi-plugins"
>  fi
>
> +
> +
> +#------------------------------------------------------------------
> +# Check for libgpod (ipod export plugin)
> +#------------------------------------------------------------------
> +
> +
> +if test "$build_libgpod" != "no"; then
> +    if test "$PKGCONFIGFOUND" = "yes" ; then
> +
> +        # check for libgpod
> +        have_libgpod=no
> +
> +        PKG_CHECK_MODULES(LIBGPOD, libgpod-1.0,
> have_libgpod=yes,have_libgpod=no) +        AC_MSG_RESULT($have_libgpod)
> +        if test "x$have_libgpod" != "xno"; then
> +            AC_DEFINE(HAVE_LIBGPOD, 1, [have libgpod])
> +        fi
> +
> +        if test "x$have_libgpod" = "xyes"; then
> +            ac_cppflags_save=$CPPFLAGS
> +            ac_cflags_save=$CFLAGS
> +            ac_ldflags_save=$LDFLAGS
> +            CPPFLAGS="$CPPFLAGS $LIBGPOD_INCLUDES"
> +            CFLAGS="$CFLAGS $LIBGPOD_CFLAGS"
> +            LDFLAGS="$LDFLAGS $LIBGPOD_LIBS"
> +
> +            AC_CHECK_FUNCS(itdb_track_set_thumbnails,
> have_libgpod_artwork=yes) +            AC_CHECK_FUNCS(itdb_get_mountpoint)
> +            AC_CHECK_FUNCS(itdb_device_get_ipod_info)
> +
> +            if test "x$have_libgpod_artwork" = "xno"; then
> +                AC_MSG_WARN([ Current version of libgpod does not support
> artwork. You need version 0.3.2 or above.]) +               
> have_libgpod=no
> +            else
> +                AC_CHECK_MEMBER(struct _Itdb_Track.movie_flag,
> +                      [AC_DEFINE(HAVE_ITDB_MOVIE_FLAG, 1, [have libgpod
> movie flag])], +                      ,
> +                      [#include <gpod/itdb.h>])
> +
> +                AC_CHECK_MEMBER(struct _Itdb_Track.skip_when_shuffling,
> +                      [AC_DEFINE(HAVE_ITDB_SKIP_SHUFFLE_FLAG, 1, [have
> libgpod skip when shuffling flag])], +                      ,
> +                      [#include <gpod/itdb.h>])
> +
> +                CPPFLAGS=$ac_cppflags_save
> +                CFLAGS=$ac_cflags_save
> +                LDFLAGS=$ac_ldflags_save
> +            fi
> +        else
> +          AC_MSG_WARN([
> +          libgpod is required for the iPod export plugin.])
> +        fi
> +    fi
> +fi
> +
> +AM_CONDITIONAL(compile_IPODEXPORT,  [test x$have_libgpod = xyes])
> +
>  # ----------------------------------------------------------
>  #
>  # Slideshow plugin tests
> @@ -146,7 +204,7 @@
>  # ----------------------------------------------------------
>
> 
> ###########################################################################
>#### -# BEGIN QT OPENGL CHECK (fudged from amaroK)
> +# BEGIN QT OPENGL CHECK (fudged from Amarok)
> 
> ###########################################################################
>####
>
>  AC_ARG_WITH(opengl,
> @@ -265,4 +323,4 @@
>  	AC_MSG_WARN([Slideshow plugin will not be compiled])
>  fi
>
> -
> +
> _______________________________________________
> Kde-imaging mailing list
> Kde-imaging at kde.org
> https://mail.kde.org/mailman/listinfo/kde-imaging


More information about the Kde-imaging mailing list