Ticket #31667: patch-port_libpar2.diff

File patch-port_libpar2.diff, 1.1 KB (added by anddam (Andrea D'Amore), 12 years ago)
  • files/patch-par2fileformat_h.diff

     
     1--- par2fileformat.h.orig       2012-05-14 20:07:06.000000000 +0200
     2+++ par2fileformat.h    2012-05-14 20:03:42.000000000 +0200
     3@@ -84,7 +84,7 @@
     4   PACKET_HEADER         header;
     5   // Body
     6   MD5Hash               fileid;     // MD5hash of file_hash_16k, file_length, file_name
     7-  FILEVERIFICATIONENTRY entries[];
     8+  FILEVERIFICATIONENTRY *entries;
     9 } PACKED;
     10 
     11 // The file description packet is used to record the name of the file,
  • Portfile

     
    2424depends_lib     port:libsigcxx2
    2525depends_build   port:pkgconfig
    2626
    27 if {${configure.compiler} == "clang"} {
    28     configure.compiler llvm-gcc-4.2
    29 }
    3027
    3128use_parallel_build  yes
    3229
     30patchfiles       patch-par2fileformat_h.diff
    3331post-destroot {
    3432    set docdir ${prefix}/share/doc/${name}-${version}
    3533    xinstall -d ${destroot}${docdir}