head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	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;
locks; strict;
comment	@# @;


1.1
date	2008.12.10.08.44.24;	author stefan;	state Exp;
branches;
next	;


desc
@@


1.1
log
@This patch adds three features to the lang/mlton port:
* Support for FreeBSD 6.x
* Support for compilation with SML/NJ
* Cross-compilation with mingw32

PR:		124061
Submitted by:	Timothy Bourke <timbob@@bigpond.com>
Approved by:	maintainer
@
text
@--- Makefile.orig	2007-08-27 07:04:14.000000000 +1000
+++ Makefile	2008-04-28 10:23:28.000000000 +1000
@@@@ -34,7 +34,11 @@@@
 PATH := $(BIN):$(SRC)/bin:$(shell echo $$PATH)
 CP := /bin/cp -fpR
 GZIP := gzip --force --best
+ifeq ($(TARGET), mingw32)
+RANLIB := $(TARGET)-ranlib
+else
 RANLIB := ranlib
+endif
 
 # If we're compiling with another version of MLton, then we want to do
 # another round of compilation so that we get a MLton built without
@@@@ -410,6 +414,7 @@@@
 install-no-docs:
 	mkdir -p "$(TLIB)" "$(TBIN)" "$(TMAN)"
 	$(CP) "$(LIB)/." "$(TLIB)/"
+	-rm "$(TLIB)/mlton.x86-bsd"
 	sed "/^lib=/s;.*;lib='$(prefix)/$(ULIB)';" 			\
 		<"$(BIN)/mlton" >"$(TBIN)/mlton"
 	chmod a+x "$(TBIN)/mlton"
@
