ports/sysutils/moreutils/files/patch-Makefile
Pav Lucistnik acf3097b94 - Update to 0.38
PR:		ports/143827
Submitted by:	Charlie Kester <corky1951@comcast.net> (maintainer)
2010-02-12 09:23:58 +00:00

74 lines
1.7 KiB
Plaintext

--- Makefile.orig 2009-07-02 12:00:44.000000000 -0700
+++ Makefile 2010-02-09 22:13:14.000000000 -0800
@@ -1,51 +1,34 @@
-BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel
+BINS=isutf8 ifne pee sponge mispipe lckdo parallel
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 parallel.1
-CFLAGS=-O2 -g -Wall
+MANS=sponge.1 isutf8.1 ifne.1 pee.1 mispipe.1 lckdo.1 parallel.1
+CFLAGS+= -Wall
INSTALL_BIN?=install -s
-PREFIX=/usr
-DOCBOOK2XMAN=docbook2x-man
+.SUFFIXES: .1 .docbook
+
+DOCBOOK2XMAN= ${LOCALBASE}/bin/xsltproc ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
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 $(PREFIX)/bin
+ $(INSTALL_BIN) $(BINS) $(PREFIX)/bin
+ install $(PERLSCRIPTS) $(PREFIX)/bin
- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
- install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
-
check: isutf8
./check-isutf8
-isutf8.1: isutf8.docbook
- $(DOCBOOK2XMAN) $<
-
-ifdata.1: ifdata.docbook
- $(DOCBOOK2XMAN) $<
-
-ifne.1: ifne.docbook
- $(DOCBOOK2XMAN) $<
-
-pee.1: pee.docbook
- $(DOCBOOK2XMAN) $<
-
-sponge.1: sponge.docbook
- $(DOCBOOK2XMAN) $<
-
-mispipe.1: mispipe.docbook
- $(DOCBOOK2XMAN) $<
-
-lckdo.1: lckdo.docbook
- $(DOCBOOK2XMAN) $<
-
-parallel.1: parallel.docbook
- $(DOCBOOK2XMAN) $<
+.docbook.1:
+ $(DOCBOOK2XMAN) ${.IMPSRC}
-%.1: %
- pod2man --center=" " --release="moreutils" $< > $@;
+extraman: ${PERLSCRIPTS}
+.for i in ${PERLSCRIPTS}
+ pod2man --center=" " --release="moreutils" ${i} > ${i:S@$@.1$@};
+.endfor