# Created by: Nosov Artem <chip-set@mail.ru>

PORTNAME=	fix-mime-charset
PORTVERSION=	0.5.3
PORTREVISION=	2
CATEGORIES=	converters textproc russian ukrainian
MASTER_SITES=	SF/fix-mime-chr/${PORTNAME}/${PORTVERSION}

MAINTAINER=	chip-set@mail.ru
COMMENT=	Fix incorrect Content-Type MIME headers of e-mail messages

OPTIONS_DEFINE=	DOCS

LIB_DEPENDS=	libenca.so:converters/enca

PORTDOCS=	README.koi8r README

GNU_CONFIGURE=	yes
USES=		perl5
USE_PERL5=	build

CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

PLIST_FILES=	bin/fix-mime-charset \
		man/man1/fix-mime-charset.1.gz

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>
