openbsd-ports/textproc/tinyxml/Makefile

45 lines
970 B
Makefile
Raw Normal View History

2013-01-05 14:20:31 -05:00
# $OpenBSD: Makefile,v 1.2 2013/01/05 19:20:31 sthen Exp $
SHARED_ONLY= Yes
COMMENT= simple and small C++ XML parser
V= 2.6.2
2013-01-05 14:20:31 -05:00
REVISION= 0
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/
# 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>