openbsd-ports/textproc/tinyxml/Makefile
ajacoutot fa37685bf4 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@
2013-01-03 09:14:54 +00:00

44 lines
960 B
Makefile

# $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>