freebsd-ports/sysutils/moreutils/files/patch-Makefile
Dennis Herrmann 1e26add69b moreutils is a growing collection of the unix tools that nobody thought to
write thirty years ago.

So far, it includes the following utilities:

 - sponge: soak up standard input and write to a file
 - ifne: run a program if the standard input is not empty
 - vidir: edit a directory in your text editor
 - vipe: insert a text editor into a pipe
 - ts: timestamp standard input
 - combine: combine the lines in two files using boolean operations
 - pee: tee standard input to pipes
 - zrun: automatically uncompress arguments to command
 - mispipe: pipe two commands, returning the exit status of the first
 - isutf8: check if a file or standard input is utf-8
 - lckdo: execute a program with a lock held

WWW:	http://kitenet.net/~joey/code/moreutils/

PR:		ports/135869
Submitted by:	Charlie Kester <corky1951@comcast.net>
2009-06-21 10:24:50 +00:00

37 lines
1 KiB
Text

--- Makefile.orig 2009-05-05 12:09:22.000000000 -0700
+++ Makefile 2009-06-20 07:59:27.000000000 -0700
@@ -1,24 +1,24 @@
-BINS=isutf8 ifdata ifne pee sponge mispipe lckdo
+BINS=isutf8 ifne pee sponge mispipe lckdo
PERLSCRIPTS=vidir vipe ts combine zrun
-MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1
+MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1
CFLAGS=-O2 -g -Wall
INSTALL_BIN?=install -s
-PREFIX=/usr
-DOCBOOK2XMAN=docbook2x-man
+DOCBOOK2XMAN=docbook2man
all: $(BINS) $(MANS)
+bins: $(BINS)
+
+mans: $(MANS)
+
clean:
rm -f $(BINS) $(MANS)
install:
- mkdir -p $(DESTDIR)$(PREFIX)/bin
- $(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin
- install $(PERLSCRIPTS) $(DESTDIR)$(PREFIX)/bin
-
- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
- install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
+ mkdir -p $(PREFIX)/bin
+ $(INSTALL_BIN) $(BINS) $(PREFIX)/bin
+ install $(PERLSCRIPTS) $(PREFIX)/bin
check: isutf8
./check-isutf8