freebsd-ports/converters/ytnef/Makefile
Dmitry Marakasov 7c7f68b12f - Minor port cleanup
- Add LICENSE
- Fix error handling

PR:		187757
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2014-04-23 01:15:52 +00:00

39 lines
869 B
Makefile

# Created by: Rodrigo Graeff <delphus@gmail.com>
# $FreeBSD$
PORTNAME= ytnef
PORTVERSION= 2.6
PORTREVISION= 2
CATEGORIES= converters mail
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Unpack data in MS Outlook TNEF format
LICENSE= GPLv2
LIB_DEPENDS= libytnef.so:${PORTSDIR}/devel/libytnef
RUN_DEPENDS= p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
USES= perl5 shebangfix
SHEBANG_FILES= src/ytnef/*.pl
USE_PERL5= run
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= AUTHORS NEWS README
PLIST_FILES= bin/ytnef bin/ytnefprint bin/ytnefprocess.pl
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share|' \
${WRKSRC}/src/ytnef/*.pl
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>