summaryrefslogtreecommitdiff
path: root/libs/files/domc-library.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libs/files/domc-library.patch')
-rw-r--r--libs/files/domc-library.patch104
1 files changed, 104 insertions, 0 deletions
diff --git a/libs/files/domc-library.patch b/libs/files/domc-library.patch
new file mode 100644
index 0000000..614bf15
--- /dev/null
+++ b/libs/files/domc-library.patch
@@ -0,0 +1,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