pkgsrc/databases/ocaml-mysql/patches/patch-ac
2010-02-19 22:21:30 +00:00

19 lines
777 B
Text

$NetBSD: patch-ac,v 1.2 2010/02/19 22:22:22 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