Ticket #28845: patch-gtktalog-changes.diff

File patch-gtktalog-changes.diff, 5.4 KB (added by terry.droeger@…, 13 years ago)

patchfile to build gtktalog for macports on imac

  • gtktalog-1.0.4.

    diff -rupN gtktalog-1.0.4.orig/configure.in gtktalog-1.0.4.new/configure.in
    old new AM_PROG_LEX 
    1717AC_PROG_YACC
    1818AC_PROG_INSTALL
    1919AC_PROG_MAKE_SET
     20AM_PROG_MKDIR_P
    2021#AM_PROG_LIBTOOL
    2122
    2223dnl Internationalization
    2324dnl ====================
    2425ALL_LINGUAS="fr pl hu ja es sv ca cs nl de sk it ru pt_BR"
    2526AM_GNU_GETTEXT([external])
     27AM_GNU_GETTEXT_VERSION(0.18.1)
    2628
    2729localedir=${datadir}/locale
    2830AC_SUBST(localedir)
    dnl ======================== 
    5052AC_HEADER_DIRENT
    5153AC_HEADER_STDC
    5254AC_HEADER_SYS_WAIT
    53 AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h unistd.h)
     55AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h unistd.h sys/mtio.h)
    5456
    5557dnl Checks for typedefs, structures, and compiler characteristics.
    5658dnl ==============================================================
  • po/Makefile.in.in

    diff -rupN gtktalog-1.0.4.orig/po/Makefile.in.in gtktalog-1.0.4.new/po/Makefile.in.in
    old new VPATH = @srcdir@ 
    2121prefix = @prefix@
    2222exec_prefix = @exec_prefix@
    2323datadir = @datadir@
     24datarootdir = @datarootdir@
    2425localedir = $(datadir)/locale
    2526gettextsrcdir = $(datadir)/gettext/po
    2627
  • src/gtktalog/eject.c

    diff -rupN gtktalog-1.0.4.orig/src/gtktalog/eject.c gtktalog-1.0.4.new/src/gtktalog/eject.c
    old new  
    2020#include <gnome.h>
    2121#include <stdio.h>
    2222#include <sys/ioctl.h>
     23#if defined(HAVE_SYS_MTIO_H)
    2324#include <sys/mtio.h>
     25#endif
    2426#include <sys/types.h>
    2527#include <linux/cdrom.h>
    2628#include <fcntl.h>
  • src/gtktalog/fastaddisk.c

    diff -rupN gtktalog-1.0.4.orig/src/gtktalog/fastaddisk.c gtktalog-1.0.4.new/src/gtktalog/fastaddisk.c
    old new  
    3030#include <signal.h>
    3131#include <sys/stat.h>
    3232#include <sys/wait.h>
     33#if defined(HAVE_SYS_MTIO_H)
    3334#include <sys/mtio.h>
     35#endif
    3436#include <fcntl.h>
    3537#include <unistd.h>
    3638#include <stdlib.h>
    3739#if defined(USE_PTHREADS)
    3840#    include <pthread.h>
    3941#endif
    40 #include <sys/mtio.h>
    4142#include <fcntl.h>
    4243#include <errno.h>
    4344#include <unistd.h>
  • src/gtktalog/progressbar.c

    diff -rupN gtktalog-1.0.4.orig/src/gtktalog/progressbar.c gtktalog-1.0.4.new/src/gtktalog/progressbar.c
    old new progress_needReset () 
    9090glong
    9191getStats (char *foldername)
    9292{
     93#if HAVE_STATFS
    9394  struct statfs statBuf;
    9495
    9596  if (statfs (foldername, &statBuf) == -1)
    getStats (char *foldername) 
    9899
    99100  /* Total size of the CD in Bytes */
    100101  return statBuf.f_blocks * statBuf.f_bsize;
     102#else
     103  return -1;
     104#endif
    101105}
    102106
    103107void
  • src/gtktalog/report.c

    diff -rupN gtktalog-1.0.4.orig/src/gtktalog/report.c gtktalog-1.0.4.new/src/gtktalog/report.c
    old new print_file (FILE_DATA * fd, FILE * file) 
    333333  if (gb_html_report)
    334334    fprintf (file, "<TR>");
    335335  if (gb_xml_report)
    336     fprintf (file, xml_directory_st);
     336    fprintf (file, "%s", xml_directory_st);
    337337  if (gb_check_disks)
    338338    {
    339339      if (gb_xml_report)
    print_file (FILE_DATA * fd, FILE * file) 
    521521  if (gb_html_report)
    522522    fprintf (file, "</TR>");
    523523  if (gb_xml_report)
    524     fprintf (file, xml_directory_ed);
     524    fprintf (file, "%s", xml_directory_ed);
    525525  fprintf (file, "\n");
    526526}
    527527
  • src/plugins/aviinfo.cpp

    diff -rupN gtktalog-1.0.4.orig/src/plugins/aviinfo.cpp gtktalog-1.0.4.new/src/plugins/aviinfo.cpp
    old new struct avi 
    6363        struct avi_audio audio;
    6464};
    6565
    66 char* version="0.1";
    67 char* author="Panagiotis Issaris";
    68 char* email="panagiotis.issaris@advalvas.be";
    69 char* pluginname="aviinfo";
    70 char* date="2000";
     66const char* version="0.1";
     67const char* author="Panagiotis Issaris";
     68const char* email="panagiotis.issaris@advalvas.be";
     69const char* pluginname="aviinfo";
     70const char* date="2000";
    7171
    7272void strtolower(char* str)
    7373{
  • src/plugins/html.cpp

    diff -rupN gtktalog-1.0.4.orig/src/plugins/html.cpp gtktalog-1.0.4.new/src/plugins/html.cpp
    old new  
    1919 *                                                                         *
    2020 ***************************************************************************/
    2121
    22 #include <iostream.h>
    2322#include <stdio.h>
    2423#include <stdlib.h>
    2524#include <string.h>
    2625#include <ctype.h>
    2726
    2827
    29 char* RESPONSE_END="|END|";
     28const char* RESPONSE_END="|END|";
    3029
    3130void strtolower(char* str)
    3231{
  • src/plugins/mp3.cpp

    diff -rupN gtktalog-1.0.4.orig/src/plugins/mp3.cpp gtktalog-1.0.4.new/src/plugins/mp3.cpp
    old new  
    1 #include <iostream.h>
    21#include <stdlib.h>
    32#include <stdio.h>
    43#include "mp3tag.h"