# $OpenBSD: Makefile,v 1.6 2007/09/15 20:59:38 merdely Exp $

COMMENT=	open source tool for summarizing texts
DISTNAME=	ots-0.4.2
PKGNAME=	${DISTNAME}p0
SHARED_LIBS=	ots-1	4.2
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=libots/}

HOMEPAGE=	http://libots.sourceforge.net/

# GPL
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes

MODULES=	converters/libiconv \
		devel/gettext

LIB_DEPENDS=	glib-2.0.>=400.8::devel/glib2 \
		popt.>=0.3::devel/popt \
		xml2.>=9.0::textproc/libxml

WANTLIB=	c m z

USE_LIBTOOL=Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV+=	LDFLAGS="-L${LOCALBASE}/lib"

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/ots.1 ${PREFIX}/man/man1

.include <bsd.port.mk>