mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
fd37d8821f
- Trim Header - Convert to OptionsNG - Prefer DISTNAME to DISTFILES - Reorder variables - Fix comments (don't include leading article) - @unexec rm must not cause failure - Tabs, not spaces - Single space for WWW - Pet portlint - etc. In a few cases the option DOCS was used to control installation into EXAMPLEDIR. I opted to keep the existing logic of the port in these cases. Reviewed by: koobs, ashish
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tkman
|
|
PORTVERSION= 2.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= misc tk
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tcl/Tk based manual browser
|
|
|
|
RUN_DEPENDS= glimpse:${PORTSDIR}/textproc/glimpse \
|
|
rman:${PORTSDIR}/textproc/rman
|
|
|
|
USE_TK= yes
|
|
USE_GMAKE= yes
|
|
USE_DOS2UNIX= yes
|
|
MAKE_ARGS= WISH="${WISH}" \
|
|
texinfodir="${PREFIX}/${INFO_PATH}" \
|
|
gzgrep="\"/usr/bin/zgrep -E\"" \
|
|
mastermen="\"/usr/share/man ${PREFIX}/man ${LOCALBASE}/man\"" \
|
|
masterbin="\"/usr/bin ${PREFIX}/bin ${LOCALBASE}/bin\"" \
|
|
manformat="{groff -Tlatin1 -te -mandoc}" \
|
|
manprint="{groff -mandoc -Tps -te -l}"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local/bin/wish|${WISH}|' \
|
|
${WRKSRC}/contrib/tkmanclient
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tkman ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/retkman ${PREFIX}/bin
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/manual.html ${DOCSDIR}
|
|
.endif
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/tkmanclient ${PREFIX}/bin
|
|
@${MKDIR} ${PREFIX}/etc/periodic/weekly
|
|
${INSTALL_SCRIPT} ${FILESDIR}/310.index_manpages ${PREFIX}/etc/periodic/weekly
|
|
|
|
.include <bsd.port.mk>
|