HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #429

Ticket #429: webp-leptonica-0.0.1.patch

File webp-leptonica-0.0.1.patch, 4.0 KB (added by michaelvoliveira, 5 years ago)

Fix already declared cases.

  • leptonlib-1.066/configure

    diff -Naur webp/leptonlib-1.066/configure webp-haiku/leptonlib-1.066/configure
    old new  
    86518651       save_LIBS="$LIBS" 
    86528652       CFLAGS="$CFLAGS $LIBTIFF_CFLAGS" 
    86538653       CXXFLAGS="$CXXFLAGS $LIBTIFF_CFLAGS" 
    8654        LIBS="$LIBS $LIBTIFF_LIBS -lm" 
     8654       LIBS="$LIBS $LIBTIFF_LIBS" 
    86558655       cat >conftest.$ac_ext <<_ACEOF 
    86568656/* confdefs.h.  */ 
    86578657_ACEOF 
    … …  
    87328732     if test "x$CXX" = "xcl.exe" ; then 
    87338733       LIBS="$LIBTIFF_LIBS $LIBS" 
    87348734     else 
    8735        LIBS="$LIBTIFF_LIBS $LIBS -lm" 
     8735       LIBS="$LIBTIFF_LIBS $LIBS" 
    87368736     fi 
    87378737     : 
    87388738  fi 
  • leptonlib-1.066/src/bmpio.c

    diff -Naur webp/leptonlib-1.066/src/bmpio.c webp-haiku/leptonlib-1.066/src/bmpio.c
    old new  
    503503#endif  /* HAVE_CONFIG_H */ 
    504504 
    505505#if HAVE_FMEMOPEN 
    506  
     506#if !defined(__HAIKU__) 
    507507extern FILE *open_memstream(char **data, size_t *size); 
     508#endif 
    508509extern FILE *fmemopen(void *data, size_t size, const char *mode); 
    509510 
    510511/*! 
  • leptonlib-1.066/src/jpegio.c

    diff -Naur webp/leptonlib-1.066/src/jpegio.c webp-haiku/leptonlib-1.066/src/jpegio.c
    old new  
    948948 *                         Read/write to memory                        * 
    949949 *---------------------------------------------------------------------*/ 
    950950#if HAVE_FMEMOPEN 
    951  
     951#if !defined(__HAIKU__) 
    952952extern FILE *open_memstream(char **data, size_t *size); 
     953#endif 
    953954extern FILE *fmemopen(void *data, size_t size, const char *mode); 
    954955 
    955956/*! 
  • leptonlib-1.066/src/pngio.c

    diff -Naur webp/leptonlib-1.066/src/pngio.c webp-haiku/leptonlib-1.066/src/pngio.c
    old new  
    985985 *                         Read/write to memory                        * 
    986986 *---------------------------------------------------------------------*/ 
    987987#if HAVE_FMEMOPEN 
    988  
     988#if !defined(__HAIKU__) 
    989989extern FILE *open_memstream(char **data, size_t *size); 
     990#endif 
    990991extern FILE *fmemopen(void *data, size_t size, const char *mode); 
    991992 
    992993/*! 
  • leptonlib-1.066/src/pnmio.c

    diff -Naur webp/leptonlib-1.066/src/pnmio.c webp-haiku/leptonlib-1.066/src/pnmio.c
    old new  
    531531#endif  /* HAVE_CONFIG_H */ 
    532532 
    533533#if HAVE_FMEMOPEN 
    534  
     534#if !defined(__HAIKU__) 
    535535extern FILE *open_memstream(char **data, size_t *size); 
     536#endif 
    536537extern FILE *fmemopen(void *data, size_t size, const char *mode); 
    537538 
    538539/*! 
  • leptonlib-1.066/src/sarray.c

    diff -Naur webp/leptonlib-1.066/src/sarray.c webp-haiku/leptonlib-1.066/src/sarray.c
    old new  
    17951795        /* It's nice to ignore directories.  For this it is necessary to 
    17961796         * define _BSD_SOURCE in the CC command, because the DT_DIR 
    17971797         * flag is non-standard.  */  
    1798 #if !defined(__SOLARIS__) 
     1798#if !defined(__SOLARIS__) && !defined(__HAIKU__) 
    17991799        if (pdirentry->d_type == DT_DIR) 
    18001800            continue; 
    18011801#endif 
  • libwebp/makefile

    diff -Naur webp/libwebp/makefile webp-haiku/libwebp/makefile
    old new  
    6767#    (2) Install giflib-4.1.4, and be sure your LD_LIBRARY_PATH includes 
    6868#        the directory in which libgif.so.4 is installed. 
    6969#    (3) Use the second line below for ALL_LIBS 
    70 ALL_LIBS =      $(LEPTLIB) -ljpeg -lpng -lz -lm 
     70ALL_LIBS =      $(LEPTLIB) -ljpeg -lpng -lz 
    7171#ALL_LIBS =     $(LEPTLIB) -ltiff -ljpeg -lpng -lgif -lz -lm 
    7272 
    73 VPX_LIB = -lvpx -lpthread 
     73VPX_LIB = -lvpx 
    7474 
    7575######################################################################### 
    7676 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/