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
	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.1
date	2006.08.06.10.53.54;	author jkoshy;	state Exp;
branches;
next	;


desc
@@


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
@--- ./contrib/libunix/Makefile--	Thu Dec 24 00:36:54 1998
+++ ./contrib/libunix/Makefile	Sun Aug  6 11:42:16 2006
@@@@ -3,7 +3,7 @@@@
 # These options are overriden when called from ../Makefile
 CC=cc
 OPTS=
-LIBDIR=/usr/local/lib/caml-light
+LIBDIR=${PREFIX}/lib/caml-light
 
 # Test to see whether ranlib exists on the machine
 RANLIBTEST=test -f /usr/bin/ranlib -o -f /bin/ranlib
@@@@ -12,11 +12,11 @@@@
 RANLIB=ranlib
 
 # Compilation options
-CFLAGS=-I../../src/runtime -O $(OPTS)
-CAMLC=camlc
+CFLAGS+=-I../../src/runtime $(OPTS)
+CAMLC=${PREFIX}/bin/camlc
 CAMLCOMP=$(CAMLC) -c
 COMPFLAGS=-W
-CAMLMKTOP=camlmktop
+CAMLMKTOP=${PREFIX}/bin/camlmktop
 
 OBJS=accept.o access.o addrofstr.o alarm.o bind.o chdir.o chmod.o \
   chown.o chroot.o close.o closedir.o connect.o cst2constr.o cstringv.o \
@@@@ -51,10 +51,10 @@@@
 	rm -f libunix.a *.o *.zi *.zo lint-blurb camlunix
 
 install:
-	cp libunix.a $(LIBDIR)/libunix.a
+	${BSD_INSTALL_DATA} libunix.a $(LIBDIR)
 	if $(RANLIBTEST); then cd $(LIBDIR); $(RANLIB) libunix.a; else true; fi
-	cp $(INTF) $(IMPL) $(LIBDIR)
-	cp camlunix $(LIBDIR)
+	${BSD_INSTALL_DATA} $(INTF) $(IMPL) $(LIBDIR)
+	${BSD_INSTALL_SCRIPT} camlunix $(LIBDIR)
 
 .SUFFIXES: .ml .mli .zo .zi
 
@
