# $MidnightBSD: trunk/misc/chmlib/Makefile 16710 2014-08-30 12:50:06Z laffer1 $

PORTNAME=	chmlib
PORTVERSION=	0.40
CATEGORIES=	misc
MASTER_SITES=	http://www.jedrea.com/chmlib/

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Library for dealing with Microsoft ITSS/CHM format files

LICENSE=	lgpl

USES=		gmake tar:bzip2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-io64 --disable-pread --exec-prefix=${PREFIX} --disable-static --enable-examples
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS}," ${WRKSRC}/configure

.include <bsd.port.mk>
