$NetBSD: patch-ac,v 1.1 2010/01/30 18:25:11 joerg Exp $

--- OCamlMakefile.orig	2010-01-30 18:14:57.000000000 +0000
+++ OCamlMakefile
@@ -1102,11 +1102,13 @@ subprojs: $(SUBPROJS:%=subproj_%)
 
 ###########################################################################
 # (UN)INSTALL RULES FOR LIBRARIES
+INSTALLDIR=`$(OCAMLC) -where`/site-lib
 
 .PHONY: libinstall
 libinstall:	all
 	$(QUIET)printf "\nInstalling library with ocamlfind\n"
-	$(OCAMLFIND) install $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES)
+	${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(INSTALLDIR)
+	$(OCAMLFIND) install -ldconf /dev/null -destdir ${DESTDIR}$(INSTALLDIR) $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES)
 	$(QUIET)printf "\nInstallation successful.\n"
 
 .PHONY: libuninstall
