# Created by: Nosov Artem <chip-set@mail.ru>
# $FreeBSD: converters/fix-mime-charset/Makefile 327715 2013-09-20 16:05:24Z bapt $

PORTNAME=	fix-mime-charset
PORTVERSION=	0.5.3
PORTREVISION=	1
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

LIB_DEPENDS=	enca.5:${PORTSDIR}/converters/enca

PORTDOCS=	README.koi8r README

GNU_CONFIGURE=	yes
USES=		perl5
USE_PERL5=	build

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

MAN1=		fix-mime-charset.1
PLIST_FILES=	bin/fix-mime-charset

NO_STAGE=	yes
post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
