Import tinyxml-2.6.2.
TinyXML is a simple, small, C++ XML parser that can be easily integrated into other programs. In brief, TinyXML parses an XML document, and builds from that a Document Object Model (DOM) that can be read, modified, and saved. ok jasper@
This commit is contained in:
parent
c9ebf0db3f
commit
fa37685bf4
43
textproc/tinyxml/Makefile
Normal file
43
textproc/tinyxml/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/01/03 09:14:54 ajacoutot Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= simple and small C++ XML parser
|
||||
|
||||
V= 2.6.2
|
||||
DISTNAME= tinyxml_${V:S/./_/g}
|
||||
PKGNAME= tinyxml-${V}
|
||||
EXTRACT_SUFX= .zip
|
||||
|
||||
SHARED_LIBS= tinyxml 0.0
|
||||
|
||||
CATEGORIES= textproc
|
||||
|
||||
HOMEPAGE= http://openjade.sourceforge.net/
|
||||
|
||||
# zlib license
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB += m stdc++
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tinyxml/}
|
||||
|
||||
WRKDIST= ${WRKDIR}/tinyxml
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-build:
|
||||
.for i in tinyxml.cpp tinystr.cpp tinyxmlerror.cpp tinyxmlparser.cpp
|
||||
cd ${WRKBUILD} && ${CXX} ${CXXFLAGS} -fPIC -o $i.o -c $i
|
||||
.endfor
|
||||
cd ${WRKBUILD} && ${CXX} ${CXXFLAGS} -shared -o libtinyxml.so.${LIBtinyxml_VERSION} *.cpp.o
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKBUILD}/libtinyxml.so.${LIBtinyxml_VERSION} \
|
||||
${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKBUILD}/tinyxml.h \
|
||||
${PREFIX}/include
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/tinyxml/distinfo
Normal file
2
textproc/tinyxml/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (tinyxml_2_6_2.zip) = rGu5UBxvUMySLSLyawL6sWjbR1Ib5ehFuD00UaPh1RI=
|
||||
SIZE (tinyxml_2_6_2.zip) = 290881
|
12
textproc/tinyxml/patches/patch-tinyxml_h
Normal file
12
textproc/tinyxml/patches/patch-tinyxml_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-tinyxml_h,v 1.1.1.1 2013/01/03 09:14:54 ajacoutot Exp $
|
||||
--- tinyxml.h.orig Thu Jan 3 09:41:25 2013
|
||||
+++ tinyxml.h Thu Jan 3 09:41:37 2013
|
||||
@@ -26,6 +26,8 @@ distribution.
|
||||
#ifndef TINYXML_INCLUDED
|
||||
#define TINYXML_INCLUDED
|
||||
|
||||
+#define TIXML_USE_STL
|
||||
+
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4530 )
|
4
textproc/tinyxml/pkg/DESCR
Normal file
4
textproc/tinyxml/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
TinyXML is a simple, small, C++ XML parser that can be easily integrated
|
||||
into other programs.
|
||||
In brief, TinyXML parses an XML document, and builds from that a
|
||||
Document Object Model (DOM) that can be read, modified, and saved.
|
3
textproc/tinyxml/pkg/PLIST
Normal file
3
textproc/tinyxml/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/01/03 09:14:54 ajacoutot Exp $
|
||||
include/tinyxml.h
|
||||
@lib lib/libtinyxml.so.${LIBtinyxml_VERSION}
|
Loading…
Reference in New Issue
Block a user