diff --git a/include/libxml/xmlversion.h b/include/libxml/xmlversion.h new file mode 100644 index 0000000..078ba57 --- /dev/null +++ b/include/libxml/xmlversion.h @@ -0,0 +1,15 @@ +#ifndef __XML_VERSION_H__ +#define __XML_VERSION_H__ + +#include + +#define LIBXML_VERSION 20904 +#define LIBXML_VERSION_STRING "20904" +#define LIBXML_VERSION_EXTRA "-GITv2.9.4-3-gd8083bf" + +#define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args))) +#define LIBXML_ATTR_ALLOC_SIZE(x) + +#define ATTRIBUTE_UNUSED __attribute__((unused)) + +#endif diff --git a/lib/import/import-libxml2.mk b/lib/import/import-libxml2.mk new file mode 100644 index 0000000..cfa2a35 --- /dev/null +++ b/lib/import/import-libxml2.mk @@ -0,0 +1 @@ +INC_DIR += $(call select_from_ports,libxml2)/include diff --git a/lib/mk/libxml2.mk b/lib/mk/libxml2.mk new file mode 100644 index 0000000..29023d0 --- /dev/null +++ b/lib/mk/libxml2.mk @@ -0,0 +1,55 @@ +LIBXML2_DIR := $(call select_from_ports,libxml2)/src/lib/libxml2 + +INC_DIR += $(LIBXML2_DIR)/include $(REP_DIR)/src/lib/libxml2 + +LIBS += libc + +SRC_C := buf.c \ + c14n.c \ + catalog.c \ + chvalid.c \ + debugXML.c \ + dict.c \ + encoding.c \ + entities.c \ + error.c \ + globals.c \ + hash.c \ + HTMLparser.c \ + HTMLtree.c \ + legacy.c \ + list.c \ + nanoftp.c \ + nanohttp.c \ + parserInternals.c \ + parser.c \ + pattern.c \ + relaxng.c \ + SAX2.c \ + SAX.c \ + schematron.c \ + threads.c \ + tree.c \ + uri.c \ + valid.c \ + xinclude.c \ + xlink.c \ + xmlIO.c \ + xmlmemory.c \ + xmlmodule.c \ + xmlreader.c \ + xmlregexp.c \ + xmlsave.c \ + xmlschemas.c \ + xmlschemastypes.c \ + xmlstring.c \ + xmlunicode.c \ + xmlwriter.c \ + xpath.c \ + xpointer.c \ + xzlib.c + +CC_WARN := -Wall -Wno-implicit-function-declaration -Wno-unused-function \ + -Wno-unused-but-set-variable -Wno-format-extra-args -Wno-format + +vpath %.c $(LIBXML2_DIR) diff --git a/ports/libxml2.hash b/ports/libxml2.hash new file mode 100644 index 0000000..43e2fe0 --- /dev/null +++ b/ports/libxml2.hash @@ -0,0 +1 @@ +b24c400f7a93a67b3b92d819bd6946c8e94a88e9 diff --git a/ports/libxml2.port b/ports/libxml2.port new file mode 100644 index 0000000..d6e8834 --- /dev/null +++ b/ports/libxml2.port @@ -0,0 +1,23 @@ +LICENSE := MIT +VERSION := git +DOWNLOADS := libxml2.git + +URL(libxml2) := git://git.gnome.org/libxml2 +DIR(libxml2) := src/lib/libxml2 +REV(libxml2) := v2.9.4 + +DIRS := include/libxml +DIR_CONTENT(include/libxml) := \ + $(addprefix src/lib/libxml2/include/libxml/, \ + c14n.h catalog.h chvalid.h debugXML.h dict.h \ + DOCBparser.h encoding.h entities.h globals.h hash.h \ + HTMLparser.h HTMLtree.h list.h nanoftp.h nanohttp.h \ + parser.h parserInternals.h pattern.h relaxng.h SAX2.h \ + SAX.h schemasInternals.h schematron.h threads.h tree.h \ + uri.h valid.h xinclude.h xlink.h xmlautomata.h \ + xmlerror.h xmlexports.h xmlIO.h xmlmemory.h \ + xmlmodule.h xmlreader.h xmlregexp.h xmlsave.h \ + xmlschemas.h xmlschemastypes.h xmlstring.h \ + xmlunicode.h xmlwin32version.h xmlwriter.h xpath.h \ + xpathInternals.h xpointer.h) + diff --git a/src/lib/libxml2/config.h b/src/lib/libxml2/config.h new file mode 100644 index 0000000..98d9392 --- /dev/null +++ b/src/lib/libxml2/config.h @@ -0,0 +1 @@ +#define HAVE_STDINT_H 1