head	1.2;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2012.01.29.13.11.51;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2006.08.06.10.53.54;	author jkoshy;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Fix Build

PR:		162577
Submitted by:	maintainer
@
text
@--- 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) \
@


1.1
log
@- Honor CC, CFLAGS etc.				[1]
- Use BSD_INSTALL_* macros to install files.	[1]
- Make the port PREFIX clean.

PR:		ports/101398	[1]
Submitted by:	Stanislav Sedov <ssedov@@mbsd.msk.ru>
@
text
@d1 12
a12 6
--- src/launch/Makefile.orig	Wed Feb 22 15:03:26 1995
+++ src/launch/Makefile	Sun Aug  6 11:58:56 2006
@@@@ -17,16 +17,17 @@@@
 	chmod a+x /tmp/testscr
 	sh -c 'if sh -c /tmp/testscr 2>/dev/null; \
                then echo "#!$(BINDIR)/camlrun" > $(LIBDIR)/header; \
d14 3
a16 3
+               else ${BSD_INSTALL_SCRIPT} camlexec $(LIBDIR)/header; \
                fi'
 	rm -f /tmp/testscr
@

