openbsd-ports/textproc/tinyxml/Makefile
2013-03-11 11:35:43 +00:00

42 lines
889 B
Makefile

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