1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/www/litmus/files/patch-Makefile.in
John Marino 0ee2c74094 www/litmus: The "DONTSTRIP" hack didn't work, let's use BSD_INSTALL_* !
Modern binutils squawks if an attempt to strip an non-executable is made,
as seen below DONTSTRIP doesn't work, at least not in all cases:

DONTSTRIP=1 install  -s -o root -g wheel -m 555 ./litmus
  /wrkdirs/www/litmus/work/stage/usr/local/bin/litmus
/usr/libexec/binutils224/elf/strip:
  /wrkdirs/www/litmus/work/stage/usr/local/bin/litmus:
  File format not recognized

I closer look at the Makefile.in patch revealed that BSD_INSTALL_SCRIPT
should have been used instead.  While here, convert all the install
variables to BSD_INSTALL_*

Approved by:	just fix it
2015-02-21 11:05:23 +00:00

18 lines
873 B
Plaintext

--- Makefile.in.orig 2008-09-29 20:22:38 UTC
+++ Makefile.in
@@ -69,11 +69,11 @@ install: $(TESTS) litmus
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(libexecdir)/litmus
$(INSTALL) -d $(DESTDIR)$(datadir)/litmus/htdocs
- $(INSTALL_PROGRAM) $(top_builddir)/litmus $(DESTDIR)$(bindir)/litmus
+ $(BSD_INSTALL_SCRIPT) $(top_builddir)/litmus $(DESTDIR)$(bindir)/litmus
for t in $(TESTS); do \
- $(INSTALL_PROGRAM) $(top_builddir)/$$t $(DESTDIR)$(libexecdir)/litmus/$$t; done
+ $(BSD_INSTALL_PROGRAM) $(top_builddir)/$$t $(DESTDIR)$(libexecdir)/litmus/$$t; done
for d in $(HTDOCS); do \
- $(INSTALL_DATA) $(top_srcdir)/htdocs/$$d $(DESTDIR)$(datadir)/litmus/htdocs/$d; done
+ $(BSD_INSTALL_DATA) $(top_srcdir)/htdocs/$$d $(DESTDIR)$(datadir)/litmus/htdocs/$d; done
props: src/props.o $(ODEPS)
$(CC) $(LDFLAGS) -o $@ src/props.o $(ALL_LIBS)