pkgsrc/misc/lv/patches/patch-aa
obache e3a3ced090 Some improvements:
* set LICENSE=gnu-gpl-v2
* add user-destdir support
* reset WRKSRC setting, use CONFIGURE_DIRS instead,
  so that pkgsrc magick affect to all files
* regen patches, split out patch-ad from patch-ac
  (one patch file to multiple files is not good).
* need termcap to build.
2010-02-10 10:43:28 +00:00

27 lines
887 B
Text

$NetBSD: patch-aa,v 1.5 2010/02/10 10:43:28 obache Exp $
--- src/Makefile.in.orig 2004-01-06 07:22:17.000000000 +0000
+++ src/Makefile.in
@@ -64,18 +64,10 @@ depend::
#
install::
- $(INSTALL) -s -m 555 lv $(bindir)
- if test -f $(bindir)/lgrep; then \
- /bin/rm -f $(bindir)/lgrep; \
- fi
- (cd $(bindir); ln lv lgrep)
- if test ! -d $(lvlibdir); then \
- mkdir -p $(lvlibdir); \
- fi
- $(INSTALL) -m 444 $(srcdir)/../lv.hlp $(lvlibdir)
- if test -d $(mandir) -a -d $(mandir)/man1; then \
- $(INSTALL) -m 444 $(srcdir)/../lv.1 $(mandir)/man1; \
- fi
+ $(BSD_INSTALL_PROGRAM) lv $(DESTDIR)$(bindir)/lv
+ $(LN) -s lv $(DESTDIR)$(bindir)/lgrep
+ $(BSD_INSTALL_DATA) $(srcdir)/../lv.hlp $(DESTDIR)$(lvlibdir)/lv.hlp
+ $(BSD_INSTALL_MAN) $(srcdir)/../lv.1 $(DESTDIR)$(mandir)/man1; \
uninstall::
for i in $(bindir)/lv $(bindir)/lgrep $(lvlibdir)/lv.hlp $(mandir)/man1/lv.1; do \