Added tree based on bep and patch from martinhpedersen.

This commit is contained in:
Scott McCreary
2012-08-17 06:50:12 +00:00
parent 01e9fa7ed0
commit e8887c5da4
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
diff -Naur tree-1.6.0/Makefile tree-1.6.0-haiku/Makefile
--- tree-1.6.0/Makefile 2011-06-24 16:25:27.060030976 +0200
+++ tree-1.6.0-haiku/Makefile 2011-12-18 01:40:48.786169856 +0100
@@ -31,8 +31,8 @@
# Linux defaults:
#CFLAGS=-ggdb -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=-O4 -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+#LDFLAGS=-s
# Uncomment for FreeBSD:
#CFLAGS=-O2 -Wall -fomit-frame-pointer
@@ -58,6 +58,13 @@
#LDFLAGS=
#OBJS+=strverscmp.o
+# Uncomment for Haiku:
+prefix=$(shell finddir B_COMMON_DIRECTORY)
+MANDIR=$(shell finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1
+CFLAGS=-O2 -Wall -fomit-frame-pointer
+LDFLAGS=
+OBJS+=strverscmp.o
+
# Uncomment for HP/UX:
#CC=cc
#CFLAGS=-O2 -DAportable -Wall

View File

@@ -0,0 +1,25 @@
DESCRIPTION="Lists directories recursively, and produces an indented listing of files."
HOMEPAGE="http://mama.indstate.edu/users/ice/tree/"
SRC_URI="http://mama.indstate.edu/users/ice/tree/src/tree-1.6.0.tgz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="04e967a3f4108d50cde3b4b0e89e970a"
BUILD {
cd tree-1.6.0
make
}
INSTALL {
cd tree-1.6.0
make install \
BINDIR=${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY` \
MANDIR=${DESTDIR}`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
}
TEST {
# none
}
LICENSE="GNU GPL v2"
COPYRIGHT="1996-2011 Steve Baker"