summaryrefslogtreecommitdiffhomepage
path: root/patches/tree-2.0.2_pre.local.patch
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2022-02-17 22:51:22 +0100
committerØrjan Malde <red@foxi.me>2022-02-17 22:51:22 +0100
commited60e1162822ed4d4cfbe961d037e9b9ae99d827 (patch)
tree8bbccecb96fec8956375e21003ede6a3356928c9 /patches/tree-2.0.2_pre.local.patch
parent22451eb57a62cd65250ec7a9e1d0e03e43d8bd0b (diff)
downloadmidipix_build-ed60e1162822ed4d4cfbe961d037e9b9ae99d827.tar.bz2
midipix_build-ed60e1162822ed4d4cfbe961d037e9b9ae99d827.tar.xz
groups/211.native_packages_cmdline.group: tree: bump to v2.0.2
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches/tree-2.0.2_pre.local.patch')
-rw-r--r--patches/tree-2.0.2_pre.local.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/tree-2.0.2_pre.local.patch b/patches/tree-2.0.2_pre.local.patch
new file mode 100644
index 00000000..09dccba9
--- /dev/null
+++ b/patches/tree-2.0.2_pre.local.patch
@@ -0,0 +1,29 @@
+diff -ru tree-2.0.2.orig/Makefile tree-2.0.2/Makefile
+--- tree-2.0.2.orig/Makefile 2022-02-16 22:45:43.000000000 +0100
++++ tree-2.0.2/Makefile 2022-02-17 22:49:24.340545322 +0100
+@@ -26,15 +26,13 @@
+ DESTDIR=${PREFIX}/bin
+ MAN=tree.1
+ # Probably needs to be ${PREFIX}/share/man for most systems now
+-MANDIR=${PREFIX}/man
++MANDIR=${DESTDIR}${PREFIX}/share/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:
+
+ # Linux defaults:
+ #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
+
+ # Uncomment for FreeBSD:
+ #CC=cc
+@@ -105,7 +103,7 @@
+ install: tree
+ $(INSTALL) -d $(DESTDIR)
+ $(INSTALL) -d $(MANDIR)/man1
+- $(INSTALL) $(TREE_DEST) $(DESTDIR)/$(TREE_DEST); \
++ $(INSTALL) $(TREE_DEST) $(DESTDIR)${PREFIX}/bin/$(TREE_DEST); \
+ $(INSTALL) -m 644 doc/$(MAN) $(MANDIR)/man1/$(MAN)
+
+ distclean: