summaryrefslogtreecommitdiff
path: root/lang/caml-light/files/patch-contrib_libunix_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/caml-light/files/patch-contrib_libunix_Makefile')
-rw-r--r--lang/caml-light/files/patch-contrib_libunix_Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/lang/caml-light/files/patch-contrib_libunix_Makefile b/lang/caml-light/files/patch-contrib_libunix_Makefile
new file mode 100644
index 000000000000..3c7e7cc05b82
--- /dev/null
+++ b/lang/caml-light/files/patch-contrib_libunix_Makefile
@@ -0,0 +1,40 @@
+--- ./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
+