aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-02-09 11:25:02 +0800
committerbdrewery <bdrewery@FreeBSD.org>2014-02-09 11:25:02 +0800
commitde8b037cf7fb30f715d2db9e1535d0ec979c20df (patch)
tree9f00a9dd1697e0ff9511381d349c595aac991ee9
parent4c018d4d6213cdffaf998459b8b873e7c7f9e696 (diff)
downloadfreebsd-ports-gnome-de8b037cf7fb30f715d2db9e1535d0ec979c20df.tar.gz
freebsd-ports-gnome-de8b037cf7fb30f715d2db9e1535d0ec979c20df.tar.zst
freebsd-ports-gnome-de8b037cf7fb30f715d2db9e1535d0ec979c20df.zip
- Support STAGEDIR
- Remove bsd.port.pre.mk usage
-rw-r--r--mail/qmhandle/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/mail/qmhandle/Makefile b/mail/qmhandle/Makefile
index 8c553e24725f..cfcc2ec2152e 100644
--- a/mail/qmhandle/Makefile
+++ b/mail/qmhandle/Makefile
@@ -16,13 +16,12 @@ OPTIONS_DEFINE= DOCS
USES= qmail:run perl5
-NO_STAGE= yes
NO_BUILD= yes
USE_BZIP2= yes
PORTDOCS= HISTORY README
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's,^#!/usr/bin/perl,#!${PERL},g' \
@@ -33,15 +32,13 @@ post-patch:
${WRKSRC}/qmHandle.conf.sample
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/qmHandle ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/qmHandle.conf.sample ${PREFIX}/etc
- [ -f ${PREFIX}/etc/qmHandle.conf ] || \
- ${INSTALL_DATA} -m 0644 ${WRKSRC}/qmHandle.conf.sample ${PREFIX}/etc/qmHandle.conf
+ ${INSTALL_SCRIPT} ${WRKSRC}/qmHandle ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/qmHandle.conf.sample ${STAGEDIR}${PREFIX}/etc
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>