1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/sysutils/tree/Makefile
Alexey Dokuchaev 7fbb727e11 sysutils/tree: provide fallback download URL and other improvements
- For some reason, upstream distfile site is currently inaccessible
  in certain parts of the world, e.g. Russia
- Pass build-related variables down to inner Makefile via MAKE_ARGS
  and remove the patch file (particularly, it was patching `install'
  target which is useless as the port is using its own)
- Adjust LICENSE (it's GPLv2 or later) and install documentation in
  the dedicated helper target (also install TODO file while here)

PR:	261547
2022-01-29 06:36:26 +00:00

33 lines
816 B
Makefile

# Created by: Alan Eldridge <alane@FreeBSD.org>
PORTNAME= tree
PORTVERSION= 2.0.1
CATEGORIES= sysutils
MASTER_SITES= http://mama.indstate.edu/users/ice/tree/src/ \
https://fossies.org/linux/misc/
MAINTAINER= gb@unistra.fr
COMMENT= Display a tree-view of directories with optional color or HTML output
LICENSE= GPLv2+
USES= gmake tar:tgz
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
PLIST_FILES= bin/tree \
man/man1/tree.1.gz \
man/man1/tree.fr.1.gz
PORTDOCS= CHANGES README TODO
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tree ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>