Commit bfdeafa3 authored by Guy Brand's avatar Guy Brand Committed by Guangyuan Yang
Browse files

sysutils/tree: Update to 2.0.1

PR:		261414
parent 9f969b23
# Created by: Alan Eldridge <alane@FreeBSD.org>
PORTNAME= tree
PORTVERSION= 1.8.0
PORTVERSION= 2.0.1
CATEGORIES= sysutils
MASTER_SITES= ftp://mama.indstate.edu/linux/tree/
MASTER_SITES= http://mama.indstate.edu/users/ice/tree/src/
MAINTAINER= gb@unistra.fr
COMMENT= Display a tree-view of directories with optional color or HTML output
......@@ -14,7 +14,8 @@ MAKE_ENV+= MKDIR="${MKDIR}"
USES= gmake tar:tgz
PLIST_FILES= bin/tree \
man/man1/tree.1.gz
man/man1/tree.1.gz \
man/man1/tree.fr.1.gz
PORTDOCS= CHANGES README
......
TIMESTAMP = 1553186634
SHA256 (tree-1.8.0.tgz) = 715d5d4b434321ce74706d0dd067505bb60c5ea83b5f0b3655dae40aa6f9b7c2
SIZE (tree-1.8.0.tgz) = 50286
TIMESTAMP = 1642887600
SHA256 (tree-2.0.1.tgz) = e3339c5a194cf6b4080f15ec59faa3679f02d5a793b2147912fbfcfb4cdf2239
SIZE (tree-2.0.1.tgz) = 57213
--- Makefile.orig 2018-01-18 21:02:20.000000000 +0100
+++ Makefile 2019-03-20 11:22:05.133686000 +0100
@@ -16,28 +16,28 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-prefix = /usr
+prefix = ${PREFIX}
-CC=gcc
+CC?=cc
VERSION=1.8.0
--- Makefile.orig 2022-01-23 13:10:10.027280000 +0100
+++ Makefile 2022-01-23 13:14:05.143686000 +0100
@@ -24,7 +24,7 @@
VERSION=2.0.1
TREE_DEST=tree
BINDIR=${prefix}/bin
DESTDIR=${PREFIX}/bin
-MAN=tree.1
+MAN=doc/tree.1
MANDIR=${prefix}/man/man1
OBJS=tree.o unix.o html.o xml.o json.o hash.o color.o file.o
MANDIR=${PREFIX}/man
OBJS=tree.o list.o hash.o color.o file.o filter.o info.o unix.o xml.o json.o html.o strverscmp.o
# Uncomment options below for your particular OS:
@@ -32,13 +32,13 @@
# Linux defaults:
-CFLAGS=-ggdb -pedantic -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+#CFLAGS=-ggdb -pedantic -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
#CFLAGS=-O4 -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
#LDFLAGS=-s
#CFLAGS=-ggdb -pedantic -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-CFLAGS=-O3 -pedantic -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-LDFLAGS=-s
+#CFLAGS=-O3 -pedantic -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+#LDFLAGS=-s
# Uncomment for FreeBSD:
-#CC=cc
-#CFLAGS=-O2 -Wall -fomit-frame-pointer
-#LDFLAGS=-s
-#OBJS+=strverscmp.o
+CC=cc
+CFLAGS=-O2 -Wall -fomit-frame-pointer
+LDFLAGS=-s
+OBJS+=strverscmp.o
# Uncomment for OpenBSD:
#TREE_DEST=colortree
@@ -108,13 +108,11 @@
if [ -f tree.o ]; then rm *.o; fi
rm -f *~
@@ -101,11 +101,11 @@
clean:
rm -f $(TREE_DEST) *.o *~
-install: tree
- install -d $(BINDIR)
- install -d $(MANDIR)
- if [ -e $(TREE_DEST) ]; then \
- install $(TREE_DEST) $(BINDIR)/$(TREE_DEST); \
- fi
- install doc/$(MAN) $(MANDIR)/$(MAN)
- $(INSTALL) -d $(DESTDIR)
- $(INSTALL) -d $(MANDIR)/man1
- $(INSTALL) $(TREE_DEST) $(DESTDIR)/$(TREE_DEST); \
- $(INSTALL) -m 644 doc/$(MAN) $(MANDIR)/man1/$(MAN)
+install: $(TREE_DEST)
+ @$(MKDIR) $(BINDIR)
+ @$(MKDIR) $(MANDIR)
......@@ -54,4 +44,4 @@
+ ${BSD_INSTALL_MAN} $(MAN) $(MANDIR)
distclean:
if [ -f tree.o ]; then rm *.o; fi
rm -f *.o *~
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment