summaryrefslogtreecommitdiff
path: root/libs/files/domc-library.patch
blob: 614bf15cca4067d32a44e15a75c0737d3fe9640f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
diff -r -C3 domc-0.7.0/Makefile domc/Makefile
*** domc-0.7.0/Makefile	2003-03-22 17:08:50.000000000 -0700
--- domc/Makefile	2004-07-29 12:47:32.702686029 -0600
***************
*** 1,7 ****
! prefix     = /usr/local
! includedir = $(prefix)/include
! libdir     = $(prefix)/lib
! mandir     = $(prefix)/man
  CC         = gcc
  LIBNAME    = domc
  MAJVERSION = 0.7
--- 1,8 ----
! _EXTRA     = -I../libmba/src/ -L../libmba/
! prefix     = ./
! includedir = $(prefix)
! libdir     = $(prefix)
! mandir     = $(prefix)
  CC         = gcc
  LIBNAME    = domc
  MAJVERSION = 0.7
***************
*** 11,25 ****
  SOVERSION  = lib$(LIBNAME).so.$(MAJVERSION)
  DISTRO     = $(LIBNAME)-$(MINVERSION)
  RPM_OPT_FLAGS = -O2
! CFLAGS     = -Wall -W -DMSGNO $(RPM_OPT_FLAGS) -I$(includedir) -L$(libdir)
  #CFLAGS     = -Wall -W -DMSGNO -I$(includedir) -L$(libdir) $(RPM_OPT_FLAGS) -ansi -pedantic -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wtraditional -Wconversion -Waggregate-return -Wno-parentheses
! OBJS       = src/expatls.o src/events.o src/node.o src/nodelist.o src/namednodemap.o src/dom.o src/timestamp.o src/wcwidth.o
  MAN        = DOM_CharacterData.3m.gz DOM_Document.3m.gz DOM_Element.3m.gz DOM_Implementation.3m.gz DOM_NamedNodeMap.3m.gz DOM_Node.3m.gz DOM_NodeList.3m.gz DOM_Text.3m.gz
  
  all: $(ARNAME)($(OBJS)) $(SONAME) src/defines.h
  
  $(SONAME): $(OBJS)
! 	$(CC) -shared $(OBJS) -L$(libdir) -lmba -lexpat -Wl,-h,$(SOVERSION) -o $(SONAME)
  
  .c.a:
  	$(CC) $(CFLAGS) -c -o $*.o $<
--- 12,26 ----
  SOVERSION  = lib$(LIBNAME).so.$(MAJVERSION)
  DISTRO     = $(LIBNAME)-$(MINVERSION)
  RPM_OPT_FLAGS = -O2
! CFLAGS     = -Wall -W -DMSGNO $(RPM_OPT_FLAGS) $(_EXTRA) -I$(includedir) -L$(libdir)
  #CFLAGS     = -Wall -W -DMSGNO -I$(includedir) -L$(libdir) $(RPM_OPT_FLAGS) -ansi -pedantic -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wtraditional -Wconversion -Waggregate-return -Wno-parentheses
! OBJS       = src/events.o src/node.o src/nodelist.o src/namednodemap.o src/dom.o src/timestamp.o src/wcwidth.o
  MAN        = DOM_CharacterData.3m.gz DOM_Document.3m.gz DOM_Element.3m.gz DOM_Implementation.3m.gz DOM_NamedNodeMap.3m.gz DOM_Node.3m.gz DOM_NodeList.3m.gz DOM_Text.3m.gz
  
  all: $(ARNAME)($(OBJS)) $(SONAME) src/defines.h
  
  $(SONAME): $(OBJS)
! 	$(CC) -shared $(OBJS) $(_EXTRA) -L$(libdir) -lmba -Wl,-h,$(SOVERSION) -o $(SONAME)
  
  .c.a:
  	$(CC) $(CFLAGS) -c -o $*.o $<
***************
*** 47,51 ****
  
  clean:
  	rm -f $(OBJS) $(ARNAME) $(SONAME) $(includedir)/domc.h $(libdir)/$(ARNAME) $(libdir)/$(SONAME) $(libdir)/$(SOVERSION) $(libdir)/lib$(LIBNAME).so $(DISTRO).zip
! 	cd $(mandir)/man3 && rm -f $(MAN)
  
--- 48,52 ----
  
  clean:
  	rm -f $(OBJS) $(ARNAME) $(SONAME) $(includedir)/domc.h $(libdir)/$(ARNAME) $(libdir)/$(SONAME) $(libdir)/$(SOVERSION) $(libdir)/lib$(LIBNAME).so $(DISTRO).zip
! 	# cd $(mandir)/man3 && rm -f $(MAN)
  
diff -r -C3 domc-0.7.0/src/defines.h domc/src/defines.h
*** domc-0.7.0/src/defines.h	2003-03-22 16:35:36.000000000 -0700
--- domc/src/defines.h	2004-07-29 12:40:28.443671463 -0600
***************
*** 21,27 ****
  #define HAVE_ENCDEC 0
  #define HAVE_STRDUP 1
  #define HAVE_STRNLEN 0
! #define HAVE_EXPAT 195
  #define HAVE_MBSTATE 0
  #define HAVE_WCWIDTH 0
  #define HAVE_SNPRINTF 0
--- 21,27 ----
  #define HAVE_ENCDEC 0
  #define HAVE_STRDUP 1
  #define HAVE_STRNLEN 0
! #define HAVE_EXPAT 0
  #define HAVE_MBSTATE 0
  #define HAVE_WCWIDTH 0
  #define HAVE_SNPRINTF 0
***************
*** 35,41 ****
  #define HAVE_ENCDEC 0
  #define HAVE_STRDUP 1
  #define HAVE_STRNLEN 1
! #define HAVE_EXPAT 195
  #define HAVE_MBSTATE 1
  #define HAVE_WCWIDTH 1
  #define HAVE_SNPRINTF 1
--- 35,41 ----
  #define HAVE_ENCDEC 0
  #define HAVE_STRDUP 1
  #define HAVE_STRNLEN 1
! #define HAVE_EXPAT 0
  #define HAVE_MBSTATE 1
  #define HAVE_WCWIDTH 1
  #define HAVE_SNPRINTF 1