aboutsummaryrefslogtreecommitdiff
path: root/converters/ytnef
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-09 14:49:45 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-09 14:49:45 +0000
commit13d579bb520cf6de731d282f64d551d8dc9cd442 (patch)
tree959e2ac2a41c0a96af2777db8832e1ce5006aaa4 /converters/ytnef
parent835726cb71664ae2670520d3a50f248e16e9734e (diff)
downloadports-13d579bb520cf6de731d282f64d551d8dc9cd442.tar.gz
ports-13d579bb520cf6de731d282f64d551d8dc9cd442.zip
Support stage
Notes
Notes: svn path=/head/; revision=339246
Diffstat (limited to 'converters/ytnef')
-rw-r--r--converters/ytnef/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/converters/ytnef/Makefile b/converters/ytnef/Makefile
index 3a8a364dba51..e2350983b322 100644
--- a/converters/ytnef/Makefile
+++ b/converters/ytnef/Makefile
@@ -10,6 +10,8 @@ MASTER_SITES= SF
MAINTAINER= delphus@gmail.com
COMMENT= Unpack data in MS Outlook TNEF format
+OPTIONS_DEFINE= DOCS
+
LIB_DEPENDS= libytnef.so:${PORTSDIR}/devel/libytnef
RUN_DEPENDS= p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools
@@ -23,18 +25,12 @@ LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/ytnef bin/ytnefprocess.pl bin/ytnefprint
PORTDOCS= AUTHORS NEWS README
-NO_STAGE= yes
-
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' \
${WRKSRC}/src/ytnef/ytnefprocess.pl
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>