PORTNAME=	xxl
PORTVERSION=	1.0.1
PORTREVISION=	3
CATEGORIES=	devel
MASTER_SITES=	http://launchpadlibrarian.net/39195019/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	C/C++ library for exception handling and asset management
WWW=		https://web.archive.org/web/20120106082715/http://www.zork.org/xxl/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		libtool
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
TEST_TARGET=	check

PLIST_FILES=	include/xxl.h lib/libxxl.a lib/libxxl.so \
		lib/libxxl.so.1 lib/libxxl.so.1.1.0
PORTDOCS=	xxl.html xxl.pdf

OPTIONS_DEFINE=	THREADS DOCS
OPTIONS_DEFAULT=THREADS

THREADS_CONFIGURE_WITH=	threads

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxxl.so

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>
