Add grilo-plugins
[oi-userland.git] / components / archiver / pigz / patches / 01-Makefile-install-target.patch
blob2d348d73009e8007fd4c8e41dd02206b84003670
1 --- pigz-2.4/Makefile.orig 2018-06-06 19:38:13.206226284 +0000
2 +++ pigz-2.4/Makefile 2018-06-06 19:44:55.993031070 +0000
3 @@ -5,11 +5,14 @@
4 ZOPFLI=zopfli/src/zopfli/
5 ZOP=deflate.o blocksplitter.o tree.o lz77.o cache.o hash.o util.o squeeze.o katajainen.o
7 +BINDIR?=/usr/bin
8 +MANDIR?=/usr/share/man
10 # use gcc and gmake on Solaris
12 pigz: pigz.o yarn.o try.o $(ZOP)
13 $(CC) $(LDFLAGS) -o pigz pigz.o yarn.o try.o $(ZOP) $(LIBS)
14 - ln -f pigz unpigz
15 + ln -sf pigz unpigz
17 pigz.o: pigz.c yarn.h try.h $(ZOPFLI)deflate.h $(ZOPFLI)util.h
19 @@ -98,6 +101,13 @@
20 pigz.pdf: pigz.1
21 groff -mandoc -f H -T ps pigz.1 | ps2pdf - pigz.pdf
23 +install:
24 + @mkdir -p $(DESTDIR)$(BINDIR)
25 + @install -m0755 pigz $(DESTDIR)$(BINDIR)
26 + @install -m0755 unpigz $(DESTDIR)$(BINDIR)
27 + @mkdir -p $(DESTDIR)$(MANDIR)/man1
28 + @install -m0644 pigz.1 $(DESTDIR)$(MANDIR)/man1
30 all: pigz pigzj pigzt pigzn docs
32 clean: