From de0c645da962a2ebf89afddc15f9086a2dee6369 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Thu, 31 Jul 2014 13:09:09 +0000 Subject: [PATCH] Make do-install a bit more readable. --- net/pmf/Makefile | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/net/pmf/Makefile b/net/pmf/Makefile index 80a4628a7250..108883038576 100644 --- a/net/pmf/Makefile +++ b/net/pmf/Makefile @@ -10,7 +10,9 @@ MASTER_SITES= http://ftp.ntua.gr/pub/net/mud/lpmud/clients/pmf/ \ MAINTAINER= ports@FreeBSD.org COMMENT= Padrone's Mud Frontend -WRKSRC= ${WRKDIR}/pmfdir/src +WRKSRC= ${WRKDIR}/pmfdir +BUILD_WRKSRC= ${WRKDIR}/pmfdir/src +PATCH_WRKSRC= ${WRKDIR}/pmfdir/src USES= readline @@ -19,22 +21,17 @@ SUB_FILES= pmfrc.default OPTIONS_DEFINE= DOCS EXAMPLES post-build: - @${LN} -sf .pmfrc ${WRKSRC}/../examples/dot.pmfrc + @${LN} -sf .pmfrc ${WRKSRC}/examples/dot.pmfrc do-install: - (cd ${WRKSRC} && ${INSTALL_PROGRAM} pmf ${STAGEDIR}${PREFIX}/bin) + ${INSTALL_PROGRAM} ${WRKSRC}/src/pmf ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} - (cd ${WRKSRC}/../system_dir && ${INSTALL_DATA} NEWS \ - ${STAGEDIR}${DATADIR}) - (cd ${WRKDIR} && ${INSTALL_DATA} pmfrc.default \ - ${STAGEDIR}${DATADIR}) - @(cd ${WRKSRC}/../system_dir && ${COPYTREE_SHARE} helpfiles \ - ${STAGEDIR}${DATADIR}) + ${INSTALL_DATA} ${WRKSRC}/system_dir/NEWS ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKDIR}/pmfrc.default ${STAGEDIR}${DATADIR} + (cd ${WRKSRC}/system_dir && ${COPYTREE_SHARE} helpfiles ${STAGEDIR}${DATADIR}) @${MKDIR} ${STAGEDIR}${DOCSDIR} - (cd ${WRKSRC}/../doc && ${INSTALL_DATA} * \ - ${STAGEDIR}${DOCSDIR}) + ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - (cd ${WRKSRC}/../examples && ${INSTALL_DATA} * \ - ${STAGEDIR}${EXAMPLESDIR}) + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include