Port of libxml2
This commit is contained in:
15
include/libxml/xmlversion.h
Normal file
15
include/libxml/xmlversion.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef __XML_VERSION_H__
|
||||
#define __XML_VERSION_H__
|
||||
|
||||
#include <libxml/xmlexports.h>
|
||||
|
||||
#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
|
||||
1
lib/import/import-libxml2.mk
Normal file
1
lib/import/import-libxml2.mk
Normal file
@@ -0,0 +1 @@
|
||||
INC_DIR += $(call select_from_ports,libxml2)/include
|
||||
55
lib/mk/libxml2.mk
Normal file
55
lib/mk/libxml2.mk
Normal file
@@ -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)
|
||||
1
ports/libxml2.hash
Normal file
1
ports/libxml2.hash
Normal file
@@ -0,0 +1 @@
|
||||
b24c400f7a93a67b3b92d819bd6946c8e94a88e9
|
||||
23
ports/libxml2.port
Normal file
23
ports/libxml2.port
Normal file
@@ -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)
|
||||
|
||||
1
src/lib/libxml2/config.h
Normal file
1
src/lib/libxml2/config.h
Normal file
@@ -0,0 +1 @@
|
||||
#define HAVE_STDINT_H 1
|
||||
Reference in New Issue
Block a user