summaryrefslogtreecommitdiff
path: root/archivers/lz4/patches/patch-programs_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/lz4/patches/patch-programs_Makefile')
-rw-r--r--archivers/lz4/patches/patch-programs_Makefile38
1 files changed, 10 insertions, 28 deletions
diff --git a/archivers/lz4/patches/patch-programs_Makefile b/archivers/lz4/patches/patch-programs_Makefile
index 21a92c4826a..ced37e86bb9 100644
--- a/archivers/lz4/patches/patch-programs_Makefile
+++ b/archivers/lz4/patches/patch-programs_Makefile
@@ -1,22 +1,10 @@
-$NetBSD: patch-programs_Makefile,v 1.11 2018/09/14 09:48:56 fhajny Exp $
+$NetBSD: patch-programs_Makefile,v 1.12 2019/04/30 09:17:39 adam Exp $
Unlock install target. Use pkgsrc install scripts.
---- programs/Makefile.orig 2018-09-11 19:52:06.000000000 +0000
+--- programs/Makefile.orig 2019-04-23 17:18:40.000000000 +0000
+++ programs/Makefile
-@@ -106,11 +106,6 @@ clean:
- @echo Cleaning completed
-
-
--#-----------------------------------------------------------------------------
--# make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets
--#-----------------------------------------------------------------------------
--ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD))
--
- unlz4: lz4
- ln -s lz4$(EXT) unlz4$(EXT)
-
-@@ -129,7 +124,7 @@ BINDIR ?= $(exec_prefix)/bin
+@@ -140,20 +140,20 @@ BINDIR ?= $(exec_prefix)/bin
bindir ?= $(BINDIR)
DATAROOTDIR ?= $(prefix)/share
datarootdir ?= $(DATAROOTDIR)
@@ -25,25 +13,19 @@ Unlock install target. Use pkgsrc install scripts.
mandir ?= $(MANDIR)
MAN1DIR ?= $(mandir)/man1
man1dir ?= $(MAN1DIR)
-@@ -146,13 +141,13 @@ INSTALL_DATA ?= $(INSTALL) -m 644
install: lz4
@echo Installing binaries
-- @$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)/ $(DESTDIR)$(man1dir)/
+- @$(INSTALL_DIR) $(DESTDIR)$(bindir)/ $(DESTDIR)$(man1dir)/
- @$(INSTALL_PROGRAM) lz4$(EXT) $(DESTDIR)$(bindir)/lz4$(EXT)
+ @$(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(bindir)/ $(DESTDIR)$(man1dir)/
+ @$(BSD_INSTALL_PROGRAM) lz4$(EXT) $(DESTDIR)$(bindir)/lz4$(EXT)
- @ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/lz4c$(EXT)
- @ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/lz4cat$(EXT)
- @ln -sf lz4$(EXT) $(DESTDIR)$(bindir)/unlz4$(EXT)
+ @$(LN_S) lz4$(EXT) $(DESTDIR)$(bindir)/lz4c$(EXT)
+ @$(LN_S) lz4$(EXT) $(DESTDIR)$(bindir)/lz4cat$(EXT)
+ @$(LN_S) lz4$(EXT) $(DESTDIR)$(bindir)/unlz4$(EXT)
@echo Installing man pages
- @$(INSTALL_DATA) lz4.1 $(DESTDIR)$(man1dir)/lz4.1
+ @$(BSD_INSTALL_MAN) lz4.1 $(DESTDIR)$(man1dir)/lz4.1
- @ln -sf lz4.1 $(DESTDIR)$(man1dir)/lz4c.1
- @ln -sf lz4.1 $(DESTDIR)$(man1dir)/lz4cat.1
- @ln -sf lz4.1 $(DESTDIR)$(man1dir)/unlz4.1
-@@ -169,4 +164,3 @@ uninstall:
- @$(RM) $(DESTDIR)$(man1dir)/unlz4.1
- @echo lz4 programs successfully uninstalled
-
--endif
+ @$(LN_SF) lz4.1 $(DESTDIR)$(man1dir)/lz4c.1
+ @$(LN_SF) lz4.1 $(DESTDIR)$(man1dir)/lz4cat.1
+ @$(LN_SF) lz4.1 $(DESTDIR)$(man1dir)/unlz4.1