diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-01-17 07:34:36 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-01-17 07:34:36 +0800 |
commit | 0a6c2ac1b9f58be53cba3ff21195099759ba75d7 (patch) | |
tree | 0d58ae5d40240a94b1f3586f9cef5b88a0063c2c /graphics | |
parent | 9413170e88b4c006efae2b8675db63d710aef9f8 (diff) | |
download | freebsd-ports-gnome-0a6c2ac1b9f58be53cba3ff21195099759ba75d7.tar.gz freebsd-ports-gnome-0a6c2ac1b9f58be53cba3ff21195099759ba75d7.tar.zst freebsd-ports-gnome-0a6c2ac1b9f58be53cba3ff21195099759ba75d7.zip |
- Change PLIST_FILES, add PLIST_DIRS, remove PORTDATA
- Support STAGEDIR
- Add DOCS Option
- Change REINPLACE_CMD, adjust to use ${PERL} and ${DATADIR}
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/cadubi/Makefile | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/graphics/cadubi/Makefile b/graphics/cadubi/Makefile index 9a14c8318569..e6e9b879c444 100644 --- a/graphics/cadubi/Makefile +++ b/graphics/cadubi/Makefile @@ -17,29 +17,30 @@ RUN_DEPENDS= p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey USES= perl5 NO_BUILD= yes -PLIST_FILES= bin/${PORTNAME} +PLIST_FILES= bin/${PORTNAME} \ + %%DATADIR%%/help.txt \ + %%DATADIR%%/logo.txt +PLIST_DIRS= %%DATADIR%% -PORTDATA= * PORTDOCS= * -NO_STAGE= yes -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS do-configure: - @${REINPLACE_CMD} -i '' -e 's|Bin/help|Bin/../share/cadubi/help|' \ + @${REINPLACE_CMD} -e \ + 's|/usr/local/stow/perl-5.8.x/bin/perl|${PERL}|; \ + s|$$Bin/help|${DATADIR}/help|' \ ${WRKSRC}/cadubi do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${MKDIR} ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + @${MKDIR} ${STAGEDIR}${DATADIR} .for d in help.txt logo.txt - @(cd ${WRKSRC} && ${INSTALL_DATA} ${d} ${DATADIR}) + @(cd ${WRKSRC} && ${INSTALL_DATA} ${d} ${STAGEDIR}${DATADIR}) .endfor -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/extras/ansi_term_codes.txt ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/extras/ansi_term_codes.txt ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |