Ticket #12461: dia2code-0.8.3.patch
File dia2code-0.8.3.patch, 1.8 KB (added by simon@…, 17 years ago) |
---|
-
Portfile
1 1 # $Id: Portfile 21477 2007-01-26 02:39:47Z eridius@macports.org $ 2 2 PortSystem 1.0 3 3 4 name dia2code 4 version 0.8. 15 version 0.8.3 5 6 description Dia2Code is a small utility used to generate code from a Dia diagram. 6 7 long_description ${description} 7 8 maintainers nomaintainer@macports.org 8 9 categories devel 9 10 platforms darwin 10 homepage http://${name}.s f.net11 homepage http://${name}.sourceforge.net 11 12 master_sites sourceforge 12 checksums md5 549eb4da412d92d779bcd3e65175064f 13 14 checksums md5 af64302f4e6633f26e28f74cbfbab742 \ 15 sha1 9a3e3fb766928ad4cf59d97cdfa099bbdd5801af \ 16 rmd160 6db53298445a864e3895edd469713db24692f4aa 17 13 18 depends_lib port:libxml2 14 patchfiles patch-dia2code.h 19 20 patchfiles patch-dia2code.h 21 15 22 configure.args --mandir=${prefix}/share/man 16 configure.env CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \ 17 CFLAGS="-I${prefix}/include/libxml2/libxml" 23 18 24 post-destroot { 19 25 file copy ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1 20 26 } -
files/patch-dia2code.h
1 --- dia2code/dia2code.h .org 2005-05-09 19:45:48.000000000 +02002 +++ dia2code/dia2code.h 200 5-05-09 19:46:12.000000000 +02003 @@ -20, 13 +20,12@@1 --- dia2code/dia2code.h 2007-08-14 02:37:26.000000000 +0200 2 +++ dia2code/dia2code.h 2007-08-14 02:39:44.000000000 +0200 3 @@ -20,7 +20,6 @@ 4 4 5 5 #include <string.h> 6 6 #include <ctype.h> 7 7 -#include <malloc.h> 8 8 #include <stdio.h> 9 9 #include <stdlib.h> 10 11 /* libxml[2] headers */ 12 -#include <parser.h> 13 -#include <tree.h> 14 +#include <libxml/parser.h> 15 +#include <libxml/tree.h> 16 17 #define VERSION "0.8.1" 18 10 #include <stdarg.h>