2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2013/03/11 11:42:47 espie Exp $
|
2013-01-03 04:14:54 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= simple and small C++ XML parser
|
|
|
|
|
|
|
|
V= 2.6.2
|
2013-01-05 14:20:31 -05:00
|
|
|
REVISION= 0
|
2013-01-03 04:14:54 -05:00
|
|
|
DISTNAME= tinyxml_${V:S/./_/g}
|
|
|
|
PKGNAME= tinyxml-${V}
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
SHARED_LIBS= tinyxml 0.0
|
|
|
|
|
|
|
|
CATEGORIES= textproc
|
|
|
|
|
2013-01-05 14:20:31 -05:00
|
|
|
HOMEPAGE= http://www.grinninglizard.com/tinyxml/
|
2013-01-03 04:14:54 -05:00
|
|
|
|
|
|
|
# zlib license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
WANTLIB += m stdc++
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tinyxml/}
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/tinyxml
|
2013-03-11 07:35:43 -04:00
|
|
|
NO_TEST= Yes
|
2013-01-03 04:14:54 -05:00
|
|
|
|
|
|
|
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>
|