[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / tinyxml

File: [cvs.NetBSD.org] / pkgsrc / textproc / tinyxml / Makefile (download)

Revision 1.3, Tue Jul 8 14:57:06 2014 UTC (6 years, 1 month ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, HEAD
Changes since 1.2: +19 -7 lines

Switch to using libtool to build the shared library.  The bsd.lib.mk
infrastructure appears to use some constructs which are not currently
available in bootstrap-mk-files.

Bump PKGREVISION and add BUILDLINK_ABI_DEPENDS on the new revision, as
we cannot guarantee that the shared library name didn't change.

# $NetBSD: Makefile,v 1.3 2014/07/08 14:57:06 jperkin Exp $

DISTNAME=		tinyxml_2_6_2
PKGNAME=		tinyxml-2.6.2
PKGREVISION=		2
CATEGORIES=		textproc devel lang
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=tinyxml/}
EXTRACT_SUFX=		.zip

MAINTAINER=		pkgsrc@NetBSD.org
HOMEPAGE=		http://www.grinninglizard.com/tinyxml/
COMMENT=		Simple, small, C++ XML parser
LICENSE=		zlib

USE_LANGUAGES+=		c++
USE_LIBTOOL=		yes

WRKSRC=			${WRKDIR}/${PKGBASE}

INSTALLATION_DIRS+=	include lib

CXXFLAGS+=		-DTIXML_USE_STL=1

do-build:
	cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${COMPILE.cc} tinystr.cpp
	cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${COMPILE.cc} tinyxml.cpp
	cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${COMPILE.cc} tinyxmlerror.cpp
	cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${COMPILE.cc} tinyxmlparser.cpp
	cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${COMPILE.cc} xmltest.cpp
	cd ${WRKSRC} && ${LIBTOOL} --mode=link ${LINK.cc} \
		-o libtinyxml.la *.lo -version-info 2:6:2 -rpath ${PREFIX}/lib

do-install:
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libtinyxml.la \
		${DESTDIR}${PREFIX}/lib/
	${INSTALL_DATA} ${WRKSRC}/tinyxml.h ${DESTDIR}${PREFIX}/include/

.include "../../mk/bsd.pkg.mk"