1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/lang/caml-light/files/patch-src_launch_Makefile
Martin Wilke 7cfbbef47d - Fix Build
PR:		162577
Submitted by:	maintainer
2012-01-29 13:11:51 +00:00

30 lines
1.0 KiB
Plaintext

--- src/launch/Makefile.orig 1995-02-22 10:33:26.000000000 +0100
+++ src/launch/Makefile 2011-11-12 10:26:48.000000000 +0100
@@ -11,22 +11,15 @@
# have write permission in the current directory if NFS-mounted...
install:
- (echo "#!$(BINDIR)/camlrun"; \
- echo "exit 2"; \
- cat testprog) > /tmp/testscr
- chmod a+x /tmp/testscr
- sh -c 'if sh -c /tmp/testscr 2>/dev/null; \
- then echo "#!$(BINDIR)/camlrun" > $(LIBDIR)/header; \
- else cp camlexec $(LIBDIR)/header; \
- fi'
- rm -f /tmp/testscr
+ echo "#!$(BINDIR)/camlrun" > $(LIBDIR)/header
for script in camlc camllight camlmktop; do \
- cp $$script $(BINDIR)/$$script; \
+ ${BSD_INSTALL_SCRIPT} $$script $(BINDIR)/$$script; \
chmod a+x $(BINDIR)/$$script; \
done
SEDCOMMANDS=\
- -e 's|LIBDIR|$(LIBDIR)|' -e 's|CC|$(CC) $(OPTS)|' -e 's|LIBS|$(LIBS)|'
+ -e 's|LIBDIR|$(LIBDIR)|' -e 's|CC|$(CC) $(OPTS)|' -e 's|LIBS|$(LIBS)|' \
+ -e 's|BINDIR|$(BINDIR)|'
camlc: camlc.tpl ../version.h
sed $(SEDCOMMANDS) \